Satya's blog - mencoder rotates video files

Oct 09 2011 17:23 mencoder rotates video files

So I made a video with my cell phone camera held wrong, and to fix it I used this:

mencoder -o OUTFILE.dv \
    -vf-add rotate=1 \
    -vf-add scale=640:480 \
    INFILE.dv \
    -oac copy -ovc lavc

To keep aspect ratio and add black bars:

mencoder -o OUTFILE.dv \
    -vf-add rotate=1 \
    -vf-add scale=-10:480,expand=640:480
    INFILE.dv \
    -oac copy -ovc lavc
(via http://lists.mplayerhq.hu/pipermail/mencoder-users/2006-February/002843.html)

Winff can convert 3gp files to raw DV, but it's a GUI application.

Last updated: Dec 24 2013 10:57

Tag: video howto