我想剪掉视频的一小部分并将其旋转 180 度。我试过了
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=2,transpose=2" -c:a copy passing_opponent_alarm_084305.mp4
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=2,transpose=2,vflip" -c:a copy passing_opponent_alarm_084305.mp4
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=1,transpose=1" -c:a copy passing_opponent_alarm_084305.mp4
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=1,transpose=1,hflip" -c:a copy passing_opponent_alarm_084305.mp4
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=1,transpose=1,vflip" -c:a copy passing_opponent_alarm_084305.mp4
ffmpeg -ss 70 -display_rotation 180 -i GH030258.MP4 -t 10 -c:a copy passing_opponent_alarm_084305.mp4
还有一些随机组合。它们似乎不起作用。有什么想法吗?
答案1
最后我找到了一个非常违反直觉的解决方案:
ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "rotate=0" -c:a copy passing_opponent_alarm_084305.mp4
看来我必须将视频旋转 0 度才能将其旋转 180 度!(但如果我省略此 rotate=0,视频将不会旋转并生成颠倒的视频……)