ITTips
How to rotate video
Useful when a video shot with the iPhone is in portrait and not landscape...
mencoder -ovc raw -vf rotate=1 -oac pcm testOutput.mov -o testOutput_final.mov
where:
ovc is the video encoder to choose. Here is raw. To get a full list: mencoder -ovc help
rotate: to rotate the video where:
- 0 Rotate by 90 degrees clockwise and flip (default).
- 1 Rotate by 90 degrees clockwise.
- 2 Rotate by 90 degrees counterclockwise.
- 3 Rotate by 90 degrees counterclockwise and flip.
oac is the audio encoder
File name (testOutput.mov)
-o the name of the new output file
Encode a video:
mencoder -ovc x264 -oac pcm testOutput_final.mov -o testOutput_fixed.mov
There are no comments on this page. [Add comment]