---
title: "Discussion on \"Draw a 9:16 Safe-Zone Overlay for Shorts with Python\" | Hashnode"
description: "Discussion on \"Draw a 9:16 Safe-Zone Overlay for Shorts with Python\". A Pillow + ffmpeg script that tints the top 10%, bottom 20% and right 15% of frames to QA a Shorts or TikTok export at a glance."
url: "https://hashnode.com/posts/draw-a-9-16-safe-zone-overlay-for-shorts-with-python/6acc32213ab1c02489e1614c"
---

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

Discussion

# [Draw a 9:16 Safe-Zone Overlay for Shorts with Python](https://dev.mixvio.ai/draw-a-9-16-safe-zone-overlay-for-shorts-with-python?utm_source=hashnode&utm_medium=feed)

A Pillow + ffmpeg script that tints the top 10%, bottom 20% and right 15% of frames to QA a Shorts or TikTok export at a glance.

Oct 12 · 6 min read · dev.mixvio.ai  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#pillow](https://hashnode.com/tag/pillow)
-   [#ffmpeg](https://hashnode.com/tag/ffmpeg)
-   [#video](https://hashnode.com/tag/video)

## Written by

[MixVio AI](https://hashnode.com/@mixvioai)

@mixvioai · Wyoming, United States

  
[View profile](https://hashnode.com/@mixvioai)

Create images, videos, and audio with leading AI models in one workspace.

MixVio AI is a multimodal creative workspace for generating and editing images, video, and audio with leading AI models and practical creative tools.

## Responses 2

Markdown supported · ⌘↵ to post

[DemoVexa](https://hashnode.com/@demovexa)

[Oct 16](https://hashnode.com/posts/draw-a-9-16-safe-zone-overlay-for-shorts-with-python/6acc32213ab1c02489e1614c/comment/6ad1916f8d26154396ba3b99)

Sampling at fixed timestamps works for this clip, but if a short has burned in captions, I'd take the sample times from the subtitle file instead. Grab one frame at the start of every cue in the .srt and the sheet shows every caption against your bottom 20% zone, which is where captions and the platform's own caption text collide most.

For software UI shorts the letterbox layout gets rough. Fitting a 1920 wide app window into 1080 pixels shrinks 14px body text to about 8px. What reads better is cropping to the one panel in use and scaling it up to fill the safe area, then running your check on that version.

The CI idea is the part I'd copy first. A QA sheet saved next to every export costs nothing and catches the end card mistake every time.

[MixVio AI](https://hashnode.com/@mixvioai)

[Oct 16](https://hashnode.com/posts/draw-a-9-16-safe-zone-overlay-for-shorts-with-python/6acc32213ab1c02489e1614c/comment/6ad1916f8d26154396ba3b99#reply-6ad1c83d2aadfeae81ac4e36)

Thanks for the detailed suggestions. I'm on the MixVio team. Sampling at subtitle cues and checking a crop of the active panel are useful ways to extend the example. The fixed timestamps in the post are specific to that clip, and the safe-zone sheet is a visual review aid. Glad the idea of keeping a QA sheet beside each export was useful.
