ffmpeg批量旋转视频
//转化较快,逆时针旋转的度数
ffmpeg -i test.mp4 -c copy -metadata:s:v:0 rotate=180 rotate180.mp4
//转化用时较长
ffmpeg -i test.mp4 -vf "transpose=2,transpose=2" -codec:a copy rotate-180.mp4
注释:
rem For the transpose parameter you can pass:
rem 0 = 90CounterCLockwise and Vertical Flip (default)
rem 1 = 90Clockwise
rem 2 = 90CounterClockwise
rem 3 = 90Clockwise and Vertical Flip
rem To rotate 180 degrees, instead use "transpose=2,transpose=2"
rem Using -codec:a copy will simply copy the audio instead of reencoding it.