AMD VAAPI HEVC encoding results in wrong height
Like #2351 (closed), when I try to encode a video in 1920x1080, I get 1920x1088 instead. It happens to obs-studio as well as ffmpeg:
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.mkv -filter:v "hwdownload,crop=1920:1080:0:0,format=nv12,hwupload" \
-vcodec hevc_vaapi -rc_mode CQP -qp 24 a.mp4
H.264 isn't affected.
It's a Radeon RX 6650 XT card with kernel version 6.8.1 on Arch Linux. It happens with libva-mesa-driver versions starting from 1:24.0.4-1 to 1:24.0.5-1. 1:24.0.3-2 is good to encode but unable to play (probably because of version mismatch with mesa).
Edited by lilydjwg