[MPlayer-users] mencoder record from stdin, mplayer avi rotate?

Brian Wiese bwiese at cotse.com
Sun Sep 12 06:00:13 CEST 2004


I would like to simply rotate an avi movie with audio (from canon s60
digicam) and save it in the same format (for now at least).  

$file mvi_0708.avi
mvi_0708.avi: RIFF (little-endian) data, AVI, 320 x 240, ~15 fps, video:
Motion JPEG, audio: uncompressed PCM (mono, 11024 Hz)

The reason is that I recorded the movie in potrait instead of landscape
mode, so just a 90% rotation would be perfect.  I found that I was able to
play the movie rotated properly with the following:

mplayer -vf rotate=1 mvi_0708.avi

Now, can I save this rotated video output directly?  Redirecting it out to
a file with ">" or "-o outputfile.avi" didn't work.  It sounds like I need
to do this in 2 pieces, 1 for video and 1 for audio?

I tried to use mencoder to record the video from stdin (coming from
mplayer) but that didn't seem to work either -- is there another way to
properly execute this command?

mplayer -vf rotate=1 mvi_0708.avi | mencoder -ovc copy \
-oac copy - -o rotated.avi
          /\
    stdin || right?

Can mencoder do the rotation itself?  or Mplayer output the rotated video
to a file?

I found this great resource...
http://www.edginet.org/techie/linux/canon_movies.html
... and would love to find more like it, but I still couldn't get rotation
to work.  I wish I understood this stuff a/v stuff better!

Thanks
Brian




More information about the MPlayer-users mailing list