From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102203] Using hardware video encoding with amdgpu/vaapi crashes system immediately Date: Thu, 17 Aug 2017 20:23:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0711691500==" 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 3793B6E643 for ; Thu, 17 Aug 2017 20:23:32 +0000 (UTC) In-Reply-To: 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 --===============0711691500== Content-Type: multipart/alternative; boundary="15030014120.B8D13bb.1722"; charset="UTF-8" --15030014120.B8D13bb.1722 Date: Thu, 17 Aug 2017 20:23:32 +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=3D102203 dwagner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from dwagner --- (In reply to Andy Furniss from comment #3) > Does it help if you set the env >=20 > VAAPI_DISABLE_INTERLACE=3D1 Yes! I wonder how "interlace" is still a thing so many years after CRTs bec= ame obsolete, and no interlaced videos were ever involved in my attempts, but whatever this variable does, it changed the hardware encoding experience fo= r me from "crashes all the time" to "does not crash and even produces a proper v= ideo in about 50% of invocations". Weirdly, about half of the times I start the very same ffmpeg command line = for the very same input file, the output video shows mixed up positions of fram= es, as in "not frames 1-2-3-4-5-6 but e.g. 1-4-2-3-5-6 shown in sequence". > and modify the -vf to look like >=20 > -vf 'scale=3D1920:1072,format=3Dnv12|vaapi,hwupload' Works for me as well as my original command line. > 1072 is a strange height to use though it doesn't hurt my setup. At one point in time, I got error messages from ffmpeg that the encoder was incompatible with sizes that are not even multiples of 16 - that's why I introduced this scaling just for testing. But this scaling is not relevant anymore, works the same now with or without it. I think we can close this bug report: While the distorted-frame-sequence-half-the-times symptom is unpleasant, it's quite different from "crashing all the time".=20 And now that I experienced that h.264 hardware encoding on an RX 460 (in 4k) does not even reach realtime speed, it seems to me that I should probably s= tick to "x264 -preset ultrafast" for live streaming anyway. --=20 You are receiving this mail because: You are the assignee for the bug.= --15030014120.B8D13bb.1722 Date: Thu, 17 Aug 2017 20:23:32 +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 dwagner changed bug 10220= 3
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Commen= t # 4 on bug 10220= 3 from dwagner
(In reply to Andy Furniss from comment #3)
> Does it help if you set the env
>=20
> VAAPI_DISABLE_INTERLACE=3D1

Yes! I wonder how "interlace" is still a thing so many years afte=
r CRTs became
obsolete, and no interlaced videos were ever involved in my attempts, but
whatever this variable does, it changed the hardware encoding experience fo=
r me
from "crashes all the time" to "does not crash and even prod=
uces a proper video
in about 50% of invocations".

Weirdly, about half of the times I start the very same ffmpeg command line =
for
the very same input file, the output video shows mixed up positions of fram=
es,
as in "not frames 1-2-3-4-5-6 but e.g. 1-4-2-3-5-6 shown in sequence&q=
uot;.

> and modify the -vf to look like
>=20
> -vf 'scale=3D1920:1072,format=3Dnv12|vaapi,hwupload'

Works for me as well as my original command line.

> 1072 is a strange height to use though it doesn'=
t hurt my setup.

At one point in time, I got error messages from ffmpeg that the encoder was
incompatible with sizes that are not even multiples of 16 - that's why I
introduced this scaling just for testing. But this scaling is not relevant
anymore, works the same now with or without it.

I think we can close this bug report: While the
distorted-frame-sequence-half-the-times symptom is unpleasant, it's quite
different from "crashing all the time".=20

And now that I experienced that h.264 hardware encoding on an RX 460 (in 4k)
does not even reach realtime speed, it seems to me that I should probably s=
tick
to "x264 -preset ultrafast" for live streaming anyway.


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