From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104920] Broken hardware video encoding with vaapi/ffmpeg Date: Fri, 02 Feb 2018 20:53:24 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0886432742==" 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 4EF666F0D7 for ; Fri, 2 Feb 2018 20:53:24 +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 --===============0886432742== Content-Type: multipart/alternative; boundary="15176048040.7BcF99fbD.19896" Content-Transfer-Encoding: 7bit --15176048040.7BcF99fbD.19896 Date: Fri, 2 Feb 2018 20:53:24 +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=3D104920 Bug ID: 104920 Summary: Broken hardware video encoding with vaapi/ffmpeg Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: sa@whiz.se Hi, I'm trying to encode video using ffmpeg 3.4.1 with the following command: ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -= i :0 -vf 'format=3Dnv12,hwupload' -c:v h264_vaapi -bf 0 out.mp4 This seems to work, ffmpeg doesn't complain, and I can tell the GPU is acti= ve as the fans turn on. But the video recorded is corrupt and ffplay reports the following errors a bunch of times:=20 [h264 @ 0x7f4ae4003060] decode_slice_header error [h264 @ 0x7f4ae4003060] no frame! [h264 @ 0x7f4ae4003060] non-existing PPS 0 referenced and [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56377e460000] decoding for stream 0 failed [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56377e460000] Could not find codec parameters = for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 1159 kb/s): unspecified pixel format System environment: -- system architecture: 64-bit -- Linux distribution: Debian unstable -- GPU: TONGA -- Model: Asus Strix R9 285 2GB -- Display connector: DVI -- xf86-video-amdgpu: 1.4.0 -- xserver: 1.19.0 -- mesa: 17.3.3 -- drm: 2.4.89 -- kernel: 4.14 -- dri3 --=20 You are receiving this mail because: You are the assignee for the bug.= --15176048040.7BcF99fbD.19896 Date: Fri, 2 Feb 2018 20:53:24 +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 104920
Summary Broken hardware video encoding with vaapi/ffmpeg
Product DRI
Version XOrg git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter sa@whiz.se

Hi,

I'm trying to encode video using ffmpeg 3.4.1 with the following command:

ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -=
i :0
-vf 'format=3Dnv12,hwupload' -c:v h264_vaapi -bf 0 out.mp4

This seems to work, ffmpeg doesn't complain, and I can tell the GPU is acti=
ve
as the fans turn on.

But the video recorded is corrupt and ffplay reports the following errors a
bunch of times:=20

[h264 @ 0x7f4ae4003060] decode_slice_header error
[h264 @ 0x7f4ae4003060] no frame!
[h264 @ 0x7f4ae4003060] non-existing PPS 0 referenced

and

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56377e460000] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56377e460000] Could not find codec paramet=
ers for
stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 1159 kb/s):
unspecified pixel format


System environment:
-- system architecture: 64-bit
-- Linux distribution: Debian unstable
-- GPU: TONGA
-- Model: Asus Strix R9 285 2GB
-- Display connector: DVI
-- xf86-video-amdgpu: 1.4.0
-- xserver: 1.19.0
-- mesa: 17.3.3
-- drm: 2.4.89
-- kernel: 4.14
-- dri3


You are receiving this mail because:
  • You are the assignee for the bug.
= --15176048040.7BcF99fbD.19896-- --===============0886432742== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0886432742==--