Hey, Dave here from Young Coconut Music.
This article is about how I made a crude yet entertaining music video with lyrics using just Claude. Didn’t think it could be done at this point, but surprise! It can!
I didn’t set out to make a music video. I went to Claude wanting something much smaller: a voice to narrate some text for a recruiting post. While I was in there, I figured I’d throw a second, more ridiculous idea at it — could it sync my own song’s lyrics to a video, word for word, and build some kind of crude visual story around them?
It could. What follows is a breakdown of how, because I think the “how” matters more than the result. This isn’t another “look what AI can do” post. Every tool that promises hyper-real AI video is chasing the same goal: make it look like a camera shot it, or like a human animated it by hand. That’s not what this is, and that’s exactly why I think it’s more useful for independent artists to understand. This was built the brutal-basics way — actual code, drawing actual shapes, frame by frame — and Claude wrote and ran all of it while I sat there giving notes like a director. No Sora, no Runway, no Suno. Just a chat window and a lot of back-and-forth.
What this actually is (and isn’t)
The video-generation tools getting attention right now are built on diffusion models — systems trained to hallucinate photorealistic or stylized video directly from a text prompt or a reference image. That’s a fundamentally different technology than what happened here.
What Claude did instead is closer to what a motion graphics artist or an old-school animator would recognize immediately: procedural, code-driven animation. Every single frame of the video — and a four-minute video at a standard 24 frames per second is about 6,000 individual frames — is a plain image drawn from scratch by a small Python program. No neural network painted any pixels. A function said “draw a circle here for the head, a rectangle there for the shirt, two lines for legs,” and that function ran 6,000 times with slightly different numbers each time to produce motion.
The library doing the actual drawing was Pillow, sometimes called PIL — it’s the same Python library people use for cropping a photo or slapping a watermark on an image. It has no idea what a “person” or “rage” or “pickle jar” is. It just draws ellipses, polygons, and lines wherever it’s told to. Every character, every prop, every background in the video is built out of those primitives, stacked into functions like draw_house() or draw_person().
Step one: getting the lyrics to actually line up
Before any drawing happened, there was a completely separate problem — figuring out, to the fraction of a second, when each line of the song was actually sung. This is called forced alignment: automatically matching a block of text to timestamps in an audio recording.
The tool for this, called aeneas, is genuinely old — it was built for syncing audiobook narration to text, not music. Under the hood it uses something called Dynamic Time Warping (DTW), which takes a synthetic, robotic reading of your lyrics (generated by a basic text-to-speech engine) and mathematically stretches and squeezes it until it best matches the rhythm of the real audio. It’s genuinely clever and works well for someone reading a book aloud at a steady pace.
It works a lot worse on a song. Rapping and singing don’t move like narration — you rush some syllables, hold others, and there’s a full band underneath obscuring the vocal rhythm the algorithm is trying to read. The first pass was noticeably off, and it got worse the longer the song ran, because small errors compounded over four minutes.
Two things fixed it. First, vocal isolation — using an AI source-separation model (in this case, one called Demucs) to strip the instrumental out and leave just the voice, which gave the alignment algorithm something much cleaner to work with. Second, and more important: when the algorithm still drifted, I just told Claude the correct timestamps myself, by ear, for the handful of lines that mattered. Software got us 90% of the way there; a human with headphones closed the gap. That combination — automated first pass, human correction on the hard parts — is probably the most reusable lesson in this entire project.
Step two: building a cast out of shapes
With the timing locked, the next job was inventing a visual language simple enough to draw quickly but consistent enough to hold together for four minutes. This is where procedural rigging comes in — instead of hand-drawing a character in every single pose (the way traditional cel animation works, one full drawing per frame), Claude built a character as a function with parameters: head position, arm angle, eye shape, whether he’s holding a knife. Calling that function with different numbers produces a different pose. One rig, infinite poses, without redrawing anything.
This is also where a couple of classic hand-drawn-animation ideas showed up, borrowed straight from traditional animation theory even though nothing here was drawn by hand. Squash and stretch — deforming a shape to sell weight or comedy — got used deliberately to make a side character look small and pathetic by scaling him unevenly instead of just shrinking him proportionally. Easing — making motion accelerate and decelerate naturally instead of moving at a robotic constant speed — is why a floating heart or a falling character looks like it has real weight instead of sliding around on rails. Both ideas are older than computers; they just got expressed as a few lines of math instead of a pencil.
Step three: actually animating it
Once there was a cast, animating a scene meant defining a handful of keyframes — key moments and key states, like “arm is down” at one timestamp and “arm is raised with a knife” two seconds later — and letting the code tween (interpolate) everything in between automatically. Almost the entire video runs on this idea: define where something starts, where it ends, and how much time it has, then let a formula fill in every frame in between.
A few effects needed something more specific. Fades — a heart appearing and drifting upward, a character fading into a scene — relied on alpha compositing, which is just a fancy way of saying “images can have a transparency channel,” letting one image blend into another instead of hard-cutting. Anything that needed to spin or flip (a comedic trip, a mid-air twist) used an affine transform — rotating a small, separately-drawn image (sometimes called a sprite) around a chosen pivot point before pasting it back into the scene. And the “camera work” — like zooming from a close-up on a face out to a wide shot — was faked using something photographers and video editors will recognize as the Ken Burns effect: crop in tight on a still frame, then gradually widen the crop and rescale it back to full size, which reads as a zoom even though the underlying image never moved.
Step four: stitching it all together
With a folder full of PNG images and a separate audio file, the last stage was assembly, and this is where a tool called ffmpeg did essentially all the heavy lifting. ffmpeg is open-source, command-line only, and quietly powers a huge amount of video software you’ve probably used without knowing it.
A few jobs it handled: concatenation — gluing separately-rendered scenes into one continuous timeline; muxing — merging a video stream and an audio stream into a single playable file; and choosing the right codec and container (in this case, H.264 video and AAC audio packed into an MP4 container, the standard combination that plays everywhere). It also handled subtitle burn-in — permanently baking the lyric captions into the video image itself, as opposed to a “soft” subtitle track you could toggle on and off.
Worth being honest about: this stage produced the most actual bugs. Early on, audio got noticeably glitchy at a few scene transitions — a little stutter, almost like a record needle being dropped back onto the track. The cause turned out to be exactly that kind of seam: I’d built the audio for each scene as a separate file and stitched them together, and small encoding differences at each boundary caused audible clicks. The fix was to stop treating the song as eight separate audio clips and instead build one single, unbroken audio track for the whole video, so there were no seams left to click at. It’s a good example of a problem that’s invisible until you actually watch the output critically — which is really the whole point of the next section.
The part that actually matters: iteration
If there’s one honest takeaway for another musician thinking about trying this, it’s that none of this worked because Claude generated something impressive on the first try. It worked because of a tight loop: render a small piece, look at the actual image or clip, say specifically what’s wrong, adjust the code, re-render. Over and over. The pickle jar in a confrontation scene got repositioned. A character’s fall got fixed because his head stopped looking like a circle after a sloppy resize distorted the proportions. A background gag got moved because it was floating in empty space instead of sitting next to the character holding it.
None of those were things Claude “knew” to avoid — they were caught by watching the output and describing the problem in plain language, the same way you’d give notes to a human collaborator. That’s really the pitch here: not “AI makes your video for you,” but “you can now direct an animated video without needing to operate animation software yourself.” You still need a point of view, patience, and a willingness to say “that looks wrong, fix it” as many times as it takes.
If you want to try this yourself
A few practical notes if you’re a musician thinking about doing this for your own track:
- Start small. Don’t ask for the whole video at once. Get one scene, even just a few seconds, looking right before scaling up. It’s much easier to fix a style problem when it’s contained to one clip.
- Get your lyric timing solid first. Everything downstream depends on it. If your song is dense or fast (ours had a full rap breakdown that broke the automatic alignment completely), expect to manually correct some of it by ear.
- Describe problems, not solutions. You don’t need to know the word “affine transform” to ask for a character to trip and fall — just say what you want to see. The technical implementation is Claude’s problem, not yours.
- Expect real bugs, not just style notes. This is genuine software, running real code, and it will occasionally break in ways that have nothing to do with taste — timing overlaps, image glitches, audio artifacts. Treat it like a normal collaborative build, not a slot machine.
- Know what you’re actually getting. This approach makes crude, stylized, code-drawn animation — flat shapes, simple rigs, a deliberately rough look. If you want photorealism, this isn’t that tool. If you want something that looks like it has a point of view and was made by a person who cared about the timing, it’s a genuinely strong option, and it costs nothing but time and back-and-forth conversation.
That last point is the one I keep coming back to. The interesting thing was never that a chatbot could make a video. It’s that the entire animation and audio-engineering toolchain — Pillow, forced alignment, ffmpeg, all of it — has existed for years and been sitting behind a wall of software most musicians never learned to operate. What changed is that the wall came down. You don’t need to know Python, or ffmpeg’s syntax, or what Dynamic Time Warping means, to direct all three of them. You just need to be willing to sit in the chat and say, over and over, “close — now fix this part.”
