supporting (pause list), not printed on the page run: ffmpeg -hide_banner -nostats -i episode.mp3 -af silencedetect=noise=-35dB:d=0.4 -f null - 2>&1 | grep -c silence_end 246 exit=0 supporting (pause list), not printed on the page run: ffmpeg -hide_banner -nostats -i episode.mp3 -af silencedetect=noise=-35dB:d=0.4 -f null - 2>&1 | grep silence_end | awk "\$5>93&&\$5<115" [silencedetect @ 0x5b746592e080] silence_end: 94.2445 | silence_duration: 0.453787 [silencedetect @ 0x5b746592e080] silence_end: 94.9256 | silence_duration: 0.676463 [silencedetect @ 0x5b746592e080] silence_end: 97.748 | silence_duration: 0.539955 [silencedetect @ 0x5b746592e080] silence_end: 102.083 | silence_duration: 0.510522 [silencedetect @ 0x5b746592e080] silence_end: 106.707 | silence_duration: 1.72712 [silencedetect @ 0x5b746592e080] silence_end: 110.464 | silence_duration: 0.688617 [silencedetect @ 0x5b746592e080] silence_end: 113.028 | silence_duration: 0.528345 exit=0 supporting (pause list), not printed on the page edge: missing file run: ffmpeg -hide_banner -nostats -i nofile.mp3 -af silencedetect=noise=-35dB:d=0.4 -f null - 2>&1 | tail -2; exit ${PIPESTATUS[0]} Error opening input file nofile.mp3. Error opening input files: No such file or directory exit=254 supporting (cut lengths), not printed on the page run: for f in clip1.mp3 clip2.mp3 clip3.mp3; do printf "%s " $f; ffprobe -v error -show_entries format=duration -of csv=p=0 -i $f; done clip1.mp3 20.897959 clip2.mp3 8.698776 clip3.mp3 15.098776 exit=0 supporting (cut lengths), not printed on the page edge: empty file run: : > zero.mp3; ffprobe -v error -show_entries format=duration -of csv=p=0 -i zero.mp3; exit $? [mp3 @ 0x63b02da83800] Failed to read frame size: Could not seek to 1026. zero.mp3: Invalid argument exit=1 supporting (loudness), not printed on the page run: for f in episode.mp3 intro.wav clip1.mp3 clip2.mp3 clip3.mp3 outro.wav trailer.mp3 trailer-16.mp3; do printf "%s " $f; ffmpeg -hide_banner -nostats -i $f -af ebur128=peak=true -f null - 2>&1 | grep -A14 Summary | grep -E "^ +(I|Peak):" | tr -s " " | tr "\n" " "; echo; done episode.mp3 I: -26.5 LUFS Peak: -1.1 dBFS intro.wav I: -13.7 LUFS Peak: -1.8 dBFS clip1.mp3 I: -26.0 LUFS Peak: -5.3 dBFS clip2.mp3 I: -25.8 LUFS Peak: -4.3 dBFS clip3.mp3 I: -27.0 LUFS Peak: -3.2 dBFS outro.wav I: -13.3 LUFS Peak: -2.3 dBFS trailer.mp3 I: -16.9 LUFS Peak: -1.2 dBFS trailer-16.mp3 I: -16.4 LUFS Peak: -1.2 dBFS exit=0 supporting (loudness), not printed on the page edge: missing file run: ffmpeg -hide_banner -nostats -i nofile.mp3 -af ebur128=peak=true -f null - 2>&1 | tail -2; exit ${PIPESTATUS[0]} Error opening input file nofile.mp3. Error opening input files: No such file or directory exit=254 published: bash build-trailer.sh pieces.txt trailer.mp3 run: cat pieces.txt; bash ../pub/build-trailer.sh pieces.txt trailer.mp3 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 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: missing file run: bash ../pub/build-trailer.sh nope.txt x.mp3 error: list file not found: nope.txt exit=2 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: empty file run: : > empty.txt; bash ../pub/build-trailer.sh empty.txt x.mp3 error: list file is empty: empty.txt exit=2 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: Windows line breaks run: printf "ctl-5.wav\r\nctl-10.wav\r\n" > crlf.txt; bash ../pub/build-trailer.sh crlf.txt crlf.mp3 piece 1 ctl-5.wav 5.000 s piece 2 ctl-10.wav 10.000 s sum of pieces 15.000 s crlf.mp3 15.047 s difference +0.047 s exit=0 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: non-ASCII text run: printf "épisode-intro.wav\nctl-10.wav\n" > utf.txt; bash ../pub/build-trailer.sh utf.txt utf.mp3 piece 1 épisode-intro.wav 5.000 s piece 2 ctl-10.wav 10.000 s sum of pieces 15.000 s utf.mp3 15.047 s difference +0.047 s exit=0 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: piece listed but missing run: printf "ctl-5.wav\ngone.wav\n" > miss.txt; bash ../pub/build-trailer.sh miss.txt x.mp3 piece 1 ctl-5.wav 5.000 s error: piece not found: gone.wav exit=2 supporting (concat copy join), not printed on the page edge: mixed formats (wav 44.1 kHz stereo + mp3 22.05 kHz mono), output .mp3 run: printf "file 'intro.wav'\nfile 'clip1.mp3'\n" > demux.txt; rm -f joined.mp3; ffmpeg -hide_banner -loglevel error -y -f concat -safe 0 -i demux.txt -c copy joined.mp3; e=$?; echo "joined.mp3 size $(stat -c %s joined.mp3) bytes"; exit $e [mp3 @ 0x6493e07e7900] Invalid audio stream. Exactly one MP3 audio stream is required. [out#0/mp3 @ 0x6493e07ba3c0] Could not write header (incorrect codec parameters ?): Invalid argument Error opening output file joined.mp3. Error opening output files: Invalid argument joined.mp3 size 0 bytes exit=234 supporting (concat copy join), not printed on the page edge: mixed formats (wav 44.1 kHz stereo + mp3 22.05 kHz mono), output .mka run: ffmpeg -hide_banner -loglevel error -y -f concat -safe 0 -i demux.txt -c copy joined.mka; e=$?; ffprobe -v error -show_entries format=duration -of csv=p=0 joined.mka; exit $e 8518.138000 exit=0 supporting (concat copy join), not printed on the page edge: same-format clips only run: printf "file 'clip1.mp3'\nfile 'clip2.mp3'\nfile 'clip3.mp3'\n" > demux2.txt; ffmpeg -hide_banner -loglevel error -y -f concat -safe 0 -i demux2.txt -c copy demux-clips.mp3; ffprobe -v error -show_entries format=duration -of csv=p=0 demux-clips.mp3 44.695510 exit=0 published: CHANNELS=stereo bash build-trailer.sh pieces.txt trailer.mp3 edge: stereo piece (440 Hz left, 660 Hz right) with the default and with CHANNELS=stereo run: printf "st.wav\nclip2.mp3\n" > st.txt; bash ../pub/build-trailer.sh st.txt st-mono.mp3 | tail -1; ffprobe -v error -show_entries stream=sample_rate,channels -of compact st-mono.mp3; CHANNELS=stereo bash ../pub/build-trailer.sh st.txt st-stereo.mp3 | tail -1; e=${PIPESTATUS[0]}; ffprobe -v error -show_entries stream=sample_rate,channels -of compact st-stereo.mp3; exit $e difference +0.023 s stream|sample_rate=44100|channels=1 difference +0.023 s stream|sample_rate=44100|channels=2 exit=0 published: CHANNELS=stereo bash build-trailer.sh pieces.txt trailer.mp3 edge: unsupported layout run: CHANNELS=5.1 bash ../pub/build-trailer.sh st.txt x.mp3 error: CHANNELS must be mono or stereo, got: 5.1 exit=2 published: bash build-trailer.sh pieces.txt trailer.mp3 edge: file without audio (video-only MP4) run: printf "ctl-5.wav\nna.mp4\n" > na.txt; bash ../pub/build-trailer.sh na.txt x.mp3 piece 1 ctl-5.wav 5.000 s error: no audio stream in: na.mp4 exit=2 published: python3 check-item.py feed.xml run: python3 ../pub/check-item.py trailer-item.xml Stage Plunge: trailer episodeType=trailer season=- episode=- => show trailer exit=0 published: python3 check-item.py feed.xml edge: missing file run: python3 ../pub/check-item.py none.xml error: feed file not found: none.xml exit=1 published: python3 check-item.py feed.xml edge: empty file run: : > e.xml; python3 ../pub/check-item.py e.xml error: feed file is empty: e.xml exit=1 published: python3 check-item.py feed.xml edge: Windows line breaks run: sed "s/\r*$/\r/" trailer-item.xml > crlf.xml; python3 ../pub/check-item.py crlf.xml Stage Plunge: trailer episodeType=trailer season=- episode=- => show trailer exit=0 published: python3 check-item.py feed.xml edge: non-ASCII text run: sed "s/Stage Plunge: trailer/Scène Plunge: bande-annonce/" trailer-item.xml > utf.xml; python3 ../pub/check-item.py utf.xml Scène Plunge: bande-annonce episodeType=trailer season=- episode=- => show trailer exit=0 published: python3 check-item.py feed.xml edge: whitespace-only season tag run: sed "s#trailer#& #" trailer-item.xml > ws.xml; python3 ../pub/check-item.py ws.xml Stage Plunge: trailer episodeType=trailer season=- episode=- => show trailer exit=0