ffmpeg -i "input.mkv" -vaapi_device /dev/dri/renderD128 -vf 'format=nv12,hwupload' -profile:v main -c:v av1_vaapi -c:a copy -c:s copy -rc_mode CQP -global_quality 85 -v verbose out.mkv
ffmpeg -y -i a.mp4 -c:v libaom-av1 -strict -2 -b:v 3000K -maxrate 6000K -cpu-used 8 -pass 2 -f matroska out.mkv ffmpeg -i input.mp4 -c:v av1 output.av1
ffmpeg -y -i input.mp4 -c:v libaom-av1 -strict -2 -b:v 3000K -maxrate 6000K -cpu-used 8 -pass 1 -f matroska NUL & \ ffmpeg -i input.mp4 -c:v libaom-av1 -strict -2 -b:v 3000K -maxrate 6000K -cpu-used 0 -pass 2 output_AV1.mkv
NOTE: This is extremely slow!
NOTE: AV1 is implemented in libaom and svt-av1.