# commands.log: video-podcast-gb-per-hour, 2026-12-01 (server: Ubuntu 24.04, ffmpeg version 6.1.1-3ubuntu5, Python 3) # Each published command as run, its exit code and the edge inputs it was also tried on. Scripts sit next to this file. # export.mp4 = c1080-yt8000-a384.mp4 (60 s, 1080p30, 8000 kbps two-pass video + 384 kbps AAC stereo). # episode.mov = a 60 s high-quality H.264 master cut from the CC0 interview clip. # export-spotify.mp4 = c1080-sp25000cbr-a128.mp4 re-made with test-run.sh for this log: one-pass CBR is not byte-identical # between runs (188,243,742 bytes here, 188,382,401 in test-results.txt, 0.07% apart). The two-pass files are identical. published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "episode.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "episode.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=0 | [libx264 @ 0x62f1a2ba1380] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 36.3% 2.9% 0.5% direct: 2.4% skip:57.3% L0:43.2% L1:42.2% BI:14.5% | [libx264 @ 0x62f1a2ba1380] 8x8 transform intra:69.9% inter:82.6% | [libx264 @ 0x62f1a2ba1380] coded y,uvDC,uvAC intra: 39.0% 36.5% 22.8% inter: 14.0% 11.3% 0.5% | [libx264 @ 0x62f1a2ba1380] i16 v,h,dc,p: 38% 41% 10% 11% | [libx264 @ 0x62f1a2ba1380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 21% 29% 1% 2% 3% 2% 2% 2% | [libx264 @ 0x62f1a2ba1380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 42% 7% 2% 3% 3% 3% 2% 2% | [libx264 @ 0x62f1a2ba1380] i8c dc,h,v,p: 59% 19% 20% 3% | [libx264 @ 0x62f1a2ba1380] Weighted P-Frames: Y:1.1% UV:0.0% | [libx264 @ 0x62f1a2ba1380] ref P L0: 65.3% 12.6% 15.8% 6.3% 0.0% | [libx264 @ 0x62f1a2ba1380] ref B L0: 80.3% 17.3% 2.4% | [libx264 @ 0x62f1a2ba1380] kb/s:7994.79 | [aac @ 0x62f1a2bc8780] Qavg: 64673.449 check: export-new.mp4: 62,268,836 bytes in 60.0 s = 8,301 kbps, 62.3 MB/min, 3.74 GB/h check: 60 min episode: 3.74 GB (3.48 GB as Windows shows it) check: YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that check: Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit output: profile=High|codec_type=video|width=1920|height=1080|pix_fmt=yuv420p|r_frame_rate=30/1|bit_rate=7994890 output: profile=LC|codec_type=audio|channels=2|r_frame_rate=0/0|bit_rate=298904 published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "nothere.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "nothere.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=254 | configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared | libavutil 58. 29.100 / 58. 29.100 | libavcodec 60. 31.102 / 60. 31.102 | libavformat 60. 16.100 / 60. 16.100 | libavdevice 60. 3.100 / 60. 3.100 | libavfilter 9. 12.100 / 9. 12.100 | libswscale 7. 5.100 / 7. 5.100 | libswresample 4. 12.100 / 4. 12.100 | libpostproc 57. 3.100 / 57. 3.100 | [in#0 @ 0x5927dc84aec0] Error opening input: No such file or directory | Error opening input file nothere.mov. | Error opening input files: No such file or directory edge: missing input: ffmpeg stops with exit 254 (its code for an input it cannot open) and makes no file (no export-new.mp4 made) published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "épisode 12.mp4" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "épisode 12.mp4" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=0 | [libx264 @ 0x5ffc393e4640] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 36.2% 3.2% 0.6% direct: 2.3% skip:57.3% L0:46.6% L1:40.6% BI:12.8% | [libx264 @ 0x5ffc393e4640] 8x8 transform intra:70.8% inter:82.5% | [libx264 @ 0x5ffc393e4640] coded y,uvDC,uvAC intra: 38.0% 35.3% 22.5% inter: 12.9% 8.9% 0.3% | [libx264 @ 0x5ffc393e4640] i16 v,h,dc,p: 39% 40% 10% 11% | [libx264 @ 0x5ffc393e4640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 22% 29% 1% 2% 3% 2% 2% 2% | [libx264 @ 0x5ffc393e4640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 42% 7% 2% 3% 3% 3% 2% 2% | [libx264 @ 0x5ffc393e4640] i8c dc,h,v,p: 59% 19% 20% 2% | [libx264 @ 0x5ffc393e4640] Weighted P-Frames: Y:1.2% UV:0.0% | [libx264 @ 0x5ffc393e4640] ref P L0: 65.8% 12.9% 15.0% 6.2% 0.0% | [libx264 @ 0x5ffc393e4640] ref B L0: 79.7% 17.9% 2.4% | [libx264 @ 0x5ffc393e4640] kb/s:7985.23 | [aac @ 0x5ffc394c9a40] Qavg: 64494.766 edge: input name with a space and é published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "master-4k50.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "master-4k50.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=0 | [libx264 @ 0x64a09302e180] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 17.6% 1.7% 0.3% direct: 0.4% skip:80.0% L0:37.8% L1:56.4% BI: 5.8% | [libx264 @ 0x64a09302e180] 8x8 transform intra:66.1% inter:73.9% | [libx264 @ 0x64a09302e180] coded y,uvDC,uvAC intra: 70.9% 79.3% 70.8% inter: 5.9% 5.1% 0.2% | [libx264 @ 0x64a09302e180] i16 v,h,dc,p: 61% 17% 12% 11% | [libx264 @ 0x64a09302e180] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 20% 15% 4% 5% 6% 5% 5% 6% | [libx264 @ 0x64a09302e180] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 18% 8% 5% 7% 8% 6% 6% 5% | [libx264 @ 0x64a09302e180] i8c dc,h,v,p: 45% 18% 29% 7% | [libx264 @ 0x64a09302e180] Weighted P-Frames: Y:0.0% UV:0.0% | [libx264 @ 0x64a09302e180] ref P L0: 75.7% 9.8% 11.1% 3.4% | [libx264 @ 0x64a09302e180] ref B L0: 83.1% 15.4% 1.5% | [libx264 @ 0x64a09302e180] kb/s:8010.58 | [aac @ 0x64a09314fb80] Qavg: 64529.039 edge: 4K 50 fps master: scaled to 1920x1080, frame rate kept (50 fps wants 12000k, not 8000k) output: profile=High|codec_type=video|width=1920|height=1080|pix_fmt=yuv420p|r_frame_rate=50/1|bit_rate=8010877 output: profile=LC|codec_type=audio|channels=2|r_frame_rate=0/0|bit_rate=286259 published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "master-prores.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "master-prores.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=0 | [libx264 @ 0x55b6bc08fec0] mb B I16..4: 0.2% 0.3% 0.0% B16..8: 34.0% 2.5% 0.5% direct: 2.3% skip:60.2% L0:42.4% L1:40.8% BI:16.8% | [libx264 @ 0x55b6bc08fec0] 8x8 transform intra:71.5% inter:81.9% | [libx264 @ 0x55b6bc08fec0] coded y,uvDC,uvAC intra: 37.3% 35.3% 20.6% inter: 14.9% 10.2% 0.4% | [libx264 @ 0x55b6bc08fec0] i16 v,h,dc,p: 37% 40% 9% 13% | [libx264 @ 0x55b6bc08fec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 22% 31% 2% 2% 2% 2% 2% 2% | [libx264 @ 0x55b6bc08fec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 44% 7% 2% 3% 2% 3% 2% 2% | [libx264 @ 0x55b6bc08fec0] i8c dc,h,v,p: 58% 20% 19% 2% | [libx264 @ 0x55b6bc08fec0] Weighted P-Frames: Y:1.8% UV:0.0% | [libx264 @ 0x55b6bc08fec0] ref P L0: 64.6% 13.8% 16.2% 5.3% 0.1% | [libx264 @ 0x55b6bc08fec0] ref B L0: 81.5% 16.3% 2.1% | [libx264 @ 0x55b6bc08fec0] kb/s:7998.43 | [aac @ 0x55b6bc0afe80] Qavg: 63517.359 edge: ProRes 422 10-bit master with two audio tracks: 8-bit 4:2:0 High profile, only the first audio track kept output: profile=High|codec_type=video|width=1920|height=1080|pix_fmt=yuv420p|r_frame_rate=30/1|bit_rate=7998724 output: profile=LC|codec_type=audio|channels=2|r_frame_rate=0/0|bit_rate=309992 published: ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i episode.mov -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 ran: ffmpeg -y -i "master-mono.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 1 -an -f null - && ffmpeg -y -i "master-mono.mov" -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset medium -profile:v high -bf 2 -g 15 -flags +cgop -b:v 8000k -pass 2 -c:a aac -b:a 384k -ac 2 -movflags +faststart export-new.mp4 exit=0 | [libx264 @ 0x5caa12935b80] mb B I16..4: 0.3% 0.4% 0.0% B16..8: 36.1% 2.9% 0.5% direct: 2.2% skip:57.5% L0:42.9% L1:42.5% BI:14.7% | [libx264 @ 0x5caa12935b80] 8x8 transform intra:68.1% inter:81.1% | [libx264 @ 0x5caa12935b80] coded y,uvDC,uvAC intra: 37.6% 37.1% 21.8% inter: 14.7% 11.6% 0.4% | [libx264 @ 0x5caa12935b80] i16 v,h,dc,p: 38% 41% 11% 10% | [libx264 @ 0x5caa12935b80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 22% 31% 1% 2% 2% 2% 2% 2% | [libx264 @ 0x5caa12935b80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 43% 7% 2% 3% 3% 3% 2% 2% | [libx264 @ 0x5caa12935b80] i8c dc,h,v,p: 58% 20% 20% 2% | [libx264 @ 0x5caa12935b80] Weighted P-Frames: Y:1.1% UV:0.0% | [libx264 @ 0x5caa12935b80] ref P L0: 67.7% 13.2% 14.1% 5.0% 0.1% | [libx264 @ 0x5caa12935b80] ref B L0: 81.7% 16.1% 2.3% | [libx264 @ 0x5caa12935b80] kb/s:7984.71 | [aac @ 0x5caa1295f200] Qavg: 65352.180 edge: mono master: -ac 2 makes it stereo; from a mono source AAC delivered far less than 384 kbps output: profile=High|codec_type=video|width=1920|height=1080|pix_fmt=yuv420p|r_frame_rate=30/1|bit_rate=7985002 output: profile=LC|codec_type=audio|channels=2|r_frame_rate=0/0|bit_rate=175151 published: ffprobe -v error -show_entries format=duration,size -of default=nw=1 export.mp4 ran: ffprobe -v error -show_entries format=duration,size -of default=nw=1 "export.mp4" exit=0 | duration=60.000000 | size=62308913 published: ffprobe -v error -show_entries format=duration,size -of default=nw=1 export.mp4 ran: ffprobe -v error -show_entries format=duration,size -of default=nw=1 "épisode 12.mp4" exit=0 | duration=60.000000 | size=62308913 edge: file name with a space and é published: ffprobe -v error -show_entries format=duration,size -of default=nw=1 export.mp4 ran: ffprobe -v error -show_entries format=duration,size -of default=nw=1 "nothere.mp4" exit=1 | nothere.mp4: No such file or directory edge: missing file: exit 1 published: ffprobe -v error -show_entries format=duration,size -of default=nw=1 export.mp4 ran: ffprobe -v error -show_entries format=duration,size -of default=nw=1 "empty.mp4" exit=1 | [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5e52b784b700] moov atom not found | empty.mp4: Invalid data found when processing input edge: empty file: exit 1 published: ffprobe -v error -show_entries format=duration,size -of default=nw=1 export.mp4 ran: ffprobe -v error -show_entries format=duration,size -of default=nw=1 "truncated.mp4" exit=0 | duration=60.000000 | size=2000000 edge: copy truncated to 2 MB: exit 0, still prints the full duration from the header (the size gives it away) published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "export.mp4" exit=0 | export.mp4: 62,308,913 bytes in 60.0 s = 8,308 kbps, 62.3 MB/min, 3.74 GB/h | 75 min episode: 4.67 GB (4.35 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "export-4k.mp4" exit=0 | export-4k.mp4: 339,649,358 bytes in 60.0 s = 45,287 kbps, 339.6 MB/min, 20.38 GB/h | 75 min episode: 25.47 GB (23.72 GB as Windows shows it) | YouTube 2160p at 25 fps: recommended about 45,384 kbps with stereo audio (top of its 4K range); your file is 100% of that | Spotify: over the 10 GB recommendation, still accepted up to 60 GB; YouTube: under the 256 GB limit edge: 4K export at 45000 kbps published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "export-4k-35.mp4" exit=0 | export-4k-35.mp4: 264,687,530 bytes in 60.0 s = 35,292 kbps, 264.7 MB/min, 15.88 GB/h | 75 min episode: 19.85 GB (18.49 GB as Windows shows it) | YouTube 2160p at 25 fps: recommended about 45,384 kbps with stereo audio (top of its 4K range); your file is 78% of that | Spotify: over the 10 GB recommendation, still accepted up to 60 GB; YouTube: under the 256 GB limit edge: 4K export at 35000 kbps: compared with the top of YouTube's 4K range (45,384), so about 78% published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "vertical.mp4" exit=0 | vertical.mp4: 62,107,459 bytes in 60.0 s = 8,281 kbps, 62.1 MB/min, 3.73 GB/h | 75 min episode: 4.66 GB (4.34 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit edge: vertical 1080x1920 export: the shorter side picks the 1080p row published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "export-spotify.mp4" exit=0 | export-spotify.mp4: 188,243,742 bytes in 60.0 s = 25,099 kbps, 188.2 MB/min, 11.29 GB/h | 75 min episode: 14.12 GB (13.15 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 299% of that | Spotify: over the 10 GB recommendation, still accepted up to 60 GB; YouTube: under the 256 GB limit edge: Spotify-style 25 Mbit/s CBR export published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "épisode 12.mp4" exit=0 | épisode 12.mp4: 62,308,913 bytes in 60.0 s = 8,308 kbps, 62.3 MB/min, 3.74 GB/h | 75 min episode: 4.67 GB (4.35 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit edge: file name with a space and é published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "nothere.mp4" exit=1 | nothere.mp4: missing or empty edge: missing file: reported, exit 1 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "empty.mp4" exit=1 | empty.mp4: missing or empty edge: empty file: reported, exit 1 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "truncated.mp4" exit=1 | truncated.mp4: truncated or incomplete copy (2,000,000 bytes, the header describes about 62,244,082); measure the original export edge: copy truncated to 2 MB: size far below what the header describes, reported, exit 1 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "truncated.mkv" exit=1 | truncated.mkv: truncated or incomplete copy (the header says 60.0 s, data ends at 2.0 s); measure the original export edge: MKV copy truncated to 2 MB (MKV has no per-stream bitrate): data ends long before the stated length, reported, exit 1 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "export.mkv" exit=0 | export.mkv: 62,283,568 bytes in 60.0 s = 8,302 kbps, 62.3 MB/min, 3.74 GB/h | 75 min episode: 4.67 GB (4.35 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit edge: MKV remux of the full export: measured like the MP4 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "short.mp4" exit=0 | short.mp4: 20,762,901 bytes in 20.0 s = 8,305 kbps, 62.3 MB/min, 3.74 GB/h | 75 min episode: 4.67 GB (4.35 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit | note: only 20.0 s; a short stretch may not be typical of the whole episode, we suggest 1-5 minutes edge: separate 20 s two-pass export at the same settings: the same GB per hour as 60 s, with a note published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "slice.mp4" exit=0 | slice.mp4: 21,841,672 bytes in 20.1 s = 8,708 kbps, 65.3 MB/min, 3.92 GB/h | 75 min episode: 4.90 GB (4.56 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 104% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit | note: only 20.1 s; a short stretch may not be typical of the whole episode, we suggest 1-5 minutes edge: 20 s slice cut with -c copy out of the 60 s export: ends at a keyframe, reads 4.8% high published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 "audio-only.m4a" exit=0 | audio-only.m4a: 2,301,021 bytes in 60.0 s = 307 kbps, 2.3 MB/min, 0.14 GB/h | 75 min episode: 0.17 GB (0.16 GB as Windows shows it) | no video stream: audio-only file, platform video targets skipped | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit edge: audio-only file: platform video targets skipped published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 75 $(cat list.txt) exit=0 | export.mp4: 62,308,913 bytes in 60.0 s = 8,308 kbps, 62.3 MB/min, 3.74 GB/h | 75 min episode: 4.67 GB (4.35 GB as Windows shows it) | YouTube 1080p at 30 fps: recommended about 8,384 kbps with stereo audio; your file is 99% of that | Spotify: under the 10 GB recommendation; YouTube: under the 256 GB limit edge: file name read from a list saved with Windows (CRLF) line ends: the carriage return is stripped published: python3 episode-size.py --minutes 75 export.mp4 ran: env PATH=/nonexistent /usr/bin/python3 episode-size.py export.mp4 exit=1 | ffprobe not found: install FFmpeg (it includes ffprobe) and make sure ffprobe is on your PATH edge: ffprobe not installed (not on PATH): clear message, exit 1 published: python3 episode-size.py --minutes 75 export.mp4 ran: python3 episode-size.py --minutes 0 export.mp4 exit=1 | --minutes must be more than 0 edge: --minutes 0: refused with a message, exit 1