Rotate videos
I needed to rotate some Razr M videos. Here's 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
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>
I also met this situation. Luckily, I find a way from easily rotate MP4 files
ReplyDeleteStep by step guide from http://www.idealshare.net/how-to-rotate-mp4-video.html
It can rotate video 90 degrees, 180 degrees etc.
It also helps me to rotate other type of video like MOV, WMV, AVI, MXF, AVCHD etc.
Hope it also helps for you.