Skip to content

Video Editing with Claude x Remotion

Category Content Creation
Status โœ… Completed
Repo nextwork-video-editing-with-claude-x-remotion
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

๐Ÿ“š NextWork learning project. This is a practice project I built while working through NextWork's Video Editing with Claude x Remotion guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ Content Creation
Status: โœ… Completed

Overview

In Remotion every frame is a pure function of the frame number, so animation is just maths you can test. Timing lives in a plain JavaScript module with no React in it, which is why Node's built-in test runner can check when each element starts and ends. The theme file keeps design choices out of the code.

Summary

Claude Code built a real Remotion (React) project that lays motion graphics over a real NASA interview clip and renders the MP4 from code. A title card springs in with a scale and fade, a lower third slides in with an eased interpolation and slides out, and one theme.json controls every colour, font, text and timing. The secret mission is a second composition where, at the 5-second mark, the video slides down to reveal an animated diagram in the top third. 25 unit tests pass, both videos render at 1280x720 and 30 fps, and I re-ran the whole thing from a clean install.

The checks behind this are in docs/verification.txt.

Skills & tools

Claude Code (headless), Remotion, React, interpolate and spring, Node test runner, ffmpeg/ffprobe, SVG

What I built

  • src/Lower.jsx: the title card (spring scale and fade) and the lower third (eased slide, hold, slide out and fade), all driven by useCurrentFrame.
  • src/Split.jsx and src/Diagram.jsx: at frame 150 the video slides down 240 px and an inline SVG diagram (question, answer, short edit) draws itself in the top third.
  • theme.json: colours, fonts, copy, sizes and every start frame and duration. src/timing.js and src/style.js are the pure helpers; test/ has 25 node:test tests.
  • public/footage.mp4: a 20-second clip from a NASA interview (see CREDITS.md). renders/ has lower-third.mp4, split.mp4 and the frames I checked.
  • prompts/ and docs/session-log.md: the prompt I gave Claude Code and a readable log of the session.

How to run

npm ci
npm test
npm run render          # renders/lower-third.mp4
npm run render:split    # renders/split.mp4
# package.json points at /usr/bin/google-chrome; edit that path for your machine

Verification

I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.

npm ci --silent >/dev/null 2>&1; npm test 2>&1 | grep -q 'pass 25' && mkdir -p /tmp/rem && npx remotion render src/index.jsx Lower /tmp/rem/l.mp4 --browser-executable=/usr/bin/google-chrome --log=error >/dev/null 2>&1 && ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames,width,height -of csv=p=0 /tmp/rem/l.mp4 | grep -q '1280,720,240' && echo REMOTION OK

Notes

Claude Code chose the placeholder title ("Pre-Launch Interviews"). The footage is 15 fps and the composition 30 fps, so each source frame shows twice. Timing changes are covered by unit tests, but I only checked a colour change end to end in a render. The video moves down by a third of the frame, which crops the bottom of the footage for the rest of that clip.


Original project: https://nextwork.ai/projects/46c13d3b-662d-4995-982c-845625a17082 ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ npm ci --silent >/dev/null 2>&1; npm test 2>&1 | grep -q 'pass 25' && mkdir -p /tmp/rem && npx remotion render src/index.jsx Lower /tmp/rem/l.mp4 --browser-executable=/usr/bin/google-chrome --log=error >/dev/null 2>&1 && ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames,width,height -of csv=p=0 /tmp/rem/l.mp4 | grep -q '1280,720,240' && echo REMOTION OK

REMOTION OK

[exit code 0]