[FFmpeg-user] Extract rotation flag

Andrey Goreev aegoreev at gmail.com
Mon Jan 8 18:37:24 EET 2018


ffprobe -show_streams input.mp4 2>/dev/null | grep rotate | cut -c 12-14
gave me the clean output:
90

Best regards,

On Mon, Jan 8, 2018 at 9:33 AM, Andrey Goreev <aegoreev at gmail.com> wrote:

> Thanks. That works. This one also worked:
> ffprobe -show_streams input.mp4 2>/dev/null | grep rotate
> which gives me:
> TAG:rotate=90
> Just need to get rid of "TAG:rotate=" now to get a clean "90"
>
> Best regards,
>
> On Mon, Jan 8, 2018 at 9:28 AM, Gyan Doshi <gyandoshi at gmail.com> wrote:
>
>>
>> On 1/8/2018 9:49 PM, Andrey Goreev wrote:
>>
>>>
>>> I am wondering if there is a way to extract the rotation flag ONLY
>>> using ffmpeg/ffprobe.
>>>
>>
>> Try
>>
>>     ffprobe video.mp4 -show_entries side_data=rotation -select_streams v
>> -read_intervals %+#1 -of compact=p=0 -v 0
>>
>>
>> Regards,
>> Gyan
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
>
>


More information about the ffmpeg-user mailing list