The toolbox behind the Christmas film: what each AI tool does and how it works

For our team film I let Claude do the work and learned little about the technology behind it. Here I catch up: a new short film, one scene per tool, and what happens in the background.

Comic: in the blue-lit data center corridor the man in the white T-shirt throws both arms up with a big grin, while a row of film-set spotlights shines on him from the ceiling

🌐 Also available in: Deutsch · Français · Español · Italiano · Português · Nederlands · Polski

In short: For our team’s Christmas film I let Claude do the work. I said in German what I wanted, Claude built it, and in the end there was a film of about two and a half minutes. I hardly noticed what happened technically. I am catching up on that here. Because the team film shows real colleagues, there is nothing from it to see. Instead, Claude built a new short film: one scene per tool, with the same comic figure as on the title images of this blog. Below it you can read what each tool does and how it works.

The tools film (65 s): one scene per tool. Images and video clips from the cloud, everything else made locally, the music and the voice included.
Table of Contents

🗣️ How we worked together

I wrote to Claude Code in Visual Studio Code, in plain German: “Make a scene where I run in and throw my hands over my head.” Every time, that turned into the same routine:

  1. Proposal: Claude writes the prompt in English, picks model and format and says what the job costs.
  2. Approval: a job only goes to the cloud after my explicit “Start”. That is a fixed rule, because a submitted job costs credits and cannot be taken back.
  3. Execution: images and video clips with people come from the cloud via ArtCraft. Everything else runs locally on my AI PC: editing, effects, music, voice.
  4. Check: Claude can neither play nor hear a video. It extracts single frames, puts them together into contact sheets, measures the loudness and has Whisper turn speech back into text.

The connection to the cloud runs through an MCP server (Model Context Protocol). That is a small program that offers Claude tools such as “generate image”, “estimate cost” or “fetch result”. It runs on the AI PC, because that is where the ArtCraft app with my login lives. Claude Code starts it from another machine over SSH. One consequence: if the AI PC is off, the connection to ArtCraft is gone too. After switching it on, it has to be reconnected in Claude Code (/mcp). Claude starts the local work over SSH as well: it writes a Python or shell script, copies it to the AI PC and runs it there.

☁️ From the cloud: Seedance and Nano Banana

Seedance 2.0 generates the short video clips, here the run-in. Nano Banana Pro generates and edits stills, here all the other scenes. Both are diffusion models: they start from pure noise and remove it in many small steps, guided by the text and by reference images. For video, time comes in as another dimension, so the model denoises a whole bundle of frames together, which keeps the motion consistent.

What I learned along the way:

  • Reference images keep the style. Every image gets the same two reference images. That keeps figure, place and drawing style the same, even though each image is made on its own.
  • Text in the image only when it has to be. The tool names in the film are overlaid locally. The models often get text wrong, and this way the rule “no logos, no brands in AI images” is easy to keep.
  • Not every clip works out. In the clip for the director scene my figure suddenly appeared twice, once in the director’s chair and once next to it with a coffee cup. It could not be cut out. A still with a local camera move was the cheaper fix than a new clip.
  • The content filter reads words, not intentions. In the team film a harmless science fiction duel with “swords” was rejected; with “light sticks” it went through.

🖥️ Locally: what happens on the AI PC

The AI PC is a normal desktop with Debian, a Ryzen 7 and an NVIDIA RTX 3050 with 8 GB of graphics memory. Most tools run in their own Python environments, the image and sound models in ComfyUI.

ffmpeg: the editing suite

ffmpeg cuts, cross-fades, writes text into the picture and mixes the sound. It works with filter graphs: picture and sound flow through a chain of filters, for example scale → drawtext → xfade. In the end, the whole tools film is a single long filter graph of 13 scenes.

A trap that came up while building this film: if fps=24 comes before setpts in the chain, setpts deletes the frame rate again, and xfade stops with the message that the frame rates “1/0” and “24/1” do not match. The order matters:

[0:v]setpts=PTS-STARTPTS,fps=24[a];   # right: timestamps first, then the frame rate
[a][b]xfade=transition=fade:duration=0.4:offset=4.6[ab]

Python: effects you compute yourself

Many effects are not an AI model at all, but a few lines of Python with NumPy and OpenCV:

  • Snow as a seamless loop. In the team film the snow jumped after 44 seconds, because the loop did not close. The fix: every flake travels a whole number of screen heights per pass. Then the last frame is exactly the first one.

    y = (y0 + laps * H * t) % H        # t runs from 0 to 1, laps is 1 or 2
    
  • Fireworks that find their target. Every spark is a particle with position, velocity, air drag and a little gravity. After the explosion, each spark gets a target point in the logo of this blog and steers towards it. At the end the real logo fades in on top.

  • Typewriter with a glitch. Every letter has its moment. For the glitch, the colour channels are shifted against each other and a few strips of the picture are moved sideways, with a short crackle in the sound.

  • Clock wipe with a light beam. For every pixel, the angle to the centre of the picture is computed. Everything the “clock hand” has already swept over shows the new scene. The hand itself is a softly drawn, glowing green line.

  • Magnifier. An enlarged copy of the picture is used only inside a circle that moves across the picture.

  • Code rain as the outro. Columns of characters fall at different speeds until the address of this blog stays on screen.

rembg: cutting out

rembg separates foreground from background. Behind it is a neural network for segmentation: for every pixel it decides whether it belongs to the subject and returns a mask. In the team film I needed it to keep a tinted figure stable and to put effects behind a person instead of in front.

RIFE: in-between frames

RIFE creates new frames between two existing ones, for example for slow motion. It estimates the optical flow, that is where every pixel moves from one frame to the next, and shifts the pixels accordingly. With fast, repeating patterns, such as the LEDs of a rack, it sometimes invents nonsense. That is why the team film used the original there.

ACE-Step and MMAudio: music and sound

ACE-Step creates music from a description, such as “instrumental, cheerful, electronic, 112 bpm”. The music in the tools film comes entirely from it. MMAudio creates sounds that match the picture: steps, rustling, wind. Both run locally in ComfyUI.

Chatterbox and Whisper: voice there and back

Chatterbox turns text into speech. In the film, a default voice says an English sentence that no human ever said. Whisper does the opposite: it turns speech back into text. That is how I checked whether the voice is understandable. In the film, Whisper’s result appears above the ear. “I am” became “I’m”, every other word matches.

🎵 Three tricks with the sound

This is where most of the time in the team film went.

  • Typing sounds on the beat. The key clicks in the terminal first sat on the grid of the frames, every 1/24 of a second. That sounded choppy, because it ran against the beat of the music. Placed on a grid of thirty-second notes of the music (about 52 milliseconds at 143.55 beats per minute), they sound as if they belong.
  • Removing old clicks without damaging the music. The misplaced clicks were already baked into the finished sound. Because the clean music track was still there, Claude subtracted it from the mix, aligned to the sample. Only the clicks were left, and those could then be removed on purpose.
  • A chord that rings on. At one point the film was cut hard, and the music broke off in the middle of a bar. The fix: play the last 120 milliseconds before the cut over and over, overlapping, while slowly fading out. The chord “stands” and rings out. Here is the comparison:
Hard cut: the music breaks off.
With the chord held: the same cut rings out.

And a picture trick from the same box: in the clips, the AI camera drifts slightly. So that an overlaid object does not “float” in the picture, a script measures the shift from frame to frame with phase correlation (cv2.phaseCorrelate) and lets the object move along.

⏱️ A few numbers

  • The team film is just under two and a half minutes long. The last version carried the number 192, with many small changes to timing, sound and transitions in between.
  • A complete rebuild of the film took between seven and fifteen minutes, mostly because of the two-pass encoding for the best quality. Upscaling the whole film to 1080p with AI took about three quarters of an hour.
  • From the cloud, a still came back in about a minute, a five-second video clip in five to seven minutes.
  • The graphics card: I was surprised how fast the RTX 3050 gets a lot done. Music, voice, cutting out and in-between frames take seconds to a few minutes. For FLUX, a large image model, 8 GB is tight: the model is loaded into memory piece by piece, and one image then takes minutes. And videos of people in motion are beyond it locally in usable quality: faces get crude, movements unnatural. That is exactly what the cloud is for.

🪟 Would this have worked on Windows too?

Mostly, yes. ComfyUI is available as a ready-made package for Windows, and so are Python, ffmpeg, Ollama and LM Studio. RIFE exists as a program that computes on the graphics card via Vulkan, also for Windows. The ArtCraft app runs on Windows, and so does Claude Code. The Python environments would have needed more manual work: some packages come with different dependencies on Windows. The most convenient way would have been WSL2, a real Linux under Windows with access to the graphics card. What would have been missing is mainly what I find convenient on Linux: services that run in the background via systemd, and control over SSH from another machine.

🎯 Conclusion

  1. The cloud delivers the motion, the homelab makes the film. People in motion come from the cloud, everything else is made locally, music and voice included.
  2. Many effects are not AI. Snow, fireworks, clock wipe and magnifier are a few lines of Python.
  3. The sound takes the most time. Beat, loudness and clean transitions make the difference between “cut together” and “finished”.
  4. Approval before every cloud job. One “Start” per job keeps the costs under control.
  5. Claude cannot see or hear, but it can measure. Contact sheets, loudness measurement and Whisper do not replace watching, but they find a lot before I do.

📚 Related posts:

Some text and images on this site are AI-assisted or AI-generated. Details