Sub topic 3
Finding mistakes, retakes, and dead air
This chapter assumes you have read the chapters on the editing workflow and the timeline. You should know what a clip, the playhead, and a non-destructive edit are. The Python example needs Python 3 and ffmpeg installed. The editing itself comes in the next chapter. Here you only build a list of the places that need cutting.
Why you find problems before you cut
Cutting as you watch looks efficient, but it causes two problems. Each cut shifts everything after it, so the timestamps you noted earlier stop matching the timeline. You also lose the overview. Two retakes of the same sentence are easy to compare when both are still on the timeline, and hard to compare once you have deleted one.
Work in two passes instead:
- Review the whole recording and write down every problem with a timestamp.
- Cut from the end of the video to the start, so earlier timestamps stay valid.
The output of this chapter is a cut list: in-point, out-point, and reason for each problem.
The kinds of problems to look for
Different problems need different decisions. Sorting them as you find them speeds up the cutting later.
| Problem | What it sounds or looks like | Usual action |
|---|---|---|
| False start | A sentence abandoned after a few words | Cut the abandoned words |
| Retake | The same sentence said again, better | Keep the best take, cut the others |
| Dead air | Silence while you search for a window or file | Cut, or shorten to about half a second |
| Filler words | "um", "uh", repeated "so", "you know" | Cut the loud, distracting ones only |
| Factual slip | A wrong number or term you correct later | Cut, or add a correction caption |
| Noise | Cough, notification sound, door | Cut, or lower that part of the audio |
| Loading time | The screen shows a spinner while you wait | Cut, or speed up the segment |
Not every item should go on the list. A lecture with every pause removed sounds rushed, and learners need time to read a slide. Aim to remove what distracts, not everything that is imperfect.
Pass 1: watch and listen at speed
Play the whole recording at 1.5x speed with the audio on. At this speed, hesitations and repeated sentences stand out, while the content still makes sense. Pause and write down a timestamp each time you hear a problem. Note the time slightly before the problem begins, because you need the last good moment, not the mistake itself.
Many lecturers speak a marker phrase when they stumble, such as "let me redo that" or a clap. If you can, record this habit before you start filming. A clap shows up as a sharp spike on the waveform, so you can find retakes by scanning the waveform for spikes.
Reading the waveform
The waveform is the audio drawn as a graph along the timeline. Most editors show it on the clip. It tells you things that are hard to hear:
- Flat stretches are silence or very quiet room noise.
- Isolated tall spikes are claps, bumps, or coughs.
- A clear gap between two blocks of speech is often a retake boundary.
- Two blocks of near-identical shape, one after the other, are often the same sentence recorded twice.
Pass 2: let software find silence
Your eyes and ears tire over a long recording, so use a tool to find the dead air. The silencedetect filter in ffmpeg reports every stretch of quiet audio that meets two settings:
noiseis the loudness threshold. Anything below it counts as silence.-35dBis a common starting point.dis the minimum duration in seconds.d=1.0ignores short natural pauses between words.
The filter writes its findings to the log. The script below runs it and prints a readable list.
import re
import subprocess
import sys
def timecode(seconds: float) -> str:
"""Format seconds as HH:MM:SS.mmm."""
seconds = max(0.0, seconds)
h = int(seconds // 3600)
m = int((seconds % 3600) // 60)
s = seconds % 60
return f"{h:02d}:{m:02d}:{s:06.3f}"
def find_silences(path: str, noise_db: int = -35, min_dur: float = 1.0):
cmd = [
"ffmpeg", "-hide_banner", "-nostats",
"-i", path, "-vn",
"-af", f"silencedetect=noise={noise_db}dB:d={min_dur}",
"-f", "null", "-",
]
# ffmpeg writes filter messages to stderr.
log = subprocess.run(cmd, capture_output=True, text=True).stderr
starts = [float(x) for x in re.findall(r"silence_start: (-?\d+(?:\.\d+)?)", log)]
ends = re.findall(
r"silence_end: (\d+(?:\.\d+)?) \| silence_duration: (\d+(?:\.\d+)?)", log
)
# A silence that runs to the end of the file has a start but no end;
# zip() drops it, so check the tail of the video by hand.
return [(s, float(e), float(d)) for s, (e, d) in zip(starts, ends)]
if __name__ == "__main__":
video = sys.argv[1]
for start, end, dur in find_silences(video):
print(f"{timecode(start)} -> {timecode(end)} ({dur:.1f} s)")Run it with python find_silence.py lecture.mp4. Each line is a candidate, not a decision.
Tuning the settings
If the list is empty or enormous, the threshold does not match your room. Two quick checks help:
- Many hits inside normal speech mean the threshold is too high (for example
-25dB). Lower it to-40dBor-45dB. - No hits at all, even where you know you paused, means your background noise is louder than the threshold. Raise it to
-30dB.
Pass 3: use the transcript
Retakes and false starts are about words, so a transcript finds them better than a waveform. Many editors can show a transcript next to the timeline. Search it for patterns:
- The same opening words twice in a row, such as "The next step is... the next step is".
- Sentences that end in the middle, followed by a restart.
- Filler words, by searching for "um" and "uh". A tool that keeps them in the transcript makes them easy to find. One that cleans them out automatically hides them.
- Markers such as "sorry" or "again".
The transcript also shows which retake is the better one. The take with fewer fillers and a clean ending is usually the keeper. Later chapters cover creating and correcting the transcript in detail. Here you only use it as a search tool.
Building the cut list
Write the list as a table, in the order you found the problems. Keep a reason on every row, because you will want it when you doubt a cut a week later.
| In | Out | Reason | Decision |
|---|---|---|---|
| 00:01:12.0 | 00:01:20.0 | Retake of the intro to loops | Cut |
| 00:03:45.2 | 00:03:49.8 | Waiting for IDE to open | Cut |
| 00:07:30.0 | 00:07:32.5 | Pause after question | Keep |
Edge cases to check
- Word edges. An in-point that lands inside a word leaves a clipped syllable. Place points in the gap before the word begins.
- Breaths. Removing every breath makes speech sound robotic. Keep a short natural gap between sentences, around 0.3 to 0.5 seconds.
- Screen actions. Before cutting speech, check what the screen shows. A click or a typed command might happen during the section you plan to delete.
- Overlapping retakes. If a retake begins before the mistake ends, you need to cut inside a sentence. Mark it so you check the cut point carefully.
- Room tone. When you remove all silence, the background hum jumps between sections. Note spots where the sound changes, because the next chapters cover smoothing them.
Exercise
Your detector, set to noise=-35dB and d=1.0, flags 40 silences in a 10-minute lecture, and 15 of them fall in the middle of sentences you are speaking normally. What is the likely cause, and what should you change?
Show answer
The threshold is too high for your speech level, so quiet parts of normal speech count as silence. Lower it to about -40dB or -45dB, and consider raising the minimum duration slightly. Then run the detector again and listen to the remaining hits before adding them to the cut list.
Exercise
Why do you cut from the end of the video to the start rather than from the start to the end?
Show answer
A cut near the start shifts every later part of the timeline earlier. If you cut from the end first, the timestamps in your cut list for the earlier parts stay correct.