---
title: "Discussion on \"A build-time gate for short generated clips: prompt catalogs, aspect ratios, and a QA checklist\" | Hashnode"
description: "Discussion on \"A build-time gate for short generated clips: prompt catalogs, aspect ratios, and a QA checklist\". How I keep header loops out of a static site unless duration, size, and the prompt version all check out"
url: "https://hashnode.com/posts/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist/6b0aebdd2b55daebeb8fd9f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A build-time gate for short generated clips: prompt catalogs, aspect ratios, and a QA checklist](https://tomasreels.hashnode.dev/a-build-time-gate-for-short-generated-clips-prompt-catalogs-aspect-ratios-and-a-qa-checklist?utm_source=hashnode&utm_medium=feed)

How I keep header loops out of a static site unless duration, size, and the prompt version all check out

4d ago · 7 min read · tomasreels.hashnode.dev  
Read the article

-   [#static-site](https://hashnode.com/tag/static-site)
-   [#ai-video](https://hashnode.com/tag/ai-video)
-   [#developer-experience](https://hashnode.com/tag/developer-experience)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#ffmpeg](https://hashnode.com/tag/ffmpeg)

## Written by

[Tomas Ferreira](https://hashnode.com/@tomasferreira-dev)

@tomasferreira-dev

  
[View profile](https://hashnode.com/@tomasferreira-dev)

Developer who tinkers with video and web tools on the side.

Developer who tinkers with video and web tools on the side.

## Responses 1

Markdown supported · ⌘↵ to post

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

[3d 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
```
