[FFmpeg-user] Can I set rotation field for a video stream with FFMPEG?

Alexander Kulyakhtin akulyakhtin at gmail.com
Mon Mar 11 10:29:26 CET 2013


I have a video file. I open it with MediaInfo utility and I can see a video
stream in this file having attribute Rotation 90 (along with other
attributes such as CodecID, bitrate etc).

Now I have another video file which does not have that attribute Rotation
90, it does not have the Rotation attribute at all.

Can I use ffmpeg.exe so that it produces output file with Rotation 90
attribute added and with no other changes? I don't really want to do any
transform, just want to set the Rotation attribute.

I've tried -metadata option but to no avail.

Thanks!


More information about the ffmpeg-user mailing list