Sunday, September 11, 2016

Rotate videos

Rotate videos


I needed to rotate some Razr M videos.  Heres the command:

avconv -i INPUT.mp4 -map 0 -c:v libx264 -c:a copy -vf "transpose=1" -s svga OUTPUT.mp4

The transpose options are https://libav.org/avconv.html#transpose and the scale options are https://libav.org/avconv.html#Video-Options.

To flip an upside-down video, use -vf "vflip, hflip"

To clip, use -ss <start-time> -t <duration>  in hh:mm:ss format (or just an integer for seconds) – make sure to list this before the -i argument

Go to link download