From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 112133] AMD Radeon 5700 / Navi: VAAPI encoding generates garbled output Date: Fri, 25 Oct 2019 10:37:58 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0515748347==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id BE0426E96D for ; Fri, 25 Oct 2019 10:37:58 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0515748347== Content-Type: multipart/alternative; boundary="15719998780.BB76bC.21593" Content-Transfer-Encoding: 7bit --15719998780.BB76bC.21593 Date: Fri, 25 Oct 2019 10:37:58 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D112133 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=3Dfoo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo \ -i -filter_hw_device foo -vf 'format=3Dnv12|vaapi,hwupload' -c= :v hevc_vaapi -b:v 5000k -maxrate 5000k -f matroska -This issue also applies to h264 encoding (replace "hevc_vaapi" with "h264_vaapi" above). HW used: AMD Radeon 5700 XT SW used: linux-amd-staging-drm-next-git-5.4.858569.1c2677f991d3-1-x86_64 mesa-git 1:19.3.0_devel.116641.f11ea226664 libva-utils 2.5.0 ffmpeg 1:4.2.1 This issue sounds a bit like BUG 109538, however #109538 speaks of "garbled line at the bottom" where I get completely garbled output, not just at the bottom. In additon, ffmpeg stalls/crashes sometimes as described in #109538 with: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_enc0 timeout, signaled seq=3D150025, emitted seq=3D150027 [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process ffm= peg pid 228611 thread ffmpeg:cs0 pid 228612 --=20 You are receiving this mail because: You are the assignee for the bug.= --15719998780.BB76bC.21593 Date: Fri, 25 Oct 2019 10:37:58 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 112133
Summary AMD Radeon 5700 / Navi: VAAPI encoding generates garbled outp= ut
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 var=
iable bitrate
results in completely garbled output video on navi/radeon 5700 gpu.

ffmpeg command used:
ffmpeg -init_hw_device vaapi=3Dfoo:/dev/dri/renderD128 -hwaccel vaapi
-hwaccel_output_format vaapi -hwaccel_device foo \
-i <input file> -filter_hw_device foo -vf 'format=3Dnv12|vaapi,hwuplo=
ad' -c:v
hevc_vaapi -b:v 5000k -maxrate 5000k -f matroska <output file>
-This issue also applies to h264 encoding (replace "hevc_vaapi" w=
ith
"h264_vaapi" above).

HW used:
AMD Radeon 5700 XT

SW used:
linux-amd-staging-drm-next-git-5.4.858569.1c2677f991d3-1-x86_64
mesa-git 1:19.3.0_devel.116641.f11ea226664
libva-utils 2.5.0
ffmpeg 1:4.2.1

This issue sounds a bit like BUG 109538, however #109538 speaks=
 of "garbled
line at the bottom" where I get completely garbled output, not just at=
 the
bottom.

In additon, ffmpeg stalls/crashes sometimes as described in #109538 with:
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_enc0 timeout, signaled
seq=3D150025, emitted seq=3D150027
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process ffm=
peg
pid 228611 thread ffmpeg:cs0 pid 228612


You are receiving this mail because:
  • You are the assignee for the bug.
= --15719998780.BB76bC.21593-- --===============0515748347== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0515748347==--