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 <[email protected]> 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 <[email protected]> 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 >> [email protected] >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> [email protected] with subject "unsubscribe". > > > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
