---
title: "Discussion on \"ffmpeg Check a 9:16 Freestyle Clip Before Upload\" | Hashnode"
description: "Discussion on \"ffmpeg Check a 9:16 Freestyle Clip Before Upload\". Short-video platforms re-encode whatever you give them. If the file you upload is already off (wrong frame size, odd frame rate, mono audio, a mastering level that clips), the platform's transcode mak"
url: "https://hashnode.com/posts/ffmpeg-check-a-9-16-freestyle-clip-before-upload/6ad0dccd21cf4df35966300c"
---

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

Discussion

# [ffmpeg Check a 9:16 Freestyle Clip Before Upload](https://dev.mixvio.ai/ffmpeg-check-a-9-16-freestyle-clip-before-upload?utm_source=hashnode&utm_medium=feed)

Short-video platforms re-encode whatever you give them. If the file you upload is already off (wrong frame size, odd frame rate, mono audio, a mastering level that clips), the platform's transcode mak

Oct 15 · 6 min read · dev.mixvio.ai  
Updated Oct 17  
Read the article

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

[StackShortlist](https://hashnode.com/@veristria)

[Oct 16](https://hashnode.com/posts/ffmpeg-check-a-9-16-freestyle-clip-before-upload/6ad0dccd21cf4df35966300c/comment/6ad2b1b8a305ffe66918440e)

A pre-upload check like this is cheap insurance, since the platform transcode only makes existing problems worse. One addition worth scripting is ffprobe on avg\_frame\_rate versus r\_frame\_rate, because a variable frame rate file from a phone can pass a quick look and still drift out of sync after re-encoding. Running the ebur128 filter for integrated loudness and true peak in the same pass also catches the clipping case before upload.

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

[Oct 17](https://hashnode.com/posts/ffmpeg-check-a-9-16-freestyle-clip-before-upload/6ad0dccd21cf4df35966300c/comment/6ad2b1b8a305ffe66918440e#reply-6ad32ebc544955f4be83f8e5)

Thanks, that's a good catch. The script only checks r\_frame\_rate right now, so a variable frame rate phone clip could slip through. Comparing it against avg\_frame\_rate and flagging any mismatch is a cheap extra check, and it fits right next to the ebur128 pass that's already there.
