Turn a video ad into a JavaScript recreation

A developer asked Claude to rebuild a downloaded ad as JavaScript, using the original soundtrack and matching the motion closely.

Done with Claude· Intermediate· Oct 2026

What they did
They saved a ChatGPT ad from YouTube, separated out its audio, and then let Claude Opus 5.5 inspect the material with ffmpeg. The request was to produce a pure JavaScript remake that preserved the sound, caught the subtle animation details, and looked polished. They stepped away and told it to keep going without help until the job was done.
How it went
The agent wrapped it up in less than an hour, completing the task in one stretch. The only clear difference was the final logo at the end of the clip.
Tips
Supplying both the source video and its audio track made the job more straightforward. Because this was an experiment involving an OpenAI ad, keep the output private and avoid distributing it.

Try it yourself with Claude Code

I have a source ad video saved at [video_path] and its extracted soundtrack at [audio_path]. Use ffmpeg to study the frames and timing, then build a one-file JavaScript animation that reproduces the ad as closely as possible and plays the same audio in sync. Work independently and keep refining the result against the source until it is ready to review in a browser. Before you perform anything irreversible, such as sending, publishing, deleting, or overwriting files, stop and ask me to approve it.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.