published: ffmpeg -hide_banner -nostats -i episode.wav -af ebur128=peak=true -f null - run: bash -c ffmpeg -hide_banner -nostats -i a.wav -af ebur128=peak=true -f null - 2>&1 | tail -12 Integrated loudness: I: -23.5 LUFS Threshold: -33.9 LUFS Loudness range: LRA: 6.1 LU Threshold: -44.2 LUFS LRA low: -28.0 LUFS LRA high: -21.9 LUFS True peak: Peak: -1.2 dBFS exit=0 published: ffmpeg -hide_banner -nostats -i episode.wav -af ebur128=peak=true -f null - edge: missing file run: bash -c ffmpeg -hide_banner -nostats -i nofile.wav -af ebur128=peak=true -f null - 2>&1 | tail -2; exit ${PIPESTATUS[0]} Error opening input file nofile.wav. Error opening input files: No such file or directory exit=254 published: bash measure.sh episode.wav run: bash measure.sh a.wav a.wav I=-23.5 LUFS LRA=6.1 LU TP=-1.2 dBTP PLR=22.3 dB ch=1 dur=60.0 s exit=0 published: bash measure.sh episode.wav edge: stereo file run: bash measure.sh st.wav st.wav I=-20.5 LUFS LRA=6.1 LU TP=-1.2 dBTP PLR=19.3 dB ch=2 dur=60.0 s exit=0 published: bash measure.sh episode.wav edge: mp3 input run: bash measure.sh edge.mp3 edge.mp3 I=-23.5 LUFS LRA=6.1 LU TP=-1.2 dBTP PLR=22.3 dB ch=1 dur=60.1 s exit=0 published: bash measure.sh episode.wav edge: empty file run: bash measure.sh empty.wav input missing or empty: empty.wav exit=2 published: bash measure.sh episode.wav edge: missing file run: bash measure.sh nofile.wav input missing or empty: nofile.wav exit=2 published: bash measure.sh episode.wav edge: silent file run: bash measure.sh silent.wav silent.wav I=-70.0 LUFS LRA=0.0 LU TP=-inf dBTP PLR=-inf dB ch=1 dur=5.0 s exit=0 published: ffmpeg -i episode.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 episode-16.mp3 run: bash -c ffmpeg -hide_banner -loglevel error -y -i a.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 a-16.mp3 && bash measure.sh a-16.mp3 a-16.mp3 I=-17.2 LUFS LRA=3.4 LU TP=-1.3 dBTP PLR=15.9 dB ch=1 dur=60.0 s exit=0 published: ffmpeg -i episode.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 episode-16.mp3 edge: stereo input run: bash -c ffmpeg -hide_banner -loglevel error -y -i st.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 st-16.mp3 && bash measure.sh st-16.mp3 st-16.mp3 I=-16.2 LUFS LRA=4.2 LU TP=-1.4 dBTP PLR=14.8 dB ch=2 dur=60.0 s exit=0 published: ffmpeg -i episode.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 episode-16.mp3 edge: missing input run: bash -c ffmpeg -hide_banner -loglevel error -y -i nofile.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 x.mp3 [in#0 @ 0x5f462b5d4e00] Error opening input: No such file or directory Error opening input file nofile.wav. Error opening input files: No such file or directory exit=254 published: ffmpeg -i episode.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 episode-16.mp3 edge: silent input (writes a file, measures -inf) run: bash -c ffmpeg -hide_banner -loglevel error -y -i silent.wav -af loudnorm=I=-16:TP=-1.5:LRA=11 -ar 48000 -c:a libmp3lame -q:a 2 s-16.mp3; bash measure.sh s-16.mp3 s-16.mp3 I=-70.0 LUFS LRA=0.0 LU TP=-inf dBTP PLR=-inf dB ch=1 dur=5.0 s exit=0 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 run: bash -c bash normalize-two-pass.sh a.wav a-tp.mp3 && bash measure.sh a-tp.mp3 measured: I=-23.62 LUFS TP=-1.18 dBTP LRA=5.80 LU wrote a-tp.mp3 a-tp.mp3 I=-16.4 LUFS LRA=3.2 LU TP=-1.3 dBTP PLR=15.1 dB ch=1 dur=60.0 s exit=0 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: stereo input run: bash -c bash normalize-two-pass.sh st.wav st-tp.mp3 && bash measure.sh st-tp.mp3 measured: I=-20.61 LUFS TP=-1.18 dBTP LRA=5.80 LU wrote st-tp.mp3 st-tp.mp3 I=-16.0 LUFS LRA=4.2 LU TP=-1.4 dBTP PLR=14.6 dB ch=2 dur=60.0 s exit=0 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: mp3 input run: bash -c bash normalize-two-pass.sh edge.mp3 e-tp.mp3 && bash measure.sh e-tp.mp3 measured: I=-23.62 LUFS TP=-1.18 dBTP LRA=5.80 LU wrote e-tp.mp3 e-tp.mp3 I=-16.5 LUFS LRA=3.2 LU TP=-1.3 dBTP PLR=15.2 dB ch=1 dur=60.0 s exit=0 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: empty file run: bash normalize-two-pass.sh empty.wav x.mp3 input missing or empty: empty.wav exit=2 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: missing file run: bash normalize-two-pass.sh nofile.wav x.mp3 input missing or empty: nofile.wav exit=2 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: silent file run: bash normalize-two-pass.sh silent.wav x.mp3 no measurable speech in silent.wav (silent or too short) exit=4 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: no arguments run: bash normalize-two-pass.sh usage: bash normalize-two-pass.sh input output.mp3 exit=2 published: bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: 2 s clip (before the 3 s guard the script exited 0 and wrote a file that measured -23.2 LUFS, 7 LU low; input -28.56) run: bash normalize-two-pass.sh short2.wav x.mp3 clip shorter than 3 s (2.000000 s): loudnorm cannot measure it, not processed exit=5 published: bash measure.sh episode.wav edge: 2 s clip run: bash measure.sh short2.wav warning: clip shorter than 3 s, the reading is not reliable short2.wav I=-28.5 LUFS LRA=0.0 LU TP=-6.8 dBTP PLR=21.7 dB ch=1 dur=2.0 s exit=0 published: bash measure.sh episode.wav ; bash normalize-two-pass.sh episode.wav episode-16.mp3 edge: not handled by the page, observed by the verifier on a shared VPS (ffmpeg 6.1.1): 60 minute mono WAV measured in 1 min 39 s and two-pass took 10 min 3 s (result -16.6 LUFS, not -16.4); a 6-channel input gave a 2-channel MP3 at -16.6 LUFS, true peak -4.4 dBTP; an mp4 with video gave a mono MP3 without the video stream (-16.3 LUFS) exit=0 edge: unreadable input (text file, 200 kB random bytes), checked after the 3 s guard was added run: printf notaudio > t.txt; bash normalize-two-pass.sh t.txt o.mp3 ffmpeg could not read t.txt exit=3 run: head -c 200000 /dev/urandom > r.raw; bash normalize-two-pass.sh r.raw o.mp3 ffmpeg could not read r.raw exit=3 published: bash normalize-two-pass.sh episode.wav episode-16.mp3