Source code for the Claude Opus 5.5 music video for I'm Upping My P(doom).
Highly recommend checking it out!
- Inspired by: this post on X
- Song: as far as I could find, it comes from this YouTube video from 2024
The video took two generations, both in Claude Code:
- First generation (
legacy/): Claude Opus 5.5 (Medium) - Second generation (everything else): Claude Opus 5.5
Everything in this repository was generated by the model. No scene ideas were specified. The only direction was to:
- use the Clawd character design
- give each lyric interesting visuals and transitions
ANIMATION_GUIDE.md was written by Opus to brief the subagents it ran in parallel.
STORYBOARD.md was also written by Opus after the first generation, after being instructed to use P5 brushstrokes, make each scene visually interesting, and make every scene transition into the next.
| Path | What it is |
|---|---|
src/ch/ |
The video's nine chapters, one file each |
src/ |
Shared code: Clawd, the guest characters, props, lyrics and the timeline |
studio.html |
The page every frame is painted in, using p5.js and p5.brush |
render.mjs |
Renders frames in headless Chrome and encodes the MP4 with ffmpeg |
STORYBOARD.md |
Opus's shot-by-shot plan |
ANIMATION_GUIDE.md |
Opus's style and code guide for its subagents |
legacy/ |
The first generation |
You need Node.js, Google Chrome and ffmpeg. The song is included at assets/pdoom.mp3.
npm install
node render.mjs --frames=0:156.6 --workers=4 # paint every frame into out/frames (resumable)
node render.mjs --encode --out=out/pdoom.mp4 # join the frames and the song into an MP4If Chrome isn't installed at the default Windows path, add --chrome=<path to chrome>.