Sub topic 5
Keeping Audio and Video in Sync After Cuts
Assume you can read a timeline, place the playhead, split a clip, and remove a selected segment. This chapter focuses on keeping the picture and sound aligned while you edit.
What sync means
Audio and video are in sync when each sound happens at the correct visual moment. A speaker's mouth should move when the words are heard. A slide change should match the explanation that introduces it.
A lecture recording usually contains at least one video stream and one audio stream. In a timeline editor, they may appear as separate clips on separate tracks. They can still be linked so that selecting, moving, splitting, or deleting one also affects the other.
Before cutting, check whether the editor shows a link, chain, or grouped-clip control. If video and audio are linked, a normal cut keeps their boundaries together.
The safe cutting workflow
Use this sequence for a mistake or long pause:
- Zoom into the timeline around the mistake.
- Find the start and end of the unwanted range.
- Split both the video and audio at the start.
- Split both again at the end.
- Select the complete range on every related track.
- Delete it with a ripple delete, or close the gap by moving later material together.
- Play across the edit and check the speaker's mouth, words, and background sound.
A ripple delete removes the selected range and shifts later clips left by the same duration. A normal delete may leave a gap. Moving only the video or only the audio creates an offset, sometimes called a sync slip.
Avoiding sync drift
Sync drift is a gradual increase in the offset between audio and video. It often comes from recordings whose audio and video clocks run at slightly different rates. It can also happen when you change playback speed on only one stream.
If the offset is constant from beginning to end, move one stream by the required amount. If the offset grows over time, do not repeatedly make small cuts. Conform the media to a common frame rate or sample rate, or use an editor's synchronize or time-stretch function.
When scripting a cut with FFmpeg, remove the same time interval from both streams and reset their timestamps:
ffmpeg -i lecture.mp4 \
-vf "select='not(between(t,72,80))',setpts=N/FRAME_RATE/TB" \
-af "aselect='not(between(t,72,80))',asetpts=N/SR/TB" \
lecture_cut.mp4setpts rebuilds video timestamps. asetpts rebuilds audio timestamps. Applying the selection to only one stream would break sync.
Checking the result
Review each cut with headphones and visible lips or slide changes. Listen for a clipped word, a repeated syllable, or a sudden room-tone change. If the error appears only at the cut, inspect the edit boundary. If it increases throughout the lecture, investigate clock drift or mismatched media settings.
Exercise
You delete 5 seconds from the video track, but the audio remains unchanged. What symptom will the viewer hear and see, and what is the first repair?
Show answer
The audio will be 5 seconds later than the video after the cut. Undo the edit if possible, then remove the same range from the audio and close both gaps together.