Hacker News new | ask | show | jobs
by peutetre 660 days ago
It's always going to be slower than a hardware encoder.

I have an AMD Ryzen 7 7840U laptop which has hardware AV1 encoding. If I use preset 8 with SVT-AV1 on a 1080p encode I get 30 frames per second:

ffmpeg.exe -i "input.mp4" -c:v libsvtav1 -pix_fmt yuv420p10le -crf 40 -preset 8 -g 240 -svtav1-params tune=0 -c:a libopus -b:a 128k av1.mp4

With preset 12 I get 143 fps. With preset 10 I get 84 fps.

If I use the hardware encoder I get anywhere from 15 fps to 589 fps depending on the settings I use. I get 103 fps with this:

ffmpeg.exe -i "input.mp4" -c:v av1_amf -pix_fmt yuv420p -quality high_quality -preencode true -b:v 4M -c:a libopus -b:a 128k av1.mp4

Hardware encoder parameters: https://github.com/GPUOpen-LibrariesAndSDKs/AMF/wiki/AMF%20E...