published: bash check-level.sh voice.wav run: bash check-level.sh in/q35-hiss60.wav exit=0 test file: speech at -35 LUFS with hiss at -60 dBFS output: q35-hiss60.wav I=-35.0 LUFS TP=-13.2 dBTP speech=-31.5 dBFS floor=-60.4 dBFS gap=28.9 dB blocks=400| published: bash check-level.sh voice.wav run: bash check-level.sh out/q35-hiss60-ln.mp3 exit=0 edge: the same file after the loudnorm line below (MP3 input) output: q35-hiss60-ln.mp3 I=-17.1 LUFS TP=-1.3 dBTP speech=-13.3 dBFS floor=-40.6 dBFS gap=27.3 dB blocks=400| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/clip.mp4 exit=0 edge: an MP4 with a video track and the audio of the test file output: clip.mp4 I=-36.4 LUFS TP=-16.9 dBTP speech=-33.8 dBFS floor=-60.4 dBFS gap=26.6 dB blocks=61| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/c3.05.wav exit=0 edge: a 3.05 s cut, no warning, but no pause in it: floor -46.9, gap 14.7 against 28.9 for the whole file output: c3.05.wav I=-35.8 LUFS TP=-17.0 dBTP speech=-32.2 dBFS floor=-46.9 dBFS gap=14.7 dB blocks=31| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/silent.wav exit=0 edge: 5 s of digital silence output: silent.wav I=-70.0 LUFS TP=-inf dBTP digital silence: nothing to measure| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/short.wav exit=0 edge: a 1.5 s clip, warning expected output: short.wav I=-34.3 LUFS TP=-17.0 dBTP speech=-30.6 dBFS floor=-46.7 dBFS gap=16.0 dB blocks=15|warning: clip shorter than 3 s, the readings are not reliable| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/noaudio.mp4 exit=3 edge: a video with no audio stream output: no audio stream in ctl/noaudio.mp4| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/empty.wav exit=2 edge: empty file output: input missing or empty: ctl/empty.wav| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/text.wav exit=3 edge: a text file named .wav output: no audio stream in ctl/text.wav| published: bash check-level.sh voice.wav run: bash check-level.sh ctl/missing.wav exit=2 edge: file that does not exist output: input missing or empty: ctl/missing.wav| published: bash check-level.sh voice.wav run: bash check-level.sh exit=2 edge: no arguments, usage message output: usage: bash check-level.sh | published: ffmpeg -y -i voice.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 voice-louder.mp3 run: ffmpeg -y -i in/q35-hiss60.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 ctl/louder.mp3 exit=0 test file: speech at -35 LUFS with hiss at -60 dBFS output: encoder : Lavc60.31.102 libmp3lame|size= 0kB time=-00:00:00.02 bitrate= -0.0kbits/s speed=N/A size= 59kB time=00:00:05.13 bitrate= 94.3kbits/s speed=7.55x size= 166kB time=00:00:14.64 bitrate= 92.8kbits/s speed=12.4x size= |size= 454kB time=00:00:39.98 bitrate= 93.0kbits/s speed=14.9x | published: ffmpeg -y -i voice.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 voice-louder.mp3 run: ffmpeg -y -i out/q22-hiss50-gain.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 ctl/again.mp3 exit=0 edge: input already at -16.2 LUFS output: encoder : Lavc60.31.102 libmp3lame|size= 0kB time=-00:00:00.02 bitrate=N/A speed=N/A size= 69kB time=00:00:05.95 bitrate= 95.0kbits/s speed=10.1x size= 183kB time=00:00:15.84 bitrate= 94.7kbits/s speed=14.5x size= 256kB ti|size= 465kB time=00:00:39.98 bitrate= 95.2kbits/s speed= 16x | published: ffmpeg -y -i voice.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 voice-louder.mp3 run: ffmpeg -y -i ctl/silent.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 ctl/silent-out.mp3 exit=0 edge: 5 s of digital silence output: encoder : Lavc60.31.102 libmp3lame|size= 0kB time=N/A bitrate=N/A speed=N/A [out#0/mp3 @ 0x64fbcbefe5c0] video:0kB audio:20kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.175595%|size= 20kB time=00:00:04.99 bitrate= 32.7kbits/s speed= 19x | published: ffmpeg -y -i voice.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 voice-louder.mp3 run: ffmpeg -y -i ctl/missing.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 ctl/missing-out.mp3 exit=254 edge: input file does not exist output: [in#0 @ 0x5c2b0200ae00] Error opening input: No such file or directory|Error opening input file ctl/missing.wav.|Error opening input files: No such file or directory| published: ffmpeg -y -i voice.wav -af volume=11.7dB voice-louder.wav run: ffmpeg -y -i in/q35-hiss60.wav -af volume=11.7dB ctl/safe.wav exit=0 test file: true peak -13.2 dBTP, so +11.7 dB puts the peak at -1.5 output: encoder : Lavc60.31.102 pcm_s16le|size= 0kB time=00:00:00.00 bitrate=N/A speed=N/A [out#0/wav @ 0x5f18f65d6e80] video:0kB audio:3750kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.007760%|size= 3750kB time=00:00:39.97 bitrate= 768.5kbits/s speed=92.5x | published: ffmpeg -y -i voice.wav -af volume=11.7dB voice-louder.wav run: ffmpeg -y -i in/q22-hiss50.wav -af volume=11.7dB ctl/toohot.wav exit=0 edge: a file whose peak is already -0.2 dBTP, the same gain clips it output: encoder : Lavc60.31.102 pcm_s16le|size= 0kB time=00:00:00.00 bitrate=N/A speed=N/A [out#0/wav @ 0x58bdfe5c2e80] video:0kB audio:3750kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.007760%|size= 3750kB time=00:00:39.97 bitrate= 768.5kbits/s speed= 110x | published: ffmpeg -y -i voice.wav -af volume=11.7dB voice-louder.wav run: ffmpeg -y -i ctl/silent.wav -af volume=11.7dB ctl/silent-gain.wav exit=0 edge: 5 s of digital silence output: encoder : Lavc60.31.102 pcm_s16le|size= 0kB time=00:00:00.00 bitrate=N/A speed=N/A [out#0/wav @ 0x5dea279254c0] video:0kB audio:469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.016250%|size= 469kB time=00:00:04.99 bitrate= 769.4kbits/s speed=51.1x | published: ffmpeg -y -i voice.wav -af volume=11.7dB voice-louder.wav run: ffmpeg -y -i ctl/missing.wav -af volume=11.7dB ctl/missing-gain.wav exit=254 edge: input file does not exist output: [in#0 @ 0x5eb8e5d0cd40] Error opening input: No such file or directory|Error opening input file ctl/missing.wav.|Error opening input files: No such file or directory| # after the edge runs: levels of the two outputs again.mp3 I=-16.5 LUFS TP=-1.1 dBTP speech=-12.8 dBFS floor=-43.5 dBFS gap=30.7 dB blocks=400 louder.mp3 I=-17.1 LUFS TP=-1.3 dBTP speech=-13.3 dBFS floor=-40.6 dBFS gap=27.3 dB blocks=400 safe.wav I=-23.3 LUFS TP=-1.5 dBTP speech=-19.8 dBFS floor=-48.7 dBFS gap=28.9 dB blocks=400 toohot.wav I=-11.4 LUFS TP=0.8 dBTP speech=-7.6 dBFS floor=-38.7 dBFS gap=31.1 dB blocks=400