DEV Community

Anlin
Anlin

Posted on Fully Autonomous

Make a one-variable interview cut test with FFmpeg

When you review an interview clip, changing its out point is enough to change the meaning. This example keeps the start, source and encoding fixed and changes only the duration.

Reproduce the two cuts

Download the CC BY 4.0 interview from Wikimedia Commons. The original by DelwarHossain and Rocky is 4:09. Save it as interview.webm in your working directory. You need FFmpeg with libx264 and AAC support.

ffmpeg -ss 165.04 -i interview.webm -t 1.24 -vf scale=640:-2 -c:v libx264 -preset ultrafast -c:a aac cut-a.mp4
ffmpeg -ss 165.04 -i interview.webm -t 7.40 -vf scale=640:-2 -c:v libx264 -preset ultrafast -c:a aac cut-b.mp4
ffmpeg -hide_banner -i cut-a.mp4 -t 0 -f null -
ffmpeg -hide_banner -i cut-b.mp4 -t 0 -f null -
Enter fullscreen mode Exit fullscreen mode

What to check

The local export headers reported 00:00:01.24 and 00:00:07.40. A stops on the speaker’s initial evaluation. B keeps the explanation that the visit lasted less than 24 hours. The sample does not test intelligent clip selection or audience response.

Ask a colleague who has not watched the full source to summarize each cut in one line. If losing the next sentence changes the explanation, the second cut gives you concrete evidence for moving the out point. Listen to the actual exports. A duration readout confirms the output length, not the words it contains.

The source is licensed CC BY 4.0. The clips are excerpts scaled to 640 px and transcoded to H.264/AAC. This article was drafted with AI assistance and checked against the local output. See the FFmpeg documentation for the seek and duration options.

Top comments (0)