Videoediting automatisieren mit Claude Code: 69 Videos in vier Tagen
Mit Claude Code lässt sich die Videobearbeitung so automatisieren, dass in vier Tagen 69 Videos ohne ein einziges Schnittprogramm entstehen. Ein Videoautor berichtet von seinen Erfahrungen mit dem Workflow.

Wer das Videoschnitt mit Claude Code automatisiert, kann 69 Videos in vier Tagen fertigstellen, ohne ein einziges Mal eine Schnitt-App zu öffnen. Dreiunddreißig weitere kamen aus meiner Endkontrolle zurück.
Ich führe seit 22 Jahren mein eigenes Unternehmen in Japan. Ich produziere Videos für drei Kanäle, und manuelles Schneiden hätte nie in meine Woche gepasst.
Ich habe ein Video dazu gemacht. Dieser Artikel enthält das, wofür im Video kein Platz war: die tatsächliche Struktur der Dateien, die vollständige Liste der automatischen Prüfungen, die Zahlen für das Video, das Sie gerade sehen könnten, die Werkzeuge, einen Prompt zum Kopieren für den Einstieg und das, was ich bisher nicht ausprobiert habe.
Wenn man nach KI-Videoschnitt sucht, sind die meisten Ergebnisse Apps. Sie fügen Untertitel hinzu, schneiden Pausen heraus oder wählen Highlights aus einer bereits fertigen Aufnahme aus.
Mein Ansatz setzt früher an. Es gibt keine Aufnahme. Das Video wird direkt aus dem Skript aufgebaut, Zeile für Zeile.
Das hat seinen Preis. Sie sehen mich nicht mit einer Kamera herumlaufen. Der Ansatz passt zu Erklärvideos wie diesem, nicht zu Vlogs.
Im Video ist von "etwa siebentausend Bildern" und "sechsundzwanzig Clips" die Rede. Diese Zahlen stammen aus einem anderen Video, einem vierminütigen über Claude Code hooks, das ich als Beispiel verwendet habe. Hier sind beide, direkt aus den Dateien, nebeneinander.
Dieses Video enthält zusätzlich 45 Kartenbilder (die Diagramme und Textkarten, die Sie sehen) und 10 KI-generierte Illustrationen, jede genau einmal verwendet, ohne Text und ohne Personen. Ich habe nicht aufgezeichnet, wie lange das Rendern dauerte, deshalb nenne ich dazu keine Zahl.
Das Skript ist eine JSON-Liste, ein Eintrag pro Satz. Hier ist ein echter Eintrag aus diesem Video. Das Feld ja ist meine japanische Version, und die show-Notiz steht in der Datei auf Japanisch; ich habe sie hier übersetzt.
{ "scene": "m1", "part": "mech", "text": "And for each line, it saves exactly when it starts and when it ends. That list of times becomes the clock for everything else.", "ja": "(my Japanese version of the same sentence)", "show": "A table of start and end seconds for each line, and a clock icon" } Enter fullscreen mode Exit fullscreen mode Jeder Text geht an ElevenLabs, mit einer Stimme, die ich auf meine eigene Stimme trainiert habe (Modell eleven_v4, stability 0.85). Jede Zeile wird zu einer eigenen Audiodatei. Wenn sich der Text einer Zeile nicht geändert hat, wird sie nicht neu generiert.
Anschließend werden die Zeilen zu einer einzigen Tonspur zusammengefügt, und eine Datei mit Start- und Endpunkt jeder Zeile wird geschrieben. Das ist der echte Eintrag für die obige Zeile:
{ "scene": "m1", "part": "mech", "text": "And for each line, it saves exactly when it starts and when it ends...", "show": "A table of start and end seconds...", "s": 93.696, "e": 100.856 } Enter fullscreen mode Exit fullscreen mode
s und e sind Sekunden. Die Datei enthält außerdem die Gesamtlänge (377,166 Sekunden für dieses Video) und einen Loudness-Wert für jede 1/30 Sekunde, insgesamt 11.314 davon.
Zwischen zwei kleine Dinge passieren, während die Stimme erzeugt wird, und beide werden protokolliert:
Diese Wortzeiten sind später wichtig. Ein gelbes Feld auf dem Bildschirm kann genau dann erscheinen, wenn ich sein Wort ausspreche, weil die Uhr das Wort kennt.
Und genau deshalb beginne ich mit der Stimme. Ändere ich einen Satz im Skript, bekommt nur diese Zeile eine neue Stimme. Die Uhr wird aktualisiert, und jede Szene danach verschiebt sich von selbst. In einem normalen Editor bedeutet dieselbe Korrektur, halbe Timeline von Hand zu verschieben.
Neben jeder Zeile steht in der show-Notiz, was auf dem Bildschirm erscheinen soll: ein Logo, ein Diagramm, ein echter Screenshot. Aus dieser Notiz baut Claude jede Szene.
Claude Code schreibt eine HTML-Seite, 1920 mal 1080. Jede Szene ist ein kleines Stück dieser Seite: ein Kartenbild, ein Screenshot, ein gelbes Hervorhebungsfeld, eine Bildunterschrift. Jedes Stück weiß, zu welcher Zeile es gehört, und erscheint daher, sobald diese Zeile beginnt.
In meinem Build-Skript ist jede Szene eine kurze Liste von Stücken, die mit wenigen Hilfsfunktionen erzeugt werden:
Dieses Video hat am Ende 103 solcher Stücke. Zwei Regeln sind im Skript selbst verankert und brechen den Build mit einem Fehler ab:
Screenshots stammen aus den echten Apps. Bevor einer hineinkommt, durchsucht eine Prüfung ihn nach E-Mail-Adressen und Kartennummern und verwischt nur diese, nicht die Logos daneben.
Ein headless Chromium, gesteuert von Playwright, öffnet die Seite und fotografiert sie 30 Mal pro Sekunde. Vier davon arbeiten gleichzeitig, jeder auf seinem eigenen Viertel der Frames. Schlägt einer fehlt und fehlt ein Frame, bricht der Lauf ab. Es überspringt keinen Frame stillschweigend.
Dann fügt ffmpeg die Bilder mit Stimme und Musik zusammen. Das Video wird mit dem Hardware-H.264-Encoder des Macs encodiert, mit einer Bitrate von 10 Mbps. Die Lautheit wird gemessen und auf -14 LUFS korrigiert, und der Lauf bricht ab, wenn das Ergebnis außerhalb von plus oder minus 0,5 liegt. Dieses Video landete bei -14.4.
Auch die Musik ist geplant. Jede Szene hat in einer kleinen Datei eine Stimmung: pulse, calm, tense, drive, news, bright, dark, warm. Der Track wechselt, wenn die Stimmung wechselt.
Und echtes Footage-Material stammt von kostenlosen Stock-Seiten, in diesem Video überwiegend von Pixabay. Ich führe eine Liste der akzeptierten Clips (46 Zeilen) und der abgelehnten Clips (18 Zeilen), damit derselbe schlechte Clip nicht zurückkommt. Eine Regel verlangt mindestens zwei Clips pro 20 Sekunden. Bei 377,2 Sekunden heißt das 38, und dieses Video hatte 42.
Diesen Schritt überspringen die meisten. Im Video ist von "etwa zwanzig" die Rede. Ich habe die tatsächliche Liste im Export-Skript heute nachgezählt, und es sind 19 Gates. Jedes einzelne existiert, weil ich genau diesen Fehler einmal mit eigenen Augen gesehen habe.
Für dieses Video zeigt das Log die Ergebnisse derjenigen, die eine Zeile ausgeben:
Dieses Bild ist eine Illustration aus dem Video, keine Kopie eines echten Logs. Es geht um das Verhalten: Schlägt eine Prüfung fehl, stoppt der Export. Es warnt mich nicht. Es weigert sich, die Datei zu erzeugen.
Mein erstes Video hatte überhaupt keine Prüfungen. Sie brauchen nicht alle meine am ersten Tag. Sie brauchen eine: die für den Fehler, der Sie heute geärgert hat.
Zuerst schaue ich mir den Plan an, bevor irgendetwas gerendert wird. Der Plan ist eine Reihe von Standbildern, eines pro Szene: für dieses Video 103 Stills. Ein Problem dort zu finden kostet eine Minute. Es im fertigen Video zu finden kostet einen kompletten Re-Export.
Ich kann ein Bild kommentieren: dieser Text ist zu klein, dieses Feld ist nicht zentriert. Jeder Kommentar wird zu einer Korrektur und oft zu einer neuen Prüfung.
Auch das Thumbnail wird zweifach erzeugt. Für dieses Video habe ich Version A und Version B erstellt. YouTube zeigt beiden unterschiedlichen Personen, um zu sehen, welche mehr Klicks bekommt.
Der menschliche Teil meines Schnitts besteht also aus zwei Blicken pro Video und den Kommentaren, die ich hinterlasse. Alles dazwischen erledigt Claude Code.
Drei Fehler aus der Woche, in der ich dieses Video gemacht habe.
Erstens: der Endscreen. Am Ende eines langen Videos blendet YouTube klickbare Karten über die letzten 20 Sekunden ein. Mein Abschlusstext lag genau darunter, und niemand konnte ihn lesen. Jetzt markiert eine Prüfung diese beiden Bereiche und hält sie leer. Sie prüft 40 Frames und lässt den Build fehlschlagen, wenn mehr als 0,5 Prozent der Pixel in diesen Bereichen gefüllt sind.
Zweitens: Zooms, die zu schnell waren. Claude zoomte in einer halben Sekunde in einen Screenshot hinein, und man konnte nichts lesen. Die Regel lautet jetzt mindestens 2,5 Sekunden, und der Plan muss angeben, wo der Zoom beginnt und auf welches Wort er wartet.
Drittens: Die Wörter auf dem Bildschirm stimmten nicht mit den Wörtern in der Stimme überein. Im Skript stand das eine, im Screenshot etwas anderes. Das fange ich immer noch mit dem Auge. Es geht um Bedeutung, und Prüfungen sind schlecht in Bedeutung. Deshalb bleibt mein letzter Blick.
Es überspringt nie eine Prüfung, weil es spät in der Nacht ist. Es macht eine Zeile in Sekunden neu, statt eine Timeline neu aufzubauen. Und es fertigt Video Nummer 69 mit derselben Sorgfalt wie Video Nummer eins.
Was ich bekommen habe, ist Zeit. Das ist bisher das gesamte Ergebnis: 69 Videos haben meine Endkontrolle in vier Tagen bestanden, und 33 weitere wurden zurückgeschickt.
Fangen Sie klein an. Bauen Sie nicht mein komplettes Set auf. Hier sind die Schritte.
Ein Prompt, den du für Schritt 2 und 3 kopieren kannst, mit deinem eigenen Sprachdienst und deinen Tools ausgefüllt:
Ich habe ein Skript in script.json: eine Liste von Zeilen, jede mit "text". 1. Wandle jede Zeile mit [dein Text-to-Speech-Dienst] in eine Audiodatei um. Überspringe Zeilen, deren Text sich seit dem letzten Mal nicht geändert hat. 2. Füge die Dateien zu einer Tonspur zusammen und schreibe timeline.json: für jede Zeile ihren Anfang und ihr Ende in Sekunden sowie die Gesamtlänge. 3. Erstelle eine HTML-Seite, 1920 mal 1080, mit einer Szene pro Zeile. Zeige jede Szene genau zwischen ihrem Anfang und ihrem Ende. 4. Exportiere noch nicht. Zeig mir zuerst den Plan. Vollbildmodus aktivieren Vollbildmodus beenden Dann für Schritt 5 der Satz, der über die Zeit die meiste Arbeit leistet:
Dieser Text war zu klein zum Lesen. Behebe das und füge eine Prüfung hinzu, die den Build fehlschlagen lässt, wenn irgendein Text auf dem Bildschirm kleiner als 40 Pixel ist. Vollbildmodus aktivieren Vollbildmodus beenden Claude Code bearbeitet nicht wie ein Editor. Es bearbeitet wie ein Programmierer. Und ein Programmierer wird nie müde von Video Nummer einhundert.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Automate video editing with Claude Code, and you can finish 69 videos in four days without opening an editing app once. Thirty-three more came back from my final check.
I have run my own company in Japan for 22 years. I make videos for three channels, and editing by hand was never going to fit into my week.
I made a video about it. This article has what the video has no room for: the real shape of the files, the full list of the automatic checks, the numbers for the video you may be watching, the tools, a prompt you can copy to start, and what I have not tried.
If you search for AI video editing, most results are apps. They add captions, cut the pauses, or pick highlights from a recording you already made.
Mine starts earlier. There is no recording. The video is built from the script itself, line by line.
That has a cost. You will not see me walking around with a camera. It fits explainer videos like this one, not vlogs.
The video says "about seven thousand pictures" and "twenty-six clips". Those numbers are from a different video, a four-minute one about Claude Code hooks, that I used as the example. Here are both, taken from the files, side by side.
This video also has 45 card images (the charts and text cards you see) and 10 AI-made illustrations, each used once, with no text and no people in them. I did not record how long the render took, so I will not give you a number for it.
The script is a JSON list, one entry per sentence. Here is one real entry from this video. The ja field is my Japanese version, and the show note is written in Japanese in the file; I translated it here.
{ "scene": "m1", "part": "mech", "text": "And for each line, it saves exactly when it starts and when it ends. That list of times becomes the clock for everything else.", "ja": "(my Japanese version of the same sentence)", "show": "A table of start and end seconds for each line, and a clock icon" } Enter fullscreen mode Exit fullscreen mode Every text goes to ElevenLabs, with a voice I trained on my own voice (model eleven_v4, stability 0.85). Each line becomes its own audio file. If a line's text has not changed, it is not generated again.
Then the lines are joined into one voice track, and a file is written with the start and end of every line. This is the real entry for the line above:
{ "scene": "m1", "part": "mech", "text": "And for each line, it saves exactly when it starts and when it ends...", "show": "A table of start and end seconds...", "s": 93.696, "e": 100.856 } Enter fullscreen mode Exit fullscreen mode
s and e are seconds. The file also holds the total length (377.166 seconds for this video) and a loudness reading for every 1/30 of a second, 11,314 of them.
Two small things happen while the voice is built, and both are logged:
Those word times matter later. A yellow box on screen can appear when I say its word, because the clock knows the word.
And this is why I start with the voice. Change one sentence in the script, and only that line gets a new voice. The clock updates, and every scene after it moves by itself. In a normal editor, that same fix means dragging half the timeline.
Next to each line, the show note says what to put on screen: a logo, a chart, a real screen. That note is what Claude builds each scene from.
Claude Code writes one HTML page, 1920 by 1080. Every scene is a small piece of that page: a card image, a screenshot, a yellow highlight box, a caption. Each piece knows which line it belongs to, so it appears when that line starts.
In my build script, every scene is a short list of pieces, made with a few helpers:
This video ended up with 103 of those pieces. Two rules are built into the script itself and stop the build with an error:
Screenshots come from the real apps. Before one goes in, a check looks for email addresses and card numbers and blurs only those, not the logos next to them.
A headless Chromium, driven by Playwright, opens the page and takes a picture of it 30 times a second. Four of them work at once, each on its own quarter of the frames. If any of them fails and a frame is missing, the run stops. It does not quietly skip a frame.
Then ffmpeg joins the pictures with the voice and the music. The video is encoded with the Mac's hardware H.264 encoder, with the bitrate set to 10 Mbps. The loudness is measured and corrected to -14 LUFS, and the run stops if the result falls outside plus or minus 0.5. This video came out at -14.4.
The music is planned too. Each scene has a mood in a small file: pulse, calm, tense, drive, news, bright, dark, warm. The track changes when the mood does.
And real footage comes from free stock sites, mostly Pixabay in this video. I keep a list of the clips I accepted (46 rows) and the clips I rejected (18 rows), so the same bad clip does not come back. A rule says at least two clips every 20 seconds. For 377.2 seconds that means 38, and this video had 42.
This is the step most people skip. The video says "about twenty". I counted the real list in the export script today, and there are 19 gates. Each one is there because I caught that exact mistake once with my own eyes.
For this video, the log shows the results of the ones that print a line:
This picture is an illustration from the video, not a copy of a real log. The point is the behavior: if one check fails, the export stops. It does not warn me. It refuses to make the file.
My first video had no checks at all. You do not need all of mine on day one. You need one: the one for the mistake that annoyed you today.
First I look at the plan, before anything is rendered. The plan is a set of still pictures, one per scene: for this video, 103 stills. Catching a problem there costs a minute. Catching it in the finished video costs a full re-export.
I can comment on one picture: this text is too small, this box is off center. Each comment becomes a fix, and often a new check.
The thumbnail is made twice as well. For this video I made version A and version B. YouTube shows each to different people to see which gets more clicks.
So the human part of my editing is two looks per video, and the comments I leave. Everything between those looks is Claude Code.
Three mistakes from the week I made this video.
One: the end screen. At the end of a long video, YouTube puts clickable cards over the last 20 seconds. My closing text sat right under them, and nobody could read it. Now a check marks those two areas and keeps them empty. It looks at 40 frames and fails the build if more than 0.5 percent of the pixels in those areas are filled.
Two: zooms that were too fast. Claude zoomed into a screenshot in half a second, and you could not read anything. The rule now is at least 2.5 seconds, and the plan has to say where the zoom starts and which word it waits for.
Three: the words on screen did not match the words in the voice. The script said one thing, the screenshot showed another. That one I still catch by eye. It is about meaning, and checks are bad at meaning. That is why my final look stays.
It never skips a check because it is late at night. It redoes one line in seconds instead of rebuilding a timeline. And it makes video number 69 with the same care as video number one.
What I got is time. That is the whole result so far: 69 videos passed my final check in four days, and 33 more were sent back.
Start small. Do not build my whole kit. Here are the steps.
A prompt you can copy for steps 2 and 3, with your own voice service and tools filled in:
I have a script in script.json: a list of lines, each with "text". 1. Turn each line into a voice file with [your text to speech service]. Skip any line whose text has not changed since last time. 2. Join the files into one voice track and write timeline.json: for every line, its start and end in seconds, and the total length. 3. Build one HTML page, 1920 by 1080, with one scene per line. Show each scene exactly between its start and end. 4. Do not export yet. Show me the plan first. Enter fullscreen mode Exit fullscreen mode Then, for step 5, the sentence that does the most work over time:
That text was too small to read. Fix it, and add a check that fails the build if any text on screen is smaller than 40 pixels. Enter fullscreen mode Exit fullscreen mode Claude Code does not edit like an editor. It edits like a programmer. And a programmer never gets tired of video number one hundred.