Short answer: pdoom-video is an open source project that renders a full music video from code, with lyrics that light up word by word in sync with the song. It runs on your own machine with bun, Chrome and ffmpeg, no paid service needed. The code is MIT. The song is not.
What it is
pdoom-video is the source behind a music video for the song "I'm Upping My P(doom)". There is no editing timeline and no stock footage. Every frame is drawn by code in three.js, and every frame is a function of the song's time. That means the preview you watch in the browser is exactly what ends up in the final video file.
The README says the whole thing was made with Claude in Claude Code: the concept, lyric alignment, renderer, scenes and renders. So it is also a good look at what an AI coding agent can build when the job is visual, not just a web app.
How it works
- Word-synced lyrics. Timings for each word and each beat are saved as JSON files in the repo. The author made them with stem separation (Demucs), forced alignment checked against Whisper, and beat analysis.
- Scenes tied to the song. Each scene is its own module. A timeline file anchors scenes to lyric lines and snaps them to the beat.
- Real motion blur. Each frame blends many sub-frames, from 12 up to 324 depending on how much is moving.
- Offline render. A script drives headless Chrome, streams frames out and encodes them with ffmpeg into 1080p or 4K at 60 frames per second.
What you need to run it
- bun, Google Chrome and ffmpeg with libx264.
- uv (Python) only if you want to run the analysis tools and redo the timings.
- A strong computer for 4K. The README reports about 2.5 hours for the full song on an M5 Pro Mac, around 5 GB of memory for Chrome plus 4 GB for ffmpeg per pipeline, and a 13 GB output file.
The live preview runs at localhost:5173 after bun install and bunx vite. The README says it plays in real time on a recent Mac. It does not mention other systems.
Who it's for
- Musicians and creators who want a lyric video that looks designed, not templated, and are willing to work with code or with an AI agent.
- Agent builders looking for a real example of a long creative project done with a coding agent, from audio analysis to final render.
- Developers learning three.js who want a clear structure: one module per scene, a timeline, and a renderer that turns the browser into a video tool.
The useful idea to take away is the pattern: lock the visuals to the audio timeline, keep timings as data, and render from the browser. You can swap in your own song and scenes on top of that.
What to watch out for
- The song is not open. The audio and lyrics are in the repo but are not covered by the MIT license. They belong to their authors. Use your own track.
- Redoing timings takes extra work. The stems and the model weights (about 4 GB) used for alignment are not included. For a new song you need to run the analysis yourself.
- 4K is heavy. Long renders, GPU-bound, huge files. Start at 1080p.
- Built for one video. This is a project, not a general tool with settings. Expect to read and change code.
- Young repo. Close to 800 stars but only a handful of commits, so do not expect support or regular updates.
Source: mexicat/pdoom-video on GitHub
More AI tools and ready prompts at masterphub.io