Make something · About 8 minutes

Edit a talking video with Claude Code

Cut the pauses and add captions from your terminal.

Claude Code is an agent that works in your terminal. It can read files in a folder, edit them and run commands. That means it can drive ffmpeg, a free command-line program that cuts, joins and converts video.

Two jobs eat most of the time in a talking-head edit: removing the pauses and adding captions. ffmpeg has a filter called silencedetect that logs where the sound stays below a level for a set time. Whisper, a free speech recognition model, can turn the speech into a caption file in the .srt format.

Cut the pauses and add captions

  1. Put one short clip in a new folder and keep a copy of the original somewhere else.
  2. Install ffmpeg. Its download page links to ready-made builds for Mac and Windows.
  3. Open a terminal in that folder and start Claude Code by typing claude.
  4. Ask: find every pause longer than half a second with ffmpeg silencedetect and show me the list before cutting anything.
  5. Read the list. If it marks a pause you want to keep, ask for a longer minimum pause or a different noise level.
  6. Ask it to cut those pauses and save the result as a new file. The original stays untouched.
  7. Ask it to install Whisper and write captions for the new file as an .srt file.
  8. Open the .srt file and fix any wrong words, names especially.
  9. Ask it to burn the captions into a final copy with the ffmpeg subtitles filter.
  10. Watch the final video from start to end before you post it.

Claude Code says the edit is done. What is the best check?

Show the answer

Watch the whole new file and read the captions against what you said A command can finish and still cut a word or mishear a name. Watching the result and reading the captions is the only way to know the edit is right.

Do this lesson →Download on the App Store

Sources

Reviewed on .