== A. durations: tool output vs planned (tool inputs) == clip1.mp3 planned 20.900 got 20.897959 diff -0.0020 s within26ms=yes clip2.mp3 planned 8.700 got 8.698776 diff -0.0012 s within26ms=yes clip3.mp3 planned 15.100 got 15.098776 diff -0.0012 s within26ms=yes planned clip total 44.7 s == B. control: 60 s sine mp3 (22050 mono 64k) cut 10..30.9 with tool args -c copy == ctl cut got 20.897959 expect 20.900 diff -0.0020 within26ms=yes == C. control: 1 kHz lavfi sine (default amplitude 1/8 = -18.06 dBFS) minus 20 dB, expect -3.01-18.06-20 = -41.07 LUFS == ctl tone I = -41.1 LUFS == D. loudness: episode, pieces, trailer == episode.mp3 I = -26.5 LUFS intro.wav I = -13.7 LUFS clip1.mp3 I = -26.0 LUFS clip2.mp3 I = -25.8 LUFS clip3.mp3 I = -27.0 LUFS outro.wav I = -13.3 LUFS -- plain join, no per-piece leveling (control for why) -- -- leveled join with build-trailer.sh -- piece 1 intro.wav 5.745 s piece 2 clip1.mp3 20.898 s piece 3 clip2.mp3 8.699 s piece 4 clip3.mp3 15.099 s piece 5 outro.wav 4.685 s sum of pieces 55.126 s trailer.mp3 55.092 s difference -0.034 s exit=0 plain.mp3 I=-18.8 | piece1 -13.7 | piece2 -26.0 | piece3 -25.9 | piece4 -27.1 | piece5 -13.4 | spread 13.7 LU trailer.mp3 I=-16.9 | piece1 -16.0 | piece2 -16.9 | piece3 -17.6 | piece4 -17.3 | piece5 -15.9 | spread 1.7 LU -- control: level only the finished plain join (same boundaries) -- plain-gain.mp3 I=-16.0 | piece1 -10.9 | piece2 -23.2 | piece3 -23.1 | piece4 -24.2 | piece5 -10.6 | spread 13.6 LU plain-loudnorm.mp3 I=-18.6 | piece1 -16.0 | piece2 -21.4 | piece3 -20.7 | piece4 -21.0 | piece5 -13.5 | spread 7.9 LU (plain-gain = +2.8 dB plain gain; plain-loudnorm = the normalize tool filter loudnorm=I=-16:TP=-1.5:LRA=11 on the whole file) == E. control: build-trailer on tones of 5, 10, 15 s, expect 30.000 == sum of pieces 30.000 s ctl-join.mp3 30.041 s difference +0.041 s exit=0 == F. edge cases for build-trailer.sh == edge: missing list error: list file not found: nope.txt exit=2 edge: empty list error: list file is empty: empty.txt exit=2 edge: Windows line breaks difference +0.047 s exit=0 edge: non-ASCII file name difference +0.047 s exit=0 edge: missing piece piece 1 ctl-5.wav 5.000 s error: piece not found: gone.wav exit=2 edge: empty piece piece 1 ctl-5.wav 5.000 s error: piece is empty: zero.wav exit=2 edge: single piece piece 1 ctl-5.wav 5.000 s error: need at least 2 pieces, got 1 exit=2 == G. edge: concat demuxer -c copy on mixed pieces (wav 44.1k stereo + mp3 22.05k mono) == -- output joined.mp3 -- [mp3 @ 0x571a68dd7940] Invalid audio stream. Exactly one MP3 audio stream is required. [out#0/mp3 @ 0x571a68daa400] Could not write header (incorrect codec parameters ?): Invalid argument Error opening output file joined.mp3. Error opening output files: Invalid argument exit=234 joined.mp3 size 0 bytes -- output joined.mka (Matroska) -- exit=0 stream|codec_name=pcm_s16le|sample_rate=44100|channels=2 format|duration=8518.138000 -- same-format clips only, -c copy, output .mp3 -- exit=0 demux clips 44.696 s vs sum 44.696 s == I. build-trailer.sh output layout and inputs without audio == edge: stereo piece, default difference +0.023 s exit=0 stream|sample_rate=44100|channels=1 edge: stereo piece, CHANNELS=stereo difference +0.023 s exit=0 stream|sample_rate=44100|channels=2 edge: CHANNELS=5.1 error: CHANNELS must be mono or stereo, got: 5.1 exit=2 edge: video-only file piece 1 ctl-5.wav 5.000 s error: no audio stream in: na.mp4 exit=2 == H. live normalize tool (/tools/audio/normalize) on trailer.mp3 (node normalize-run.cjs, log norm.log) == buttons: ["Normalize audio","Share"] tool finished in 5.3 s saved trailer-16.mp3 exit=0 trailer-16.mp3 I=-16.4 LUFS LRA 3.8 LU peak -1.2 dBFS trailer-16.mp3 | piece1 -16.0 | piece2 -16.6 | piece3 -17.1 | piece4 -16.7 | piece5 -15.0 | spread 2.1 LU trailer.mp3 md5 c4b7720c8b40 size 629052 bytes stream|44100|1 format|55.092245 trailer-16.mp3 md5 74d9e1dd17d9 size 641277 bytes stream|48000|1 format|55.080000 (trailer-16.mp3 is published as trailer.mp3; trailer.mp3 above is the build-trailer.sh output) == T. live podcast transcript tool (/tools/podcast/transcript), Fast model, timestamps on: node transcript-run.cjs episode.mp3 episode-tr fast 1 (log tr.log) == readout: 13:31 of audio · 2,330 words · done in 262 s wall-clock seconds including model download: 268.3 saved episode-tr.txt saved episode-tr.srt saved episode-tr.vtt