
I took the 73 Mbps 4K NLUUG Tears of Steel encode, scaled it to 720p, and used CRF 10 veryslow x264 to simulate 720p BD.
SSIM cheating was disabled in AV1 with tune 0 and variance boost, 720p was chosen to handicap AV1's 128x128 superblocks.
Even when nearly maxing out x264 compression , preset 4 AV1 = ~30% better compression and encodes ~40% faster as well.
I confidently declare that H.264 is now official boomer trash like flickering CRT displays.
ffmpeg -i tearsofsteel_4k.mov ^
-vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2:black" ^
-c:v libx264 -preset veryslow -crf 10 -pix_fmt yuv420p input.mp4
base_av1=ffmpeg -i input.mp4 -c:v libsvtav1 -crf 28 -preset 4 -pix_fmt yuv420p10le -svtav1-params
psy_av1=keyint=5s:lookahead=120:tune=0:enable-variance-boost=1:variance-boost-strength=3:variance-octile=4
frame=17616 fps= 18 Lsize= 212825KiB
bitrate=2375.4kbits/s speed=0.73x elapsed=0:16:45.14
base_h264=ffmpeg -i input.mp4 -c:v libx264 -crf 18 -preset veryslow -pix_fmt yuv420p
frame=17616 fps= 13 Lsize= 304524KiB
bitrate=3399.0kbits/s speed=0.535x elapsed=0:22:51.14
https://ftp.nluug.nl/pub/graphics/blender/demo/movies/ToS/tearsofsteel_4k.mov
I am 90% sure I have fixed my windows batch SSIM AV1 auto-encoder script.
@echo off & setlocal enabledelayedexpansion & set "crf=60" & set "mincrf=20"
set "base_av1=-c:v libsvtav1 -preset 4 -pix_fmt yuv420p10le -svtav1-params"
set "psy_av1=keyint=5s:lookahead=120:tune=0:enable-variance-boost=1:variance-boost-strength=3:variance-octile=4"
set "opus=-c:a libopus -b:a 128k" & set "ffquiet=-hide_banner -loglevel quiet"
echo Weclome to my auto-SSIM AV1 encoder, only input.mp4 accepted, choose desired SSIM:
echo 1= 0.995 (autism quality) & echo 2= 0.990 (very high quality) & echo 3= 0.980 (high quality)
choice /c 123 /m "Enter number option on keyboard: "
if errorlevel 3 set ssim_target=980
if errorlevel 2 set ssim_target=990
if errorlevel 1 set ssim_target=995
echo:
:loop
ffmpeg !ffquiet! -i input.mp4 -crf !crf! !base_av1! !psy_av1! !opus! -y AV1_CRF-!crf!.webm 2>nul
for /f "delims=" %%A in ('ffmpeg -nostdin -r 30 -i AV1_CRF-!crf!.webm -nostdin -r 30 -i input.mp4 ^
-filter_complex "[0:v]format=yuv420p10le[v0];[1:v]format=yuv420p10le[v1];[v0][v1]ssim" -f null - 2^>^&1 ^| findstr "All:"') do set "a=%%A"
set "a=!a:*All:0.=!" & set "ssim=!a:~0,3!" & echo SSIM: 0.!ssim! @ CRF !crf! & echo:
if !ssim! lss !ssim_target! (if !crf! gtr !mincrf! (del /s /q AV1_CRF-!crf!.webm >nul 2>&1 & set /a crf-=2 & goto loop) )
:end
for %%Y in ("input.mp4") do set /a kb_mp4=(%%~zY+1023)/1024 & for %%Y in ("AV1_CRF-!crf!.webm") do set /a kb_webm=(%%~zY+1023)/1024
set /a saved_pct=(kb_mp4-kb_webm)*100/kb_mp4 & echo MP4= !kb_mp4! KB & echo AV1= !kb_webm! KB
echo **** !saved_pct!%% filesize reduction achieved with AV1 ****
pause
Modern wageslavery is a fucking tragedy
Spending decades working companies that only see you as a resource, never achieving anything of significance, being around people who will backstab you the first chance they get
Last time I had time off I even felt like I smelled better because I wasn't stressed all the time
Post movie or TV scenes you like
Webp Anime Reaction images thread #2. Jahy-sama edition.
Archive of #1 (Oreimo S2): https://files.catbox.moe/vvt33l.zip
Workflow:









