ffmpeg -i input.mp4 -c:a libopus -pix_fmt yuv420p10 -c:v librav1e -qp 50 -speed 3 -movflags +faststart output.mp4try replacing
-c:v librav1e -qp 50 -speed 3 with -c:v libsvtav1 -preset:v 5 -crf 28` if that’s way too slow for you.also
-vf scale=-8:1080 (or 720) before the output file for downscaling if you want