== versions ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers V..... libsvtav1 SVT-AV1(Scalable Video Technology for AV1) encoder (codec av1) V....D libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264) V....D libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264) V....D libvpx-vp9 libvpx VP9 (codec vp9) A....D libopus libopus Opus (codec opus) Python 3.12.3 == sources stream|codec_name=theora|width=1920|height=1080|r_frame_rate=25/1 format|duration=6.400000|size=12085009 stream|codec_name=vp8|width=1280|height=720|r_frame_rate=30000/1001 stream|codec_name=vorbis|r_frame_rate=0/0 format|duration=35.470000|size=94277393 == T1 H.264 vs VP9 vs AV1 at matched SSIM (compare.py) ### Clip A waves 1080p25 (busy water) CONTROL source vs itself: SSIM 1.000000 (must be 1.000000): PASS CONTROL x264 CRF 51 SSIM 0.8626 must be below CRF 23 SSIM 0.9883: PASS x264 reference: 160 frames, 6.400 s codec | CRF | bytes | kbps | SSIM | encode seconds | size vs x264 CRF 23 x264 | 23 | 6,329,317 | 7912 | 0.9883 | 4.3 | reference sweep vp9 | 26 | 8,170,137 | 10213 | 0.9915 | 11.8 | +29.1% sweep vp9 | 27 | 7,710,611 | 9638 | 0.9910 | 11.7 | +21.8% sweep vp9 | 28 | 7,307,649 | 9135 | 0.9906 | 11.8 | +15.5% sweep vp9 | 29 | 6,917,382 | 8647 | 0.9901 | 11.7 | +9.3% sweep vp9 | 30 | 6,574,666 | 8218 | 0.9896 | 11.0 | +3.9% sweep vp9 | 31 | 6,113,806 | 7642 | 0.9890 | 10.8 | -3.4% sweep vp9 | 32 | 5,710,947 | 7139 | 0.9883 | 10.5 | -9.8% <- chosen (largest CRF with SSIM >= x264) sweep vp9 | 33 | 5,386,393 | 6733 | 0.9877 | 10.7 | -14.9% sweep vp9 | 34 | 5,066,185 | 6333 | 0.9871 | 10.3 | -20.0% sweep vp9 | 35 | 4,669,570 | 5837 | 0.9862 | 10.3 | -26.2% sweep vp9 | 36 | 4,347,847 | 5435 | 0.9853 | 10.1 | -31.3% sweep vp9 | 37 | 4,042,661 | 5053 | 0.9845 | 9.8 | -36.1% sweep vp9 | 38 | 3,731,513 | 4664 | 0.9835 | 9.6 | -41.0% sweep vp9 | 39 | 3,438,248 | 4298 | 0.9825 | 9.5 | -45.7% sweep vp9 | 40 | 3,174,238 | 3968 | 0.9814 | 9.3 | -49.8% sweep vp9 | 41 | 2,906,942 | 3634 | 0.9802 | 9.0 | -54.1% sweep vp9 | 42 | 2,663,595 | 3329 | 0.9790 | 9.1 | -57.9% sweep vp9 | 43 | 2,477,529 | 3097 | 0.9779 | 8.8 | -60.9% vp9 | 32 | 5,710,947 | 7139 | 0.9883 | 10.5 | -9.8% sweep av1 | 26 | 6,514,109 | 8143 | 0.9908 | 31.8 | +2.9% sweep av1 | 28 | 5,651,145 | 7064 | 0.9897 | 31.0 | -10.7% sweep av1 | 30 | 4,891,230 | 6114 | 0.9886 | 29.9 | -22.7% <- chosen (largest CRF with SSIM >= x264) sweep av1 | 32 | 4,097,549 | 5122 | 0.9872 | 28.2 | -35.3% sweep av1 | 34 | 3,484,536 | 4356 | 0.9857 | 27.1 | -44.9% sweep av1 | 36 | 2,889,432 | 3612 | 0.9840 | 25.3 | -54.3% sweep av1 | 38 | 2,417,150 | 3021 | 0.9822 | 23.9 | -61.8% sweep av1 | 40 | 2,022,422 | 2528 | 0.9803 | 22.6 | -68.0% sweep av1 | 42 | 1,687,780 | 2110 | 0.9782 | 21.5 | -73.3% sweep av1 | 44 | 1,407,220 | 1759 | 0.9760 | 20.4 | -77.8% sweep av1 | 46 | 1,169,304 | 1462 | 0.9737 | 19.9 | -81.5% sweep av1 | 48 | 981,152 | 1226 | 0.9714 | 18.8 | -84.5% sweep av1 | 50 | 815,348 | 1019 | 0.9689 | 18.1 | -87.1% av1 | 30 | 4,891,230 | 6114 | 0.9886 | 29.9 | -22.7% ### Clip B Wood Lake 720p30 (calm landscape) CONTROL source vs itself: SSIM 1.000000 (must be 1.000000): PASS CONTROL x264 CRF 51 SSIM 0.6789 must be below CRF 23 SSIM 0.9778: PASS x264 reference: 300 frames, 10.010 s codec | CRF | bytes | kbps | SSIM | encode seconds | size vs x264 CRF 23 x264 | 23 | 6,326,977 | 5057 | 0.9778 | 3.9 | reference sweep vp9 | 26 | 10,288,730 | 8223 | 0.9846 | 19.0 | +62.6% sweep vp9 | 27 | 9,655,897 | 7717 | 0.9837 | 18.4 | +52.6% sweep vp9 | 28 | 9,099,558 | 7272 | 0.9828 | 18.2 | +43.8% sweep vp9 | 29 | 8,600,759 | 6874 | 0.9819 | 18.2 | +35.9% sweep vp9 | 30 | 8,176,942 | 6535 | 0.9810 | 17.7 | +29.2% sweep vp9 | 31 | 7,622,098 | 6092 | 0.9797 | 17.8 | +20.5% sweep vp9 | 32 | 7,153,368 | 5717 | 0.9785 | 17.2 | +13.1% <- chosen (largest CRF with SSIM >= x264) sweep vp9 | 33 | 6,766,330 | 5408 | 0.9773 | 17.1 | +6.9% sweep vp9 | 34 | 6,399,112 | 5114 | 0.9761 | 16.6 | +1.1% sweep vp9 | 35 | 5,960,466 | 4764 | 0.9744 | 16.3 | -5.8% sweep vp9 | 36 | 5,605,224 | 4480 | 0.9729 | 16.3 | -11.4% sweep vp9 | 37 | 5,275,752 | 4216 | 0.9714 | 16.6 | -16.6% sweep vp9 | 38 | 4,935,846 | 3945 | 0.9697 | 15.8 | -22.0% sweep vp9 | 39 | 4,615,418 | 3689 | 0.9678 | 15.7 | -27.1% sweep vp9 | 40 | 4,326,730 | 3458 | 0.9658 | 15.3 | -31.6% sweep vp9 | 41 | 4,035,414 | 3225 | 0.9637 | 14.8 | -36.2% sweep vp9 | 42 | 3,767,695 | 3011 | 0.9614 | 14.9 | -40.5% sweep vp9 | 43 | 3,556,371 | 2842 | 0.9592 | 14.7 | -43.8% vp9 | 32 | 7,153,368 | 5717 | 0.9785 | 17.2 | +13.1% sweep av1 | 26 | 7,869,869 | 6290 | 0.9860 | 25.8 | +24.4% sweep av1 | 28 | 6,979,811 | 5578 | 0.9846 | 25.5 | +10.3% sweep av1 | 30 | 6,195,979 | 4952 | 0.9831 | 25.2 | -2.1% sweep av1 | 32 | 5,454,469 | 4359 | 0.9813 | 25.3 | -13.8% sweep av1 | 34 | 4,861,323 | 3885 | 0.9795 | 24.7 | -23.2% <- chosen (largest CRF with SSIM >= x264) sweep av1 | 36 | 4,253,952 | 3400 | 0.9772 | 25.0 | -32.8% sweep av1 | 38 | 3,756,730 | 3002 | 0.9749 | 24.3 | -40.6% sweep av1 | 40 | 3,306,983 | 2643 | 0.9723 | 23.7 | -47.7% sweep av1 | 42 | 2,902,593 | 2320 | 0.9693 | 22.8 | -54.1% sweep av1 | 44 | 2,541,129 | 2031 | 0.9659 | 22.0 | -59.8% sweep av1 | 46 | 2,215,532 | 1771 | 0.9620 | 21.6 | -65.0% sweep av1 | 48 | 1,932,139 | 1544 | 0.9578 | 20.3 | -69.5% sweep av1 | 50 | 1,669,670 | 1334 | 0.9530 | 19.5 | -73.6% av1 | 34 | 4,861,323 | 3885 | 0.9795 | 24.7 | -23.2% clip B settings used for the finished files: VP9 CRF 32, AV1 CRF 34 (the matched-SSIM choices above) == T2 containers are not codecs: same streams, different wrapper (clip B, 10 s) Svt[info]: ------------------------------------------- Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v1.7.0 Svt[info]: SVT [build] : GCC 13.2.0 64 bit Svt[info]: ------------------------------------------- Svt[info]: Number of logical cores available: 6 Svt[info]: Number of PPCS 107 Svt[info]: [asm level on system : up to avx2] Svt[info]: [asm level selected : up to avx2] Svt[info]: ------------------------------------------- Svt[info]: SVT [config]: main profile tier (auto) level (auto) Svt[info]: SVT [config]: width / height / fps numerator / fps denominator : 1280 / 720 / 30000 / 1001 Svt[info]: SVT [config]: bit-depth / color format : 8 / YUV420 Svt[info]: SVT [config]: preset / tune / pred struct : 6 / PSNR / random access Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type : 161 / 32 / key frame Svt[info]: SVT [config]: BRC mode / rate factor : CRF / 34 Svt[info]: ------------------------------------------- stream copy h264-aac.mp4 -> out.mkv: exit code 0; result streams: h264 aac stream copy h264-aac.mp4 -> out.mov: exit code 0; result streams: h264 aac stream copy h264-aac.mp4 -> out.webm: exit code 234; [webm @ 0x5ac11ffc43c0] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. [out#0/webm @ 0x5ac11ff7f300] Could n out.webm: End of file result streams: stream copy vp9-opus.webm -> out.mp4: exit code 0; result streams: vp9 opus stream copy vp9-opus.webm -> out.mkv: exit code 0; result streams: vp9 opus stream copy av1-opus.webm -> out.mp4: exit code 0; result streams: av1 opus == T3 file sizes of the three finished 10 s files (matched-SSIM video + 128 kbps audio) 4983365 av1-opus.webm 6496596 h264-aac.mp4 7275400 vp9-opus.webm h264-aac.mp4: h264 aac vp9-opus.webm: vp9 opus av1-opus.webm: av1 opus vp9-in-mp4.mp4: vp9 opus == T4 playback in Playwright's open-source Chromium and Firefox builds (browser-run.cjs) local file server (own, with Range support) on port 18765, pid 2174847; port check: 200 for blank.html, 206 for a 100 byte range of vp9-opus.webm (206 expected) ## Chromium 153.0.8010.12 (Playwright build, Linux) canPlayType video/mp4; codecs="avc1.640028, mp4a.40.2" -> probably canPlayType video/webm; codecs="vp8, opus" -> probably canPlayType video/webm; codecs="vp9, opus" -> probably canPlayType video/webm; codecs="av01.0.05M.08, opus" -> probably canPlayType video/mp4; codecs="vp09.00.10.08, opus" -> probably canPlayType video/webm; codecs="avc1.640028, opus" -> no play h264-aac.mp4 -> PLAYS currentTime=0.70 1280x720 play vp9-opus.webm -> PLAYS currentTime=0.74 1280x720 play av1-opus.webm -> PLAYS currentTime=0.71 1280x720 play vp9-in-mp4.mp4 -> PLAYS currentTime=0.73 1280x720 ## Firefox 155.0 (Playwright build, Linux) canPlayType video/mp4; codecs="avc1.640028, mp4a.40.2" -> probably canPlayType video/webm; codecs="vp8, opus" -> probably canPlayType video/webm; codecs="vp9, opus" -> probably canPlayType video/webm; codecs="av01.0.05M.08, opus" -> probably canPlayType video/mp4; codecs="vp09.00.10.08, opus" -> probably canPlayType video/webm; codecs="avc1.640028, opus" -> no play h264-aac.mp4 -> PLAYS currentTime=0.56 1280x720 play vp9-opus.webm -> PLAYS currentTime=0.58 1280x720 play av1-opus.webm -> PLAYS currentTime=0.55 1280x720 play vp9-in-mp4.mp4 -> PLAYS currentTime=0.58 1280x720 == T5 the live Koldflux MP4 to WebM converter on a 4 s H.264/AAC excerpt (convert-run.cjs) converter finished in 35.8 s; suggested filename converted.webm stream|codec_name=vp8|width=1280|height=720 stream|codec_name=opus format|duration=4.170000|size=360469 SSIM of the converter output against its MP4 input: 0.8593 CONTROL MP4 against itself: 1.000000 sizes: B4.mp4 2656960 bytes, converter WebM 360469 bytes same 4 s with our VP9 command (libvpx-vp9 -crf 33 -b:v 0 -c:a libopus -b:a 128k): SSIM of our VP9 output against the same MP4 input: 0.942118, size 2556884 bytes == T6 derived numbers from this log (post.py) Clip A waves 1080p25 (busy water) x264 CRF 23: 6,329,317 bytes, SSIM 0.9883, encode 4.3 s VP9 CRF 32: 5,710,947 bytes, SSIM 0.9883: -9.8% size against x264; encode 10.5 s = 2.4x the x264 time AV1 CRF 30: 4,891,230 bytes, SSIM 0.9886: -22.7% size against x264; encode 29.9 s = 7.0x the x264 time Clip B Wood Lake 720p30 (calm landscape) x264 CRF 23: 6,326,977 bytes, SSIM 0.9778, encode 3.9 s VP9 CRF 32: 7,153,368 bytes, SSIM 0.9785: +13.1% size against x264; encode 17.2 s = 4.4x the x264 time AV1 CRF 34: 4,861,323 bytes, SSIM 0.9795: -23.2% size against x264; encode 24.7 s = 6.3x the x264 time Finished 10 s files of clip B with 128 kbps audio: av1-opus.webm: 4,983,365 bytes (-23.3% against the MP4) h264-aac.mp4: 6,496,596 bytes (+0.0% against the MP4) vp9-opus.webm: 7,275,400 bytes (+12.0% against the MP4) Koldflux converter output 360,469 bytes = 13.6% of the 2,656,960 byte MP4 input; our VP9 CRF 33 output 2,556,884 bytes = 96.2% of the input Converter video+audio rate: 692 kbps over the 4.17 s file done