Sub topic 6
Making cuts less noticeable
This chapter assumes you can already cut a segment out of a timeline and keep audio and video aligned, as covered in the previous two chapters. It also assumes you can run ffmpeg from a terminal. Here you will learn why a correct cut can still be easy to notice, and how to hide it with short audio fades, matched room tone, and J/L cuts.
Why a correct cut can still be noticeable
A cut can be perfectly in sync and still jar the viewer. Three things give it away:
- A click or pop. Audio is a waveform. If you cut while the waveform is at a high value and join it to a point at a different value, the signal jumps instantly. Speakers reproduce that jump as a click.
- A change in background sound. Every recording has room tone, the quiet hum of the room, the air conditioning, and the microphone's own noise. If the clip before the cut was recorded in a different moment from the clip after it, the tone can change level or character at the join.
- A visual jump. The speaker's head or hands move abruptly between the last frame before the cut and the first frame after it. This is called a jump cut.
The first two are audio problems with reliable fixes. The third can only be reduced, which the later sections cover.
Fades at the join
A fade changes the volume gradually. A fade-out at the end of the first piece and a fade-in at the start of the second makes the waveform pass through silence at the join, so there is no jump.
Typical durations:
| Purpose | Fade length | Notes |
|---|---|---|
| Remove a click | 10 to 50 ms | Too short to hear as a fade, only as the absence of a click |
| Hide a change in room tone | 100 to 300 ms | A crossfade, where the two pieces overlap |
| Smooth a cut in the middle of a long pause | 200 to 500 ms | Only works in silence, never over speech |
Fades longer than about 50 ms on speech will be audible as a dip in volume. Cut in the pause between words or sentences so the fade lands on silence.
The following command repeats the 72 s to 80 s cut from the earlier chapter. It adds a 50 ms fade-out before the cut and a 50 ms fade-in after it.
ffmpeg -i lecture.mp4 -filter_complex \
"[0:v]trim=0:72,setpts=PTS-STARTPTS[v1];
[0:v]trim=start=80,setpts=PTS-STARTPTS[v2];
[0:a]atrim=0:72,asetpts=PTS-STARTPTS,afade=t=out:st=71.95:d=0.05[a1];
[0:a]atrim=start=80,asetpts=PTS-STARTPTS,afade=t=in:st=0:d=0.05[a2];
[v1][a1][v2][a2]concat=n=2:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" -c:v libx264 -c:a aac lecture_faded.mp4How it works:
trimandatrimselect the part before the cut (0 to 72 s) and the part after it (80 s to the end).setpts=PTS-STARTPTSandasetpts=PTS-STARTPTSrestart each piece's timestamps at zero. Without this,concatwould see a gap.afadeis applied after the timestamps are reset, sost=71.95means 71.95 s into the first piece, which is 50 ms before its end. For the second piece,st=0is its first sample.concat=n=2:v=1:a=1joins the video and audio of both pieces into one pair of streams.
Crossfades and the drift trap
A crossfade overlaps the end of one piece with the start of the next while one fades out and the other fades in. FFmpeg provides it as acrossfade:
ffmpeg -i part1.wav -i part2.wav -filter_complex "acrossfade=d=0.2" joined.wavBecause the pieces overlap, the result is shorter than the sum of the inputs by the crossfade length. Here it is 200 ms shorter. If you crossfade only the audio and join the video with a plain cut, the audio finishes 200 ms before the video, and every later word is out of sync.
There are two safe ways to avoid this:
- Use the fade-out plus fade-in approach above. It keeps the total length unchanged.
- If you want a true crossfade, take the extra audio from inside the removed section. For example, let the first piece's audio continue for 0.2 s past the cut point and overlap it with the second piece's start. Then trim the video the same way so both streams stay equal in length.
A graphical editor normally handles this for you, because its crossfade uses the "handles" of media beyond the cut. In a script, you must keep track of it yourself.
Matching room tone
If a cut lands inside a pause, the pause before and after may sound different. The speaker may have shifted, a fan may have cycled, or you may have joined recordings from separate sessions. Two approaches help:
- Record room tone. At the start of every session, record 10 to 30 seconds of silence with the same microphone and room settings. In editing, place a piece of it under the join, with fades at both ends of the room tone piece, so the background never drops out.
- Borrow a quiet second from the same recording. Copy a pause with no speech, no breath, and no keyboard noise, and loop it under the cut.
Never leave the background at true digital silence. A completely silent gap is more noticeable than a changed hum, because the listener hears the noise floor disappear.
J cuts and L cuts
The J cut and L cut are named for the shape they make on a two-track timeline. In both, the audio and video change at different moments.
- J cut. The audio of the next section starts before its picture. The viewer hears the new sentence while still seeing the previous shot.
- L cut. The picture of the next section appears while the audio of the previous section is still playing.
Because the two streams do not switch together, the brain treats the transition as one continuous event. This works well in lectures when you cut from the speaker to a slide, a screen recording, or a diagram.
The next command makes a J cut in the same 72 s to 80 s edit. The audio resumes at 80 s, but the video resumes 0.5 s later at 80.5 s, and the first piece's video runs 0.5 s longer.
ffmpeg -i lecture.mp4 -filter_complex \
"[0:v]trim=0:72.5,setpts=PTS-STARTPTS[v1];
[0:v]trim=start=80.5,setpts=PTS-STARTPTS[v2];
[0:a]atrim=0:72,asetpts=PTS-STARTPTS[a1];
[0:a]atrim=start=80,asetpts=PTS-STARTPTS[a2];
[v1][v2]concat=n=2:v=1:a=0[v];
[a1][a2]concat=n=2:v=0:a=1[a]" \
-map "[v]" -map "[a]" -c:v libx264 -c:a aac lecture_jcut.mp4Both streams still total the same length. The video is 72.5 s plus the rest of the clip after 80.5 s, and the audio is 72 s plus the rest after 80 s. Because those two lengths are equal, everything after the join stays in sync.
For about 0.5 s after the join, the audio is from 80 s while the picture is from 72 s to 72.5 s. That is the J cut.
To make an L cut, reverse the offsets. Let the first piece's audio run later than its video, and let the second piece's picture start earlier than its audio.
Reducing a visual jump
A jump cut shows the speaker's position changing between frames. Three standard remedies:
- Change the framing at the cut. Switch from the full frame to a slightly zoomed one, or the reverse. The viewer reads it as a deliberate edit. The zoom chapters later in this tutorial show how.
- Cover the cut. Cut to a slide, a screen capture, or a diagram while the audio continues. This is the J or L cut.
- Cut at similar positions. Choose a cut point where the speaker's head and hands are in a similar place before and after.
Do not use a video dissolve to hide a cut in a talking-head lecture. A cross-dissolve between two similar faces makes a ghost image for the length of the dissolve, which draws more attention than the cut did.
Common errors
- Fades placed on speech. A fade that starts mid-word sounds like the speaker was cut off. Move the cut into a pause.
- Using
afadebefore resetting timestamps. Thestvalue is relative to the stream's current timestamps. Fade in the wrong place and nothing will happen where you expected it. - Crossfading audio only. This shortens the audio and causes drift, as described above.
- Fading to silence in every cut. If the cuts come every few seconds, repeated dips in room tone sound like pumping. Use room tone under the cuts instead.
- Judging on laptop speakers. Clicks and tone changes are much easier to hear on headphones.
Exercise
You crossfade only the audio of two pieces with acrossfade=d=0.3, and join the matching video with a plain concat. About how out of sync will the audio be at the end, and which way?
Show answer
The audio will be 0.3 s shorter than the video because the pieces overlap. Audio events after the join happen 0.3 s earlier than their pictures. A fix is to use a fade-out plus fade-in without overlap, or to extend both streams so they stay equal in length.
Exercise
In the J cut command, the audio is trimmed from 80 s and the video from 80.5 s. If you wanted a 1 s J cut instead, which two values must change, and to what?
Show answer
The first video piece must end at 73 (trim=0:73) and the second video piece must start at 81 (trim=start=81). The audio values stay at 72 and 80. The video offset from the audio is 1 s in both places, so both streams keep the same total length.
Exercise
A cut lands in a pause. It does not click, but the hum of the room is noticeably louder after the cut. Which technique from this chapter fits best?
Show answer
Match room tone. Place a quiet piece of room tone under the join with fades at both ends, or use a 100 to 300 ms crossfade taken from inside the pause. A 10 to 50 ms fade only removes clicks and will not hide a change in background level.