AMD VAAPI encoding - applying filters introduces garbled line at the bottom
System information
Please post inxi -GSC -xx
output (fenced with triple backticks) OR fill information below manually
inxi -GSC -xx
System: Host: linux Kernel: 5.8.9-14-tkg-cfs x86_64 bits: 64 compiler: N/A Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.1
wm: kwin_x11 dm: startx Distro: Arch Linux
CPU: Info: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP arch: Skylake-S rev: 3 L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 63999
Speed: 3950 MHz min/max: N/A Core speeds (MHz): 1: 3950 2: 4000 3: 4000 4: 4000 5: 3316 6: 4000 7: 3840 8: 3765
Graphics: Device-1: Intel HD Graphics 530 vendor: ASRock driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1912
Device-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:67df
Display: server: X.org 1.20.9 compositor: kwin_x11 driver: amdgpu resolution: <xdpyinfo missing>
OpenGL: renderer: AMD Radeon RX 480 Graphics (POLARIS10 DRM 3.38.0 5.8.9-14-tkg-cfs LLVM 10.0.1)
v: 4.6 Mesa 20.3.0-devel (git-51a6261d38) direct render: Yes
When I run
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD129 -hwaccel_output_format vaapi -ss 15 -i 1080p.mp4 -t 15 -vf 'format=vaapi,scale_vaapi=w=2560:h=1440' -c:v h264_vaapi -global_quality 15 -c:a copy -map 0 1440p.mp4
the result has a garbled line at its bottom:
It's not there when using the Intel GPU instead of Polaris. It also happens with other VAAPI filters, such as deinterlacing. ffmpeg 4.3.1 from Arch repo. This MR does not affect it: thongthai/mesa@bf9f2965