https://bugs.freedesktop.org/show_bug.cgi?id=112133
Bug ID: 112133
Summary: AMD Radeon 5700 / Navi: VAAPI encoding generates
garbled output
Product: DRI
Version: DRI git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: not set
Component: DRM/AMDgpu
Assignee: dri-devel@lists.freedesktop.org
Reporter: toscar@gmx.net
Using ffmpeg to encode video to h264/hevc with constant or variable bitrate
results in completely garbled output video on navi/radeon 5700 gpu.
ffmpeg command used:
ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi
-hwaccel_output_format vaapi -hwaccel_device foo \
-i -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v
hevc_vaapi -b:v 5000k -maxrate 5000k -f matroska