== A. inputs == in/goodbye-to-spring.mp3 md5 d908af8ea3e9 stream|codec_name=mp3|sample_rate=44100|channels=2 format|duration=246.386939|bit_rate=203070 in/goodbye-to-spring.mp3 I=-10.9 LUFS LRA=7.4 LU true_peak=0.9 dBFS in/rndd.flac md5 d4a7b35d3e8d stream|codec_name=flac|sample_rate=44100|channels=2 format|duration=121.626122|bit_rate=1086471 in/rndd.flac I=-7.4 LUFS LRA=4.5 LU true_peak=2.1 dBFS in/s32.mp3 md5 e5e11ede105d stream|codec_name=mp3|sample_rate=32000|channels=2 format|duration=60.048000|bit_rate=128120 in/s32.mp3 I=-12.5 LUFS LRA=8.7 LU true_peak=0.3 dBFS in/s.wav md5 476030fa8973 stream|codec_name=pcm_s16le|sample_rate=44100|channels=2 format|duration=30.000000|bit_rate=1411275 in/s.wav I=-14.5 LUFS LRA=6.9 LU true_peak=-0.0 dBFS == B. live Cut audio tool (https://koldflux.com/tools/audio/trim) == {"file":"in/goodbye-to-spring.mp3","start":"0:00","end":"0:15","bytes":371480,"suggested":"goodbye-to-spring-cut.mp3"} exit=0 {"file":"in/goodbye-to-spring.mp3","start":"3:24","end":"3:54","bytes":774813,"suggested":"goodbye-to-spring-cut.mp3"} exit=0 {"file":"in/rndd.flac","start":"0:00","end":"0:20","bytes":473433,"suggested":"rndd-cut.mp3"} exit=0 extra: 32 kHz MP3, 0:10 to 0:25 {"file":"in/s32.mp3","start":"0:10","end":"0:25","bytes":241094,"suggested":"s32-cut.mp3"} exit=0 extra: WAV, 0:00 to 0:15 {"file":"in/s.wav","start":"0:00","end":"0:15","bytes":361732,"suggested":"s-cut.mp3"} exit=0 edge: missing input {"file":"in/none.mp3","result":"missing or empty input"} exit=2 edge: empty input {"file":"out/empty.mp3","result":"missing or empty input"} exit=2 == C. duration, frame copy and loudness of each cut (check.py) == {"cut": "out/intro.mp3", "requested_s": 15.0, "measured_s": 15.020408, "error_ms": 20.4, "codec": "mp3", "sample_rate": "44100", "channels": 2, "kbps": 198, "packets": 575, "copied_from_source_packet": 1, "frame_copy": true, "start_frame_s": 0.026, "lufs_I": "-17.8", "LRA": "2.4", "true_peak_dbfs": "-1.9"} exit=0 {"cut": "out/outro.mp3", "requested_s": 30.0, "measured_s": 29.988571, "error_ms": -11.4, "codec": "mp3", "sample_rate": "44100", "channels": 2, "kbps": 207, "packets": 1148, "copied_from_source_packet": 7811, "frame_copy": true, "start_frame_s": 204.042, "lufs_I": "-9.5", "LRA": "1.4", "true_peak_dbfs": "0.9"} exit=0 {"cut": "out/rndd-intro.mp3", "requested_s": 20.0, "measured_s": 20.035918, "error_ms": 35.9, "codec": "mp3", "sample_rate": "44100", "channels": 2, "kbps": 189, "frame_copy": false, "note": "source codec flac, re-encoded", "lufs_I": "-10.8", "LRA": "4.9", "true_peak_dbfs": "1.2"} exit=0 {"cut": "out/s32-cut.mp3", "requested_s": 15.0, "measured_s": 15.012, "error_ms": 12.0, "codec": "mp3", "sample_rate": "32000", "channels": 2, "kbps": 128, "packets": 417, "copied_from_source_packet": 279, "frame_copy": true, "start_frame_s": 10.044, "lufs_I": "-13.8", "LRA": "5.4", "true_peak_dbfs": "0.2"} exit=0 {"cut": "out/wav-cut.mp3", "requested_s": 15.0, "measured_s": 15.046531, "error_ms": 46.5, "codec": "mp3", "sample_rate": "44100", "channels": 2, "kbps": 192, "frame_copy": false, "note": "source codec pcm_s16le, re-encoded", "lufs_I": "-17.8", "LRA": "2.4", "true_peak_dbfs": "-2.0"} exit=0 edge: times typed as m:ss, as in the tool {"cut": "out/outro.mp3", "requested_s": 30.0, "measured_s": 29.988571, "error_ms": -11.4, "codec": "mp3", "sample_rate": "44100", "channels": 2, "kbps": 207, "packets": 1148, "copied_from_source_packet": 7811, "frame_copy": true, "start_frame_s": 204.042, "lufs_I": "-9.5", "LRA": "1.4", "true_peak_dbfs": "0.9"} exit=0 edge: missing source missing or empty file: in/none.mp3 exit=1 edge: a text file named .mp3 not an audio file: out/text.mp3 exit=1 edge: one argument only usage: python3 check.py (times as 204 or 3:24) exit=1 edge: a time that is not a number not a time: 'abc' (use seconds like 204 or m:ss like 3:24) exit=1 == D. fade-out.sh on the intro, then the last 0.2 s RMS before and after == wrote out/intro-fade.mp3 (fade from 13.520s for 1.5s) exit=0 out/intro.mp3 last 0.2 s RMS dB -20.921530 out/intro-fade.mp3 last 0.2 s RMS dB -47.779876 edge: missing file missing file: out/none.mp3 exit=2 edge: empty file empty file: out/empty.mp3 exit=3 edge: non-ASCII name and Windows line break in the seconds wrote out/intro-café-fade.mp3 (fade from 13.520s for 1.5s) exit=0 edge: file name without an extension wrote out/noext-fade.mp3 (fade from 13.520s for 1.5s) exit=0 out/noext-fade.mp3 edge: a dot in the folder name wrote out/my.show/intro-fade.mp3 (fade from 13.520s for 1.5s) exit=0 intro intro-fade.mp3 edge: fade is not a number fade must be a number of seconds above 0, got: abc exit=5 edge: fade longer than the file fade of 20s is not shorter than the file (15.020408s) exit=5 edge: a text file [mp3 @ 0x6439ede06900] Failed to read frame size: Could not seek to 1029. out/text.mp3: Invalid argument not an audio file: out/text.mp3 exit=4 edge: no arguments usage: bash fade-out.sh exit=1 == E. live Normalize audio tool (https://koldflux.com/tools/audio/normalize): the faded intro and the outro, as in the steps == {"file":"out/intro-fade.mp3","seconds":"4.5","bytes":370166,"suggested":"output.mp3"} exit=0 {"file":"out/outro.mp3","seconds":"5.9","bytes":650294,"suggested":"output.mp3"} exit=0 extra: the unfaded intro {"file":"out/intro.mp3","seconds":"4.3","bytes":371558,"suggested":"output.mp3"} exit=0 out/intro-fade.mp3 I=-18.0 LUFS LRA=2.3 LU true_peak=-2.0 dBFS stream|sample_rate=44100 format|duration=15.046531 out/intro-16.mp3 I=-15.8 LUFS LRA=1.8 LU true_peak=-1.5 dBFS stream|sample_rate=48000 format|duration=15.048000 out/outro-16.mp3 I=-16.0 LUFS LRA=1.2 LU true_peak=-5.8 dBFS stream|sample_rate=48000 format|duration=30.024000 out/intro-nofade-16.mp3 I=-15.6 LUFS LRA=1.8 LU true_peak=-1.4 dBFS stream|sample_rate=48000 format|duration=15.048000 edge: missing input {"file":"out/none.mp3","result":"missing or empty input"} exit=2 == F. credit.py (show-notes credit lines) == edge: Windows line breaks and non-ASCII text in tracks.tsv Music: "Goodbye To Spring (instrumental)" by Josh Woodward (https://www.joshwoodward.com/song/GoodbyeToSpring). Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cut to 0:00-0:15 (faded out) and 3:24-3:54, both leveled to -16 LUFS. Music: "4 RNDD!" by Drozerix (https://modarchive.org/module.php?172898), CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/). No credit required; given as thanks. Music: "Été café" by José Ñúñez (https://example.org/ete). Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). exit=0 edge: header row Music: "Goodbye To Spring (instrumental)" by Josh Woodward (https://www.joshwoodward.com/song/GoodbyeToSpring). Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cut to 0:00-0:15 (faded out) and 3:24-3:54, both leveled to -16 LUFS. exit=0 edge: comma-separated file line 1: need title, artist, source_url, license, license_url (no tabs found: separate the columns with tabs, not commas) exit=1 edge: Latin-1 file not UTF-8: out/latin1.tsv (save it as UTF-8 and run again) exit=1 edge: missing file missing file: out/nope.tsv exit=1 edge: empty file empty file: out/empty.tsv exit=1 edge: no argument usage: python3 credit.py tracks.tsv exit=1 == G. where the music changes: RMS level of 1 s windows of the source (picks the cut points) == 13-14 s RMS dB -19.641053 14-15 s RMS dB -20.426003 15-16 s RMS dB -14.744536 16-17 s RMS dB -13.262479 220-221 s RMS dB -11.715120 223-224 s RMS dB -11.452045 224-225 s RMS dB -34.011720 225-226 s RMS dB -52.294422 226-227 s RMS dB -58.917263 227-228 s RMS dB -66.120043 228-229 s RMS dB -71.793718 233-234 s RMS dB -93.621392 236-237 s RMS dB -97.559746 == H. numbers the page derives (rounded from sections C, E and G) == intro: measured 15.020 s, error +20.4 ms, frame_copy True, sample_rate 44100 outro: measured 29.989 s, error -11.4 ms, frame_copy True, sample_rate 44100 flac: measured 20.036 s, error +35.9 ms, frame_copy False, sample_rate 44100 s32: measured 15.012 s, error +12.0 ms, frame_copy True, sample_rate 32000 wav: measured 15.047 s, error +46.5 ms, frame_copy False, sample_rate 44100 loudness gap outro minus intro: 8.3 LU MP3 frame length: 44.1 kHz 26.1 ms, 32 kHz 36.0 ms outro: start_frame_s 204.042 (packet clock); decoded cut starts at 204.029 s of the decoded original s32: start_frame_s 10.044 (packet clock); decoded cut starts at 10.026 s of the decoded original band entry at 15 s: 5.7 dB louder than 14-15 s