published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 run: python3 pub/levels.py out/chopin-waltz-tool.mp3 out/softly-tool.mp3 out/anarchobliss-tool.mp3 chopin-waltz-tool.mp3 I=-16.1 LUFS TP=-1.4 dBTP LRA=10.2 LU to target=+0.1 dB ok softly-tool.mp3 I=-15.2 LUFS TP=-2.4 dBTP LRA=2.7 LU to target=-0.8 dB ok anarchobliss-tool.mp3 I=-15.6 LUFS TP=-3.8 dBTP LRA=1.1 LU to target=-0.4 dB ok spread (loudest - quietest) = 0.9 LU over 3 files exit=0 published: python3 levels.py --list tracks.txt edge: list file with Windows line breaks, a blank line and a comment run: python3 pub/levels.py --list out/tracks-crlf.txt chopin-waltz-tool.mp3 I=-16.1 LUFS TP=-1.4 dBTP LRA=10.2 LU to target=+0.1 dB ok softly-tool.mp3 I=-15.2 LUFS TP=-2.4 dBTP LRA=2.7 LU to target=-0.8 dB ok spread (loudest - quietest) = 0.9 LU over 2 files exit=0 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: non-ASCII file name (accents and a curly quote) run: python3 pub/levels.py out/Chanson d’été (mix).mp3 Chanson d’été (mix).mp3 I=-15.5 LUFS TP=-4.4 dBTP LRA=1.8 LU to target=-0.5 dB ok exit=0 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: missing file run: python3 pub/levels.py out/nofile.mp3 missing or empty file: out/nofile.mp3 exit=1 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: empty file run: python3 pub/levels.py out/empty.mp3 missing or empty file: out/empty.mp3 exit=1 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: text file named .mp3 run: python3 pub/levels.py out/text.mp3 not an audio file or ffmpeg failed: out/text.mp3 exit=1 published: python3 levels.py --bed voice.mp3 music.mp3 -18 run: python3 pub/levels.py --bed out/voice-tool.mp3 out/monster-parade-tool.mp3 -18 bed gain -18 dB voice=-16.2 LUFS bed=-33.5 LUFS voice minus bed=17.3 LU mix I=-16.1 LUFS mix TP=-1.3 dBTP exit=0 published: python3 levels.py --bed voice.mp3 music.mp3 -18 edge: gain typed as text run: python3 pub/levels.py --bed out/voice-tool.mp3 out/monster-parade-tool.mp3 minus18 gain must be a number in dB, got: minus18 exit=1 published: python3 levels.py --target -14 track1.mp3 edge: target changed run: python3 pub/levels.py --target -14 out/monster-parade-tool.mp3 monster-parade-tool.mp3 I=-15.5 LUFS TP=-4.4 dBTP LRA=1.8 LU to target=+1.5 dB more than 1 LU off target exit=0 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: no arguments run: python3 pub/levels.py Measure several music tracks against one loudness target, or a music bed under a voice. python3 levels.py track1.mp3 track2.wav ... loudness table and spread python3 levels.py --list tracks.txt same, file names one per line python3 levels.py --bed voice.mp3 music.mp3 -18 voice vs bed after a gain in dB Needs ffmpeg (EBU R128 meter, BS.1770). Target -16 LUFS, change with --target -14. Our tolerance is 1 LU (our choice, not a standard): outside it, run the track through the tool again. exit=1 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: same file name in two folders (path shown instead of name) run: python3 pub/levels.py e/a/track.mp3 e/b/track.mp3 e/a/track.mp3 I=-15.5 LUFS TP=-4.4 dBTP LRA=1.8 LU to target=-0.5 dB ok e/b/track.mp3 I=-15.2 LUFS TP=-2.4 dBTP LRA=2.7 LU to target=-0.8 dB ok spread (loudest - quietest) = 0.3 LU over 2 files exit=0 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: 5 s of silence run: python3 pub/levels.py e/silent.wav silent or too short to measure (under 0.4 s of sound): e/silent.wav exit=1 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: 0.2 s tone, shorter than one 400 ms block run: python3 pub/levels.py e/short.wav silent or too short to measure (under 0.4 s of sound): e/short.wav exit=1 published: python3 levels.py track1.mp3 track2.mp3 track3.mp3 edge: no ffmpeg on PATH run: env PATH=/nonexistent /usr/bin/python3 pub/levels.py out/softly-tool.mp3 ffmpeg not found: install ffmpeg and make sure it is on your PATH exit=1 published: python3 levels.py --bed voice.mp3 music.mp3 -18 edge: fractional gain run: python3 pub/levels.py --bed out/voice-tool.mp3 out/monster-parade-tool.mp3 -17.5 bed gain -17.5 dB voice=-16.2 LUFS bed=-33.0 LUFS voice minus bed=16.8 LU mix I=-16.1 LUFS mix TP=-1.2 dBTP exit=0 published: python3 levels.py --bed voice.mp3 music.mp3 -18 edge: gain nan run: python3 pub/levels.py --bed out/voice-tool.mp3 out/monster-parade-tool.mp3 nan gain must be a number in dB, got: nan exit=1 published: python3 levels.py --bed voice.mp3 music.mp3 -18 edge: silent voice run: python3 pub/levels.py --bed e/silent.wav out/monster-parade-tool.mp3 -18 silent or too short to measure (under 0.4 s of sound): e/silent.wav exit=1 published: python3 levels.py --bed voice.mp3 music.mp3 -18 edge: music file is a video with no sound run: python3 pub/levels.py --bed out/voice-tool.mp3 e/videoonly.mp4 -18 not an audio file or ffmpeg failed: e/videoonly.mp4 exit=1