How to Flip a Video With FFmpeg (hflip and vflip Are Mirrors, Not Rotates, and -c copy Cannot Do Them)
Short answer: to flip a video with FFmpeg, re-encode through hflip or vflip : ffmpeg -i input.mp4 -vf hflip -c:v libx264 -pix_fmt yuv420p -c:a copy flipped.mp4 hflip is a left–right mirror. vflip is a top–bottom mirror. The frame size stays the same (here, 720×1280). That is not a rotate: transpose=1 would turn this clip into 1280×720. And despite what autocomplete offers for "ffmpeg flip video…
To flip a video with FFmpeg, you must re-encode the video through the hflip or vflip filters. The -c copy option cannot be used for flipping because filtering and streamcopy cannot be used together. A flip is a video filter that re-encodes the video, whereas the -c copy option copies the audio stream without re-encoding. A 90-degree rotate would change the axes of the video, while a flip would not.
Therefore, to flip a video, you should use ffmpeg -i input.mp4 -vf hflip -c:v libx264 -pix_fmt yuv420p -c:a copy flipped.mp4, where hflip is a left-to-right mirror and vflip is a top-to-bottom mirror.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.