Skip to content

Edit Videos with AI

Category Content Creation
Status ๐ŸŸก Partially completed
Repo nextwork-edit-videos-with-ai
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 Edit Videos with AI guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ Content Creation
Status: ๐ŸŸก Partially completed

Overview

Editing from the transcript makes cutting a word as cheap as deleting text, and keeping the style as a measured file makes taste repeatable. Writing my feedback with timestamps, then asking for a fix I could see in a side-by-side frame, kept me honest about what actually changed (the sound fade I asked for is inaudible because the last second was already silent).

Summary

I did the whole workflow on real, credited NASA interview footage with Claude Code and my own local tools, not a hosted AI video editor. Claude Code measured a named style, "Live Shot Plain", from six reference interviews (pace, pauses, loudness, cut rate, shot size) and marked every parameter as measured or chosen; built a transcript-controlled cut where wrapping words in [[brackets]] cuts them and removing the brackets restores them (cut, cut more, restore, and the durations prove it); applied the style (card, captions, slow punch-ins, loudness); rendered v1; and then applied my timestamped feedback to get v2 with side-by-side proof of each fix. The secret mission is done: my notes became seven reusable style rules, and the same tools rendered a second interview with no clip-specific edits. It is partial because the guide's hosted AI editor and my own talking-head footage are replaced by local scripts and NASA public-domain video.

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

Skills & tools

Claude Code (headless), Transcript-based editing, ffmpeg/ffprobe, Python, Style analysis, Word-timed captions

What I built

  • tools/style.py and styles/live-shot-plain.json (version 2) with live-shot-plain.md: the named style, measured from six references; each value is tagged MEASURED, CHOSEN or DERIVED, and a rules block holds the seven reusable rules from my feedback.
  • tools/transcript_edit.py: init writes the editable transcript, render <version> cuts to the words not in [[brackets]] and applies the style. edits/transcript-cut-demo.md shows the cut, extra cut and restore exercise (t1, t2, t3).
  • edits/v1 and edits/v2: before and after my feedback in feedback.md; edits/v2/fixes/ has the side-by-side frames and edits/APPROVED.md records my approval.
  • clips/ref6.json, edits/second-clip/: the second interview rendered with the same tools and style, with a report of what did not carry over.
  • raw/, refs/, words/, CREDITS.md: NASA public-domain footage with its credits, and local speech-to-text word timings. prompts/ and docs/session-log.md: the five prompts and a readable log.

How to run

python3 -I tools/transcript_edit.py render v2     # edits/v2/render.mp4 from transcripts/meir.edit.txt
# cut a word: wrap it in [[ ]] in transcripts/meir.edit.txt; restore it: remove the brackets

Verification

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

rm -rf /tmp/evaiv && mkdir /tmp/evaiv && cp -r raw words styles tools transcripts clips /tmp/evaiv/ && (cd /tmp/evaiv && python3 -I tools/transcript_edit.py render verify >/dev/null && python3 -c "import subprocess;o=subprocess.run(['ffprobe','-v','error','-show_entries','format=duration:stream=width,height','-of','csv=p=0','edits/verify/render.mp4'],capture_output=True,text=True).stdout;d=[float(x) for x in o.replace(chr(10),',').split(',') if x.replace('.','').isdigit() and '.' in x][0];assert abs(d-135.8)<0.5,o") && echo EVAI OK

Notes

The first attempts to render hit a full disk and were redone; the log keeps the successful runs. Claude Code made one change I did not ask for: the picture is shown at 88% on a navy band so the captions can sit below the NASA name patch (a setting turns it off). The caption box is always drawn, not only over busy backgrounds. The second clip has a 31-second silent graphic card that no rule covers, and its name patch was found in 11 of 12 samples.

What isn't done, and why

No hosted AI video editor: the transcript editing, style analysis and feedback loop are my own local scripts written by Claude Code. The footage is NASA public-domain interview video, not my own talking-head recording, and the style is measured from other NASA interviews. Word timings were made by me with local speech-to-text because Claude Code's sandbox could not run it; wording may contain errors. The t1/t2/t3 test renders are not committed (reproducible with the tool), only their cut lists and reports.


Original project: https://nextwork.ai/projects/5610da9c-bb29-42b6-a4a4-e30420ec671d ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ rm -rf /tmp/evaiv && mkdir /tmp/evaiv && cp -r raw words styles tools transcripts clips /tmp/evaiv/ && (cd /tmp/evaiv && python3 -I tools/transcript_edit.py render verify >/dev/null && python3 -c "import subprocess;o=subprocess.run(['ffprobe','-v','error','-show_entries','format=duration:stream=width,height','-of','csv=p=0','edits/verify/render.mp4'],capture_output=True,text=True).stdout;d=[float(x) for x in o.replace(chr(10),',').split(',') if x.replace('.','').isdigit() and '.' in x][0];assert abs(d-135.8)<0.5,o") && echo EVAI OK

EVAI OK

[exit code 0]