VAAPI: AV1 encoded files include padding at bottom/right
Trying to encode any input with dimensions not aligned to 64 width x 16 height px will result in additional black padding at bottom/right in the resulting encoded video. The output video dimensions will not be the same as requested, but instead including the padding.
example: 2580x1080 input results in 2642x1082 output with black borders.
mesa-git as of today (4181e144), ffmpeg with https://github.com/intel-media-ci/ffmpeg/pull/648
Linux 6.3.7-zen1-1-zen, RX 7900XTX
The same issue happens with HEVC, but in this case ffmpeg is internally aligning the dimensions and setting the crop flag conformance_window_flag
.
It works correctly with H264 because both ffmpeg and radeonsi aligns to 16px.