[FFmpeg-user] Vertically flipped mp4 video

Gyan Doshi ffmpeg at gyani.pro
Tue Jun 28 18:01:37 EEST 2022

On 2022-06-28 07:38 pm, Ulf Zibis wrote:
> Am 28.06.22 um 15:14 schrieb Ulf Zibis:
>> Am 28.06.22 um 14:59 schrieb Moritz Barsnick:
>>> Metadata flags do exist for rotating, but not for flipping. Thus this
>>> cannot be done without re-encoding.
>> I'm irritated. Here I can read, that it exists:
>> https://ffmpeg.org/ffmpeg-all.html#h264_005fmetadata
> So is this an error in the documentation, or what can I learn from this?

That's a H.264 bitstream filter. It can only be used on H.264 video streams.

Basic syntax is

     ffmpeg -i input -c copy -bsf:v 
h264_metadata=display_orientation=insert:flip=horizontal output


More information about the ffmpeg-user mailing list