[FFmpeg-user] Extract rotation flag

Andrey Goreev aegoreev at gmail.com
Mon Jan 8 18:19:01 EET 2018


Hello,

If I use:

mediainfo input.mp4 | grep Rotation

I get:

Rotation: 90

I am wondering if there is a way to extract the rotation flag ONLY
using ffmpeg/ffprobe.

I tried: ffprobe -i input.mp4 | grep Rotation

as well as "rotat", "rotation", "rotate", "%rotat%" but I get the full
output all the time (with the stamp, libraries, bitrate, etc.)

Please advise.

Best regards,
AG


More information about the ffmpeg-user mailing list