DEV Community

Stash Camp
Stash Camp

Posted on

I built a free Python renderer that turns a script into a captioned vertical video

I wanted to make short vertical videos without an editor or paid tools, so I put together a small pipeline. A script.json goes in, a 1080x1920 MP4 comes out, with captions timed to each spoken word, a free voice-over (edge-tts) and cuts on the beat.

How it works

  • Python, Pillow, numpy and ffmpeg. No paid APIs.
  • build_voice.py makes the voice-over and saves the start time of every word.
  • reel.py draws each scene and times the captions to those word times.
  • A demo kinetic-text reel (44 seconds) renders in about 4 minutes on one CPU core, plus about 25 seconds for the voice. I measured both.

What is in the kit

  • A skill file you can load into Claude or ChatGPT. It writes the script, scenes, caption and render commands.
  • 40 prompts for hooks, covers and captions.
  • The renderer, 3 free fonts and 3 public-domain sample photos with credits.

It is a template you edit, not a one-click generator. You need Python and ffmpeg. The free voice needs an internet connection.

Links

No income promises. If your first video does not render, reply to your receipt email with the error text.

Top comments (0)