ffmpeg -i "in.h264.mkv" -vaapi_device /dev/dri/renderD128 -vf 'format=nv12,hwupload,scale_vaapi=w=1920:h=1080' -map 0:v -metadata:s:v:0 language=eng -map 0:a -metadata:s:a:0 language=eng -map 0:s -metadata:s:s:0 language=eng -profile:v main -c:v av1_vaapi -c:a copy -c:s copy -profile:v main -rc_mode CQP -global_quality 70 -v verbose "out.1080p.av1.mkv"