Re: how to rotate a movie?

2007-08-31 Thread Kevin D. Clark

I didn't get in until late last night so I didn't have a lot of time
to play around with movie rotating.  But I did happen to try the
mencoder hack that "VirginSnow" recommended, and that worked well
enough for my needs.

I want to thank everybody for their helpful responses.  I intend on
checking out all of the solutions that were suggested to me, just so I
can learn some interesting new things.

Thanks!

--kevin
-- 
GnuPG ID: B280F24E  God, I loved that Pontiac.
alumni.unh.edu!kdc   -- Tom Waits
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: how to rotate a movie?

2007-08-30 Thread mike ledoux
On Thu, Aug 30, 2007 at 03:45:53PM -0400, Bill McGonigle wrote:
> Now, and this is really rusty, I think there's a way to read the JPEG  
> DCT matrix and rotate a JPEG without recompressing,

There is, provided the image geometry meets certain sensible
parameters that I don't remember off the top of my head.  The
tool I use for this is called 'jpegtran', available from
http://www.ijg.org/ if it isn't included with your distribution of
choice.

> and mencoder _might_ know how to do that, but it would have to be
> special-cased.  If anybody remembers what software could do that,
> and you could somehow split the .mov into its constituent JPEG
> frames and soundtrack, and then re-assemble them... well, major
> geek points and probably unwarranted for a home movie. :)

If each frame in the .mov file is really a full JPEG image, you'll
almost certainly want to recode it into a better format for video
anyway.

-- 
[EMAIL PROTECTED]  OpenPGP KeyID 0x57C3430B
Holder of Past Knowledge   CS, O-
"Knowledge speaks, but wisdom listens."  Jimi Hendrix

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: how to rotate a movie?

2007-08-30 Thread Bill McGonigle
On Aug 30, 2007, at 12:56, [EMAIL PROTECTED] wrote:

> If you don't want to transcode the movie, but leave it alone, and  
> just rotate
> what what mplayer shows you:
>
>  $ mplayer silly.mov -vf rotate=1 # or rotate=2, depending on gravity

This would be the generally better solution, I think, as you won't  
suffer a generation loss and get MJPEG artifacts by re-coding.

Now, and this is really rusty, I think there's a way to read the JPEG  
DCT matrix and rotate a JPEG without recompressing, and mencoder  
_might_ know how to do that, but it would have to be special-cased.   
If anybody remembers what software could do that, and you could  
somehow split the .mov into its constituent JPEG frames and  
soundtrack, and then re-assemble them... well, major geek points and  
probably unwarranted for a home movie.  :)

The QuickTime container is an open standard and the basis for MPEG-4,  
so there are probably decent QuickTime manipulation tools out there.

-Bill

-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: how to rotate a movie?

2007-08-30 Thread VirginSnow
> From: [EMAIL PROTECTED] (Kevin D. Clark)
> Date: 30 Aug 2007 10:14:37 -0400

> This is possibly a silly question.

Sillier than "can trained monkeys insall Linux?" ?

> A family member has given me a small movie that they shot with their
> digital camera.  The movie was shot with the camera turned sideways
> (it made things fit better).

Some cams have a gravity sensor which detects and automatically
corrects for this.  I want one!

> Can anybody recommend FOSS tools that could help me rotate all of the
> frames that comprise this movie by 90 degrees?

You could do:

 $ mencoder silly.mov -vf rotate=2 -oac copy \
   -ovc lavc -lavcopts  vcodec=mjpeg -o straight.avi

You should use either rotate=1 or rotate=2, depending on which way the
camera was held.  Note that this *won't* work with "-ovc copy" because
the video stream would be copied verbatim--without rotation.

If you don't want to transcode the movie, but leave it alone, and just rotate
what what mplayer shows you:

 $ mplayer silly.mov -vf rotate=1 # or rotate=2, depending on gravity

Alternatively, you could:

 # ln -s /usr/bin/X11/Xvfb /usr/bin/X11/X
 ...restart X... and
 $ xrandr -o left # or s/left/right/

to rotate everything you see on your X display 90 degrees one way or
the other. :)
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: how to rotate a movie?

2007-08-30 Thread Bruce Dawson
Kevin D. Clark wrote:
> This is possibly a silly question.
>
> A family member has given me a small movie that they shot with their
> digital camera.  The movie was shot with the camera turned sideways
> (it made things fit better).
>
> Now we have this movie that is watchable but only if you turn your
> head sideways.
>
> Can anybody recommend FOSS tools that could help me rotate all of the
> frames that comprise this movie by 90 degrees?
>   
...
> Thanks for any advice here.
>   
You may find http://www.robfisher.net/video/ helpful. (In short: looks
like Cinelerra is what you want.)
> Regards,
>
> --kevin
>   
--Bruce
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


how to rotate a movie?

2007-08-30 Thread Kevin D. Clark

This is possibly a silly question.

A family member has given me a small movie that they shot with their
digital camera.  The movie was shot with the camera turned sideways
(it made things fit better).

Now we have this movie that is watchable but only if you turn your
head sideways.

Can anybody recommend FOSS tools that could help me rotate all of the
frames that comprise this movie by 90 degrees?

The movie itself is in Quicktime format.  Here is some info from
"file":

   $ file silly.mov
   silly.mov: Apple QuickTime movie (unoptimized)

Here are the relevant lines that get displayed when mplayer plays
this:

  $ mplayer silly.mov
  MPlayer 1.0pre8-rpm.livna.org-4.1.1 (C) 2000-2006 MPlayer Team
  CPU: AMD Athlon(tm) Processor (Family: 6, Model: 4, Stepping: 2)
  CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
  Compiled with runtime CPU detection.

  ...
  Playing silly.mov.
  Quicktime/MOV file format detected.
  VIDEO:  [jpeg]  320x240  24bpp  30.000 fps0.0 kbps ( 0.0 kbyte/s)


Thanks for any advice here.

Regards,

--kevin
-- 
GnuPG ID: B280F24E  God, I loved that Pontiac.
alumni.unh.edu!kdc   -- Tom Waits
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/