Nice gate. One hole worth closing: width and height from ffprobe are the stored size, not the displayed size. A file with a rotation tag passes a 1280x720 check and still plays as portrait.
I tested it with FFmpeg 6.1.1: a 1280x720 clip copied with -display_rotation 90 still reports 1280, 720 for stream=width,height. Players that apply the tag show it upright as 720x1280, and re-encoding it with FFmpeg gives 720x1280 too. Adding the rotation to the same query returns 90, so the gate can fail on anything other than 0:
ffprobe -v error -select_streams v -show_entries stream=width,height:stream_side_data=rotation -of csv=p=0 clip.mp4
Vidlify
Nice gate. One hole worth closing: width and height from ffprobe are the stored size, not the displayed size. A file with a rotation tag passes a 1280x720 check and still plays as portrait.
I tested it with FFmpeg 6.1.1: a 1280x720 clip copied with -display_rotation 90 still reports 1280, 720 for stream=width,height. Players that apply the tag show it upright as 720x1280, and re-encoding it with FFmpeg gives 720x1280 too. Adding the rotation to the same query returns 90, so the gate can fail on anything other than 0: