Documentary Video Editor (DaVinci Resolve Studio)
Complete, non-destructive workflow for turning raw multi-camera interview shoots, external audio, smartphone B-rolls/2nd-camera shots, reference color photos, and music tracks into a polished documentary timeline in DaVinci Resolve Studio.
Core Safety Rules
- Never overwrite the user's original synced project or template timeline. Always clone the project (
SaveProject-> export/import or duplicate) or duplicateTimeline 1before editing. - Never edit raw media files in place. All audio stems, LUTs, and mastered WAVs go into a working directory or Resolve's custom LUT subfolder.
- Never skip visual and numeric verification. After building or grading, export stills directly from Resolve, verify
clip >= 240/250 == 0.0%and consistentR/Bbalance, and inspect the stitched contact sheet visually before reporting success. - Read reference guides before scripting Resolve or DSP:
Step-by-Step Pipeline
1. Inspect Raw Media & Sync (scripts/sync_media.py)
- Probe all video/audio streams with
PyAV(av): check pixel formats,color_primaries,color_trc(flagtrc=18/Rec.2100 HLGsmartphone footage), FPS, and audio channels. - If camera audio is silent (
0x00LPCM bytes), sync external audio using mouth-openness energy vs RMS envelope cross-correlation at timeline FPS. - Sync 2nd-camera smartphone clips (
30 fps) to the external recorder using 10ms RMS audio cross-correlation (check both head and tail windows to confirmdrift ~ 0.000s). - Sync intro room music (
clip_t) to the downloaded MP3 (song_t) via 5ms envelope cross-correlation.
2. Local Transcription & Silence Map (scripts/transcribe_and_silence.py)
- Transcribe external dialogue locally with
faster-whisper(small,int8,word_timestamps=True) totranscript_words.jsonandreadable_transcript.txt. - Compute 10ms RMS silence intervals (
silences.json) for clean breath-boundary snapping.
3. Editorial Curation & Pacing (scripts/plan_cut.py)
- Present/curate a thematic
keep.json(segmentslist withfrom/toword indices,scene_start,lead_in,tail) cutting retakes, mic checks, and dead air while preserving key stories and thematic flow (even reordering topics if helpful). - Enforce
MAX_PAUSEsplitting with minimum chunk size (>= 8 wordsand>= 4.0s) so tiny shards never get dropped. - Build
plan.jsonwith:15-frameJ-cuts onscene_startboundaries- Alternating
A1/A2speech tracks with6/8frame fades - Subtle
1.075x/1.12xjump/punch-in zooms - Strict max duration budget (e.g.,
<= 13:00including intro and outro).
4. Music Stems, Score Bed & Dialogue Mastering (scripts/master_voice_and_music.py)
- Dialogue Mastering (
GRAVACAO_MASTER.wav, 48 kHz mono):- Measure 240 silence blocks (
psd_noise) and active speech PSD. - Apply zero-phase lav-mic EQ:
75 Hz4th-order HPF,-3.0 dB @ 215 Hz&-1.8 dB @ 415 Hzchest/hum tame, gentle+1.6 dB @ 2700 Hzclarity,-2.5 dB @ 5600 Hzde-harsh,12 kHzLPF roll-off. - Gentle
2.1:1RMS compression + slow phrase leveler (+/- 2.5 dB) + 30ms lookahead limiter capped at-5.0 dBFS(tanhsoft knee, zero flat-top clipping). - Keep offline Wiener NR subtle (
GAIN_FLOOR = 0.72) and enable Resolve Studio AIVoice Isolation(amount = 50..55) onA1&A2to eliminate impulsive animal/background noise without crunching the voice.
- Measure 240 silence blocks (
- Music Intro, Gradual Vocal->Instrumental Transition & Full Underscore:
- Separate instrumental via
UVR-MDX-NET-Inst_HQ_3.onnx(Sain_instrumental.wav). - Transcribe song lyrics with
word_timestamps=Trueso vocal fades finish cleanly at the end of a full lyric phrase (never splice mid-word or break BPM!). - Render phase-locked
vocals_intro.wav+ uncutinst_intro.wav(-18 dBFSsolo intro ->5sgradual S-curve fade/duck to-38..-41 dBFSunder speech). - Build a continuous chapter-matched score bed (
full_doc_bed.wav, drum-transient compressed,-4.5 dBvocal pocket at1.8 kHz,-37 dBFSbase set to-41 dBFSin Resolve) filling the entire body seamlessly into the closing montage vocals.
- Separate instrumental via
5. Cross-Camera Color Pipeline (scripts/generate_hlg_lut.py)
- For Rec.709 main camera, sample clean neutral wall ROIs per clip and compute non-clipping
SetCDLvalues (Slope <= 1.18,Offset = -0.015,Power = 1.06) matched to the user's reference photo while capping estimatedp99 <= 232. - For iPhone
Rec.2100 HLG(BT.2020) clips inside adavinciYRGB(Rec.709) timeline, generate and apply the33x33x33.cubeLUT (HLG_BT2020_to_Rec709_Natural.cube: inverse HLG OETF +3x3BT.2020->Rec.709 matrix + filmic shoulder knee) viaSetLUT(1, ...)plus per-clip fineSetCDL.
6. Build Timeline & Verify (scripts/audit_resolve_stills.py)
- Assemble
V1(intro + doc + gradual closing montage),V2(rotated90°+ reframed Cam 2 + B-rolls), andA1..A5cleanly (always cleaning spatial-audio track spill onA4+after placing iPhone audio). - Normalize
A1+A2to-19.0 LUFS/-4.5 dBFStrue-peak limit. - Verify track counts, zero frame mismatches,
0.0%highlight clipping across exported stills (v_audit_sheet.jpg), reset playhead to01:00:00:00on Edit page, andpm.SaveProject().