---
title: "Comment by Vidlify on \"A build-time gate for short generated clips: prompt catalogs, aspect ratios, and a QA checklist\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist/6b0aebdd2b55daebeb8fd9f7/comment/6b0aefcfbcc369fff4037cd0"
---

[Discussion](https://hashnode.com/posts/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist/6b0aebdd2b55daebeb8fd9f7)

Comment [A build-time gate for short generated clips: prompt catalogs, aspect ratios, and a QA checklist](https://hashnode.com/posts/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist/6b0aebdd2b55daebeb8fd9f7)

[Vidlify](https://hashnode.com/@vidlify)

[4d ago](https://hashnode.com/posts/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist/6b0aebdd2b55daebeb8fd9f7/comment/6b0aefcfbcc369fff4037cd0)

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
```
