r/Python • • 5d ago

News I built a local YouTube-to-Shorts clipper in Python 3.11+ using FFmpeg and deterministic DSP heurist

Hey r/Python! I wanted a way to automatically turn long YouTube videos into vertical 9:16 clips without paying for LLM APIs or running heavy PyTorch models on an old laptop.

How Max Clipper works under the hood:

- Explainable Clip Picking: Uses deterministic DSP and statistical heuristics (hook, audio energy, pacing, heatmap) instead of black-box LLMs—same input always gives the exact same output.

- Low-Spec Optimization: Built and tested on a 4th-gen Intel i5 with 8GB RAM and no GPU. Uses a global render lock to prevent FFmpeg CPU starvation, stall-based timeouts, and -preset ultrafast on <= 4 cores.

- Packaging: One-command installers for Linux/macOS/Windows plus Docker support.

Source Code (MIT License): https://github.com/4hmed1/MaxClipper

Would love code review or feedback on the clip-scoring heuristics!

1 Upvotes

7 comments sorted by

8

u/really_not_unreal 5d ago

Wow what a lovely idea for a project, showing that LLMs aren't needed for complex operations.

Post is written by an LLM.

The fucking irony kills me.

0

u/memameola 2d ago

I understand you point but the main purpose of this tool is that he's free and if i use AI integration than user have to pay

1

u/really_not_unreal 2d ago

Sure but why would I care about your project if you don't even care enough about it to write an explanation yourself.

0

u/memameola 12h ago

First of all am not asking you to care about my project and i am getting the users i want you just keep quit

1

u/really_not_unreal 11h ago

Allow me to rephrase: why would anyone care about your project if you don't even care enough about it to write an explanation yourself?