Thursday, December 15, 2011

Video editing from the Linux command line

A need has arisen for me to do elementary video editing. First, I needed to rotate videos that, due to operator error, had been taken in "portrait" orientation into "landscape". After trying to do this in Windows and failing miserably and moving my cardiovascular risk index up several notches in the process, I moved to the trusty Linux command line and with a little bit of searching came up with the following command, which I need to test:
$ ffmpeg -i in.mov -vf "transpose=1" out.mov
The transpose parameter takes the following options:
0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip

For more information, see: Rotating videos with FFmpeg on stackoverflow.com


The next job is to extract portions (snippets) of the raw video footage and then paste them together.

Linux Gazette has a recent (2010) article by Silas Brown on this very subject, which promises to be useful: Video editing from the command line

No comments:

Post a Comment