# commands.log: podcast-file-size-per-hour, November 29, 2026 (server: Ubuntu 24.04, ffmpeg 6.1.1, Python 3, Node 24.21.0, Playwright Chromium) # Each published command as run, its exit code and the edge input it was also tried on. Scripts sit next to this file. published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k episode.mp3 ran: ffmpeg -v error -y -i episode.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k ep-new.mp3 exit=0 | 43201089 bytes; cmp with the earlier export without -vn -ar 44100: identical published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k episode.mp3 (edge: MP3 source with an embedded 3000x3000 cover, cover-64k.mp3 = out/cbr-64k-1ch-cover.mp3) ran: ffmpeg -v error -y -i cover-64k.mp3 -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k fromcover.mp3 exit=0 | 43201089 bytes, streams: mp3 ran (old command, no -vn): ffmpeg -v error -y -i cover-64k.mp3 -ac 1 -c:a libmp3lame -b:a 96k fromcover-old.mp3 exit=0 | 47843106 bytes, streams: mp3 png (cover copied and re-encoded as PNG) edge: source with cover art: -vn drops it; without -vn the file grows by 4.6 MB published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k episode.mp3 (edge: 8 kHz mono WAV, 60 s) ran: ffmpeg -v error -y -i w8k.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k w8k.mp3 exit=0 | stream sample_rate=44100 bit_rate=96000 ran (old command, no -ar): ffmpeg -v error -y -i w8k.wav -ac 1 -c:a libmp3lame -b:a 96k w8k-old.mp3 exit=0 | stream sample_rate=8000 bit_rate=64000 (64 kbps written instead of 96, no warning) edge: low sample rate: -ar 44100 keeps the 96 kbps published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k episode.mp3 (edge: a VBR MP3 source with a non-ASCII name, 18:09) ran: ffmpeg -v error -y -i "chapter-8 été.mp3" -vn -ac 1 -ar 44100 -c:a libmp3lame -b:a 96k "chapter-8 été-96k-new.mp3" exit=0 | 13072941 bytes; identical to the earlier export without -vn -ar 44100 edge: VBR MP3 input, file name with é and a space measured (FAQ, 48 kHz): ffmpeg -v error -y -i w48.wav -ac 1 -c:a libmp3lame -b:a 96k w48-keep.mp3 (w48.wav: 48 kHz stereo, 3600 s, 691200316 bytes; -ar left out on purpose to keep 48 kHz) exit=0 | 43200882 bytes, stream 48000 Hz, 1 channel, bit_rate=96000, duration=3600.024000; formula 43200000, diff +882 published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart episode.m4a ran: ffmpeg -v error -y -i episode.wav -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart ep-new.m4a exit=0 | 41716963 bytes (same as the earlier export without -vn -ar 44100) published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart episode.m4a (edge: MP3 source with an embedded cover) ran: ffmpeg -v error -y -i cover-64k.mp3 -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart fromcover.m4a exit=0 | 40597899 bytes, streams: aac (no cover) edge: source with cover art: -vn drops it published: ffmpeg -i episode.wav -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart episode.m4a (edge: a VBR MP3 source with a non-ASCII name, 18:09) ran: ffmpeg -v error -y -i "chapter-8 été.mp3" -vn -ac 1 -ar 44100 -c:a aac -b:a 96k -movflags +faststart "chapter-8 été-96k-new.m4a" exit=0 | 12687599 bytes (same as without -vn -ar 44100), duration=1089.331995, bit_rate=93177 edge: VBR MP3 input, file name with é and a space published: ffprobe -v error -show_entries format=duration,size,bit_rate -of default=nw=1 episode.mp3 ran: ffprobe -v error -show_entries format=duration,size,bit_rate -of default=nw=1 episode.mp3 exit=0 | duration=3600.039184 | size=43201089 | bit_rate=96001 published: ffprobe ... (edge: MP3 with an embedded cover) ran: ffprobe -v error -show_entries format=bit_rate -of csv=p=0 cover-64k.mp3; ffprobe -v error -show_entries stream=codec_name,codec_type,bit_rate -of csv=p=0 cover-64k.mp3 exit=0 | 66610 | mp3,audio,64000 | mjpeg,video,N/A edge: format bit_rate is size / duration and counts the cover; the audio stream says 64000 published: ffprobe ... (edge: missing file) ran: ffprobe -v error -show_entries format=duration,size,bit_rate -of default=nw=1 missing.mp3 exit=1 | missing.mp3: No such file or directory edge: missing file: ffprobe exits 1 with No such file published: python3 size-check.py --kbps 96 episode.mp3 episode.m4a ran: python3 size-check.py --kbps 96 episode.mp3 episode.m4a exit=0 | file | bytes | duration | bitrate | formula bytes | difference | episode.mp3 | 43201089 bytes = 43.2 MB = 41.2 MiB | 3600.04 s | 96 kbps (export) | formula 43200470 | diff +619 bytes (+0.001%) | episode.m4a | 41716963 bytes = 41.7 MB = 39.8 MiB | 3600.00 s | 96 kbps (export) | formula 43200000 | diff -1483037 bytes (-3.433%) | aac: not CBR MP3, size depends on the audio published: python3 size-check.py (edge: MP3 with the 3000x3000 cover, with and without --kbps) ran: python3 size-check.py --kbps 64 cover-64k.mp3; python3 size-check.py cover-64k.mp3 exit=0 | cover-64k.mp3 | 29975116 bytes = 30.0 MB = 28.6 MiB | 3600.04 s | 64 kbps (export) | formula 28800313 | diff +1174803 bytes (+4.079%) | non-audio streams: video/mjpeg | cover-64k.mp3 | 29975116 bytes = 30.0 MB = 28.6 MiB | 3600.04 s | 64 kbps (stream) | formula 28800313 | diff +1174803 bytes (+4.079%) | non-audio streams: video/mjpeg edge: cover shows as extra bytes and as a listed picture stream (the earlier version read format bit_rate and printed 67 kbps, diff -175212) published: python3 size-check.py (edge: VBR MP3s and a CBR file, no --kbps) ran: python3 size-check.py vbr-V4-1ch.mp3 vbr-V4-2ch.mp3 cbr-192k-2ch.mp3 exit=0 | vbr-V4-1ch.mp3 | 37163693 bytes = 37.2 MB = 35.4 MiB | 3600.04 s | 83 kbps (stream) | formula 37350407 | diff -186714 bytes (-0.500%) | VBR MP3: size depends on the audio | vbr-V4-2ch.mp3 | 41576577 bytes = 41.6 MB = 39.7 MiB | 3600.04 s | 92 kbps (stream) | formula 41400451 | diff +176126 bytes (+0.425%) | VBR MP3: size depends on the audio | cbr-192k-2ch.mp3 | 86401872 bytes = 86.4 MB = 82.4 MiB | 3600.04 s | 192 kbps (stream) | formula 86400940 | diff +932 bytes (+0.001%) edge: VBR is flagged (Xing header), its stream bitrate is its own average published: python3 size-check.py (edge: 0.55 s 96k CBR clip) ran: python3 size-check.py short-96k.mp3 exit=0 | short-96k.mp3 | 7202 bytes = 0.0 MB = 0.0 MiB | 0.55 s | 96 kbps (stream) | formula 6583 | diff +619 bytes (+9.405%) edge: very short file: bitrate read right (96, not 105); the fixed overhead is a big share published: python3 size-check.py --kbps 96 --list paths.txt (edge: Windows line breaks, non-ASCII name, empty file, missing file, not audio, bad --kbps) ran: python3 size-check.py --kbps 96 --list list-crlf.txt; python3 size-check.py empty.mp3 missing.mp3; python3 size-check.py notaudio.mp3; python3 size-check.py --kbps x episode.mp3 exit=0, 0, 0, 2 | episode.mp3 | 43201089 bytes = 43.2 MB = 41.2 MiB | 3600.04 s | 96 kbps (export) | formula 43200470 | diff +619 bytes (+0.001%) | chapter-8 été-96k.mp3 | 13072941 bytes = 13.1 MB = 12.5 MiB | 1089.36 s | 96 kbps (export) | formula 13072300 | diff +641 bytes (+0.005%) | empty.mp3 | empty file (0 bytes) | missing.mp3 | missing file | notaudio.mp3 | not readable as audio by ffprobe | --kbps needs a whole number above 0, for example --kbps 96 edge: CRLF list with a non-ASCII path; empty.mp3 (0 bytes); missing.mp3; a text file named .mp3; --kbps x published: python3 size-check.py --list paths.txt (edge: empty list file) ran: python3 size-check.py --list empty-list.txt exit=1 | list file is empty edge: empty list file published: bash test-run.sh (full run: see test-results.txt; edge: workdir without the two input files) ran: mkdir -p emptywd && bash test-run.sh emptywd exit=1 | missing in/ch01.mp3 or in/ch02.mp3 edge: missing inputs: script stops with a message, exit 1 published: python3 make-chart.py test-results.txt size-chart.html ran: cp ../test-results.txt . && python3 make-chart.py test-results.txt size-chart.html exit=0 | wrote size-chart.html 1200x1100 rows=10 published: python3 make-chart.py test-results.txt size-chart.html (edge: empty results file) ran: python3 make-chart.py empty-list.txt x.html exit=1 | missing or empty: empty-list.txt edge: empty input file published: node html2png.cjs size-chart.html size-chart.png 1200 900 ran: node html2png.cjs size-chart.html size-chart.png 1200 900 exit=0 | wrote size-chart.png published: node html2png.cjs size-chart.html size-chart.png 1200 900 (edge: missing input file) ran: node html2png.cjs missing.html x.png 1200 900 exit=2 | usage: node html2png.cjs in.html out.png width height (in.html missing or empty) edge: missing input file published: node tool-run.cjs https://koldflux.com tool-96k-1h.png (run here on the editor preview of the same page, base http://127.0.0.1:3081) ran: node tool-run.cjs http://127.0.0.1:3081 tool-96k-1h.png exit=0 | tool | kbps | seconds | audio file size | per minute | tool | 64 | 3600 | 28.8 MB (27.5 MiB) | 480 KB | tool | 96 | 3600 | 43.2 MB (41.2 MiB) | 720 KB | tool | 128 | 3600 | 57.6 MB (54.9 MiB) | 960 KB | tool | 192 | 3600 | 86.4 MB (82.4 MiB) | 1.4 MB (1.4 MiB) | tool | 96 | 3600 | 43.2 MB (41.2 MiB) | 720 KB published: node tool-run.cjs (edge: no base URL) ran: node tool-run.cjs exit=2 | usage: node tool-run.cjs [screenshot.png] edge: no argument: usage message, exit 2 published: node wav2mp3-run.cjs https://koldflux.com excerpt-60s.wav excerpt-tool.mp3 (excerpt-60s.wav: the first 60 s of the stereo master) ran: node wav2mp3-run.cjs https://koldflux.com excerpt-60s.wav excerpt-tool.mp3 exit=0 | converted excerpt-60s.wav -> excerpt-tool.mp3 960984 bytes in 3.7 s (ffprobe: mp3, 44100 Hz, 2 channels, bit_rate=128068) published: node wav2mp3-run.cjs https://koldflux.com excerpt-60s-mono.wav excerpt-tool-mono.mp3 (edge: mono WAV) ran: node wav2mp3-run.cjs https://koldflux.com excerpt-60s-mono.wav excerpt-tool-mono.mp3 exit=0 | converted excerpt-60s-mono.wav -> excerpt-tool-mono.mp3 480723 bytes in 2.5 s (ffprobe: 1 channel, bit_rate=64065) edge: mono source: the converter keeps 1 channel and writes 64 kbps published: node wav2mp3-run.cjs https://koldflux.com missing.wav x.mp3 (edge: missing file) ran: node wav2mp3-run.cjs https://koldflux.com missing.wav x.mp3 exit=2 | usage: node wav2mp3-run.cjs (in.wav missing or empty) edge: missing input file