Sub topic 1
Plan the Edit: Order of Operations and Non-Destructive Editing
A lecture edit has three kinds of work: cutting mistakes, adding zooms, and adding captions. Each kind changes something the next one depends on. If you do them in the wrong order, you redo work. This chapter gives you an order that avoids that, and a way of working that never damages your original recording.
Prerequisites
This chapter assumes you have:
- Basic file management skills: creating folders, copying and renaming files.
- A recorded lecture file to practice on, preferably MP4.
- Familiarity with common video formats, enough to know that MP4 is a container holding compressed video and audio streams.
- Comfort running a command in a terminal. This is only needed for the ffmpeg examples. Every operation also exists in a graphical editor.
What "non-destructive" means
A destructive edit overwrites the file you started with. If you cut out a section and save over lecture.mp4, the removed footage is gone, and so is the quality of everything that was re-compressed.
A non-destructive edit keeps the source file untouched. The editing project stores only instructions, such as "play the source from 0 s to 72 s, then from 80 s onward." Graphical editors call this a project or timeline. The instructions are applied only when you export. Three benefits follow:
- You can undo any decision, including ones made days earlier.
- Quality loss from re-encoding happens once, at export, not at every save.
- You can produce several outputs (full quality, a small preview) from one project.
The instruction list is called an edit decision list (EDL). You never have to write one by hand in a graphical editor, but it helps to know that is what the project is.
The working order
The order below follows the dependencies between tasks. Each step is a place where later steps rely on earlier ones being finished.
- Protect the source. Copy the original into an archive folder and treat it as read-only.
- Review and mark. Watch the whole recording once and note timestamps of mistakes, retakes, and dead air. Do not cut yet.
- Cut. Remove the marked segments and check audio and video sync.
- Smooth the cuts. Add short audio fades or J/L cuts where an edit is audible.
- Add zooms. Do these on the cut timeline.
- Transcribe and caption. Generate and correct the transcript from the cut timeline, then export an SRT file.
- Export and review. Render the final file and check it against a checklist.
Why cutting comes before captions
A caption cue is tied to a time on the final video. If you transcribe the raw recording and then remove eight seconds at 72 s, every cue after that point is eight seconds late. You can shift the cues, but it is easy to get wrong. Transcribing after the cut means the timestamps already match the finished timeline.
Cutting first also saves effort. You do not correct text for sentences that you are about to delete.
Why zooms come after cuts
A zoom is anchored to a moment: "zoom into the code at 1:45." Cuts earlier in the video move that moment. Zooms placed before cutting shift with the footage in a graphical editor, but a script that uses absolute times does not follow. Placing zooms on the cut timeline keeps their times meaningful.
Why review comes before cutting
Cutting while you watch for the first time leads to inconsistent decisions. A mistake at 4 minutes may turn out to be repeated and explained better at 9 minutes. Watching once, noting timestamps, and then cutting lets you choose which take to keep.
A decision table for each step
| Step | Output of the step | Depends on | Main risk if skipped or reordered |
|---|---|---|---|
| Protect source | Read-only original | Nothing | Lost footage, cumulative quality loss |
| Review and mark | Timestamp notes | Source | Cutting a good explanation by mistake |
| Cut | Rough-cut timeline | Notes | Audio and video drifting apart |
| Smooth | Clean transitions | Cut | Audible clicks or abrupt room-tone changes |
| Zoom | Focused shots | Cut | Zoom lands on the wrong moment |
| Captions | SRT file | Cut | Cue times offset by the removed durations |
| Export | Final MP4 | All above | Wrong settings, unnoticed errors |
Setting up a project folder
Keep every artifact in one predictable place. A simple layout works for most lectures:
mkdir -p lecture01/{source,work,captions,export}
cp ~/Videos/lecture.mp4 lecture01/source/lecture.mp4
chmod a-w lecture01/source/lecture.mp4
ls -l lecture01/sourceThe chmod a-w command removes write permission for everyone, so no tool can overwrite the original by accident. Intermediate files go in work, caption files in captions, and finished videos in export.
Proxies for slow machines
If your computer struggles to play a high-resolution recording while you edit, make a small stand-in file called a proxy. You mark and cut against the proxy, then export from the original. This only works if the proxy has the same timing as the source, so keep the frame rate unchanged:
ffmpeg -i lecture01/source/lecture.mp4 \
-vf "scale=-2:360" \
-c:v libx264 -crf 28 -preset fast \
-c:a aac -b:a 96k \
lecture01/work/lecture_proxy.mp4The scale=-2:360 filter sets the height to 360 pixels and picks a matching width that is divisible by two, which H.264 requires.
Non-destructive editing from the command line
Graphical editors keep an EDL for you. With ffmpeg you can keep your own as a text file. The concat demuxer reads a list of source ranges and joins them, and the original is only read.
Create lecture01/work/edl.txt:
file '../source/lecture.mp4'
inpoint 0
outpoint 72
file '../source/lecture.mp4'
inpoint 80This says: keep 0 s to 72 s, skip 72 s to 80 s, then keep everything from 80 s to the end. Render it with a re-encode so that the cut points land exactly where you wrote them:
ffmpeg -f concat -safe 0 -i lecture01/work/edl.txt \
-c:v libx264 -crf 20 -c:a aac -b:a 160k \
lecture01/work/lecture_cut.mp4The text file is your project. Changing the cut means editing a number and rendering again from the untouched source. -safe 0 is needed because the list uses a relative path with ...
Versioning your work
Even with a non-destructive approach, intermediate renders accumulate. Give files names that show their stage and keep earlier versions until the final review passes:
lecture_cut_v1.mp4,lecture_cut_v2.mp4for successive rough cuts.captions_draft.srtandcaptions_final.srtfor caption states.- A short
notes.txtwith the timestamps you marked and the decisions you made.
Notes matter more than they seem. Two weeks later, they are the only record of why a section was removed.
Common errors
- Saving over the source. Always export to a new filename and a different folder.
- Re-encoding repeatedly. Each lossy render loses some quality. Render the final output once from the source, not from a previous export.
- Captioning the uncut video. The cues will drift after the first removed section.
- Burning captions before zooming. A zoom crops the frame, and burned-in captions near the edge can be cut off or enlarged. Add zooms first, then burn captions in if you need them.
- Skipping the review pass. You notice a different problem on the second watch than on the first. Plan at least one full watch of the final file.
Exercise
You transcribed a 40-minute lecture, then removed two mistakes of 8 s and 15 s near the start. A colleague suggests simply shifting every caption cue after the second cut earlier by 23 s. What is wrong with this plan, and what order of work avoids the problem?
Show answer
The cues between the two cuts must move by 8 s only, and cues after the second cut by 23 s, so a single shift is wrong for part of the video. It also leaves captions for deleted speech that must be found and removed by hand. Cutting first and then transcribing the cut timeline gives correct timestamps and no text for removed speech.
Exercise
In the EDL example, what would you change to also remove the section from 300 s to 312 s, and why is the original lecture.mp4 still safe afterward?
Show answer
Change the first block's outpoint to 72 as before, then split the second block: use inpoint 80 with outpoint 300, and add a third block with inpoint 312 and no outpoint. The file only lists ranges to read, and ffmpeg writes its result to a different file, so the source is never modified.