ffmpeg -i test.mkv -c:v libaom-av1 -pass 1 -cpu-used 4 -row-mt true -threads 8 -lag-in-frames 48 -crf 35 -tiles 1x2 -aq-mode 3 -an -f null /dev/null ffmpeg -i test.mkv -c:v libaom-av1 -pass 2 -cpu-used 4 -row-mt true -threads 8 -lag-in-frames 48 -crf 35 -tiles 1x2 -aq-mode 3 -c:a libopus -vbr on -c:s copy A/test.mkv