I found a good SVT-AV1 fork for high quality Anime encodes and made a DRAG&DROP windows batch script for it that includes SSIMULACRA2 scoring.
I also compiled the fssimu2 project for windows otherwise you have to manually convert video frames to PNG and math out the average by hand.
https://github.com/nekotrix/SVT-AV1-Essential/releases/tag/v4.0.1-Essential
https://github.com/gianni-rosato/fssimu2
I also compiled the fssimu2 project for windows otherwise you have to manually convert video frames to PNG and math out the average by hand.
@echo off & setlocal
set "input=%~1" & set "outbase=%~dpn1" & set "stfu=-hide_banner -loglevel fatal"
set "av1base=--lookahead 32 --preset 4 --rc 1 --max-qp 60"
set "psy=--ac-bias 0.5 --enable-dlf 3 --noise-adaptive-filtering 4"
set "bt701=--color-primaries 1 --transfer-characteristics 1 --matrix-coefficients 1"
echo Welcome to the mini Essential SVT-AV1 2 pass drag and drop encoder, SSIMULACRA2 included at the end
:ASK
set /p bitrate="Enter 2 pass kbps bitrate: " && set /a bitrate=bitrate 2>nul || goto ASK
if %bitrate% LSS 1 (goto ASK) else if %bitrate% GTR 10000 goto ASK
echo:
ffmpeg %stfu% -i %input% -map 0:v:0 -pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 - | ^
SvtAv1EncApp-4.0.1-Essential-Windows_Optimized -i - %av1base% --tbr %bitrate% %psy% %bt701% --pass 1 -b temp1pass.ivf
ffmpeg %stfu% -i %input% -map 0:v:0 -pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 - | ^
SvtAv1EncApp-4.0.1-Essential-Windows_Optimized -i - %av1base% --tbr %bitrate% %psy% %bt701% --pass 2 -b temp2pass.ivf
ffmpeg %stfu% -i temp2pass.ivf -c:v copy -an -y "%outbase%_%bitrate%_kbps_2pass_essential-av1.webm"
echo: && echo --- calculating SSIMULACRA2 score of "%outbase%_%bitrate%_kbps_2pass_essential-av1.webm" --- && echo:
ffmpeg %stfu% -i %input% -pix_fmt yuv420p input.y4m && timeout /t 5 /nobreak
ffmpeg %stfu% -i "%outbase%_%bitrate%_kbps_2pass_essential-av1.webm" -pix_fmt yuv420p output.y4m
timeout /t 5 /nobreak && fssimu2 input.y4m output.y4m
del temp1pass.ivf temp2pass.ivf svtav1_2pass.log input.y4m output.y4m && pause
https://github.com/gianni-rosato/fssimu2

