Concert Reconstruction Series, Part 2: Restoring Live-Room Audio and Layering Band-Matched Visualizations in FFmpeg

AI-assisted human-led

Part 2 of 7 in the Concert Reconstruction Series · Part 1: Pre-Conception & Sync · Part 3: Attribution & Skills · Part 4: Shoestring Toolchain · Part 5: The Real Receipt · Part 6: Generation vs. Creation · Part 7: The Arrow and the Moon · Watch v2 (Unlisted): youtu.be/JVIZdnBr6IY

Once Part 1 locked 19 fan-shot clips onto one 48 kHz clock (v1), I wanted to take it from a rough sync test to something you actually want to sit through and enjoy from start to finish.

I wasn’t going to burn two hours rendering a 76-minute show blind. Before touching the full cut, I built a 15-second A/B preview (-v2-ab-preview.mp4) covering the band transition and the 4-cam Sarniezz climax. Watch it, listen to it, and fix what bugs you. Increment to -r2, and only kick off the full -v2.mp4 render once both your eyes and ears are happy.

Cleaning Up Live-Room Peaks and Scratches

When I listened to the first 15-second preview (r1), the sync was locked, but phone-mic overload jumped right out. Every time the kick drum or cymbals slammed inside The Salt Shed, I heard harsh peaks, little capsule scratches, and upper-mid fizz.

Running ffmpeg’s astats filter backed up what my ears were hearing. The zouz opener was peaking at +0.21 dB (literally clipping past digital zero), and Sarniezz was right up at -0.79 dB with mic-capsule crackle.

I wanted to clean that up without squashing the life out of the room. So I built a six-stage ffmpeg DSP chain and tested it immediately in preview r2 (reusing the exact same video with -c:v copy so it rendered in two seconds):

highpass=f=38:p=2,
adeclip=w=55:o=75:a=8:t=8:n=1000:m=a,
adeclick=w=55:o=75:a=2:t=1.8:b=2:m=a,
equalizer=f=4800:t=q:w=1.8:g=-2.5,
equalizer=f=8500:t=q:w=1.5:g=-3.0,
lowpass=f=15500:p=2,
acompressor=threshold=-14dB:ratio=2.2:attack=12:release=140:knee=6:makeup=1,
alimiter=limit=0.84:attack=3:release=60:level=disabled,
aresample=48000

Each stage has one job:

  • highpass=f=38:p=2 clears out sub-sonic handling thumps that overload phone mics.
  • adeclip reconstructs flat-topped clipped peaks.
  • adeclick repairs short impulsive scratches, pops, and capsule crackle.
  • Gentle EQ cuts at 4.8 kHz (-2.5 dB) and 8.5 kHz (-3.0 dB) plus a 15.5 kHz lowpass take the edge off phone-mic fizz while keeping the microtonal guitar and cymbals clear.
  • Soft-knee acompressor (2.2:1) and a lookahead alimiter bring peaks down from +0.21 dB / -0.79 dB to a clean -4.0 dB ceiling with zero clipping and even loudness across both bands.

Visuals That Actually Fit the Bands

Slapping generic rainbow equalizer bars on top of live concert footage looks cheesy. Every visual layer in v2 was built to fit the band on stage.

For zouz, a heavy noise-rock opener, I ran a 20-100 Hz sub-bass oscilloscope (showwaves with lagfun=decay=0.82 trails) along the bottom edge, paired with quick 2-frame rgbashift hits triggered only on the top 24 loudest snare and crash hits per song.

Between the two bands, I built a 2.5-second monochrome polka-dot iris wipe in Python (Pillow) driven by the crowd-swell RMS volume. It bridges zouz - Seuls into Angine de Poitrine - Angor and nods directly to Khn and Klek’s polka-dot costumes.

For Angine de Poitrine, I paired a monochrome Lissajous stereo phase scope (avectorscope=m=lissajous) with a custom 320x320 64-bin radial FFT spectrum ring (instant attack, 7-frame decay). On 4-cam quad grids like Sarniezz, that ring sits dead center on the 2x2 crosshair (960, 540). It gives all four angles a shared visual pulse without covering Khn or Klek. Subtle per-camera eq and colorbalance tweaks keep mismatched phone sensors looking like they belong in the same room.

Four Real Bugs We Hit and Fixed

Working on a real laptop with tight SSD space and real ffmpeg quirks taught four lessons worth keeping in the toolbox:

  1. The YUV Magenta Box: In ffmpeg, blend=all_mode=screen defaults to YUV, where pure black (U=0, V=0) turns into a bright magenta square. Converting both inputs to format=gbrp before blend=all_mode=screen makes black 100% transparent.
  2. Don’t Consume a Grid Stream Twice Without split=2: Cropping a 320x320 patch from a 2x2 grid and overlaying the blended patch back onto that same grid requires format=gbrp,split=2[grid1][grid2]. Skipping split=2 made the whole quad grid vanish behind the center ring on the first test.
  3. rgbashift Expression Depth: Chaining 120 between(t, ...) windows into rgbashift’s enable expression blew up AVFilterGraph (Cannot allocate memory). Capping it to the top 24 strongest snare hits (>= 1.2s apart) fixed the parser and made the accents hit harder anyway.
  4. Single-Generation Encoding Saves Disk, Time, and Quality: In v1, I rendered 41 intermediate 10M segments and re-encoded the whole 76-minute video a second time just to burn .ass subtitles. That took twice as long and needed 11+ GiB of scratch space. In v2, I burned each segment’s .ass overlays inside a single 6M h264_videotoolbox pass, deleted downloaded source clips as soon as their last segment finished, and joined all 42 segments with a 3-second lossless -c copy concat. That kept peak scratch space under 7 GiB, cut the master from 5.50 GiB to 3.35 GiB, and avoided a second generation of compression.

With v2 looking sharp and sounding clean, the last piece was publishing it the right way. I needed to credit everybody who filmed with exact timestamps and package the workflow so I can run it again on an older archival show. That’s Part 3.