From: bugzilla-daemon@freedesktop.org Subject: [Bug 98278] Corrupted videos VA-API HW encoding radeonsi Date: Sun, 16 Oct 2016 16:28:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1341464686==" 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 978D36E08D for ; Sun, 16 Oct 2016 16:28: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 --===============1341464686== Content-Type: multipart/alternative; boundary="14766353120.e592B9e.18623"; charset="UTF-8" --14766353120.e592B9e.18623 Date: Sun, 16 Oct 2016 16:28: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=3D98278 --- Comment #2 from Christoph Haag --- I'm just a user, so take this with a grain of salt, but I found that radeon with vaapi only works with the nv12 color format and produces something bro= ken like this with i420. The last time I tried it, vaapipostproc format=3Dnv12 did not work, so I ha= d to do the color space conversion on the CPU with videoconvert. Here is a pipeline that last worked for me: gst-launch-1.0 ximagesrc display-name=3D:0 use-damage=3D0 startx=3D0 starty= =3D0 endx=3D1919 endy=3D1079 ! videoconvert ! video/x-raw,framerate=3D60/1,forma= t=3DNV12 ! vaapih264enc ! h264parse ! matroskamux ! filesink location=3Doutput.avi Can't really test right now because it hangs my GPU, but I see it saves one frame that has this vertically doubled image too, with correct colors thoug= h. --=20 You are receiving this mail because: You are the assignee for the bug.= --14766353120.e592B9e.18623 Date: Sun, 16 Oct 2016 16:28: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

Comment= # 2 on bug 98278<= /a> from Christoph Haag
I'm just a user, so take this with a grain of salt, but I foun=
d that radeon
with vaapi only works with the nv12 color format and produces something bro=
ken
like this with i420.

The last time I tried it, vaapipostproc format=3Dnv12 did not work, so I ha=
d to
do the color space conversion on the CPU with videoconvert.

Here is a pipeline that last worked for me:

gst-launch-1.0 ximagesrc display-name=3D:0 use-damage=3D0 startx=3D0 starty=
=3D0
endx=3D1919 endy=3D1079 ! videoconvert ! video/x-raw,framerate=3D60/1,forma=
t=3DNV12 !
vaapih264enc ! h264parse ! matroskamux ! filesink location=3Doutput.avi

Can't really test right now because it hangs my GPU, but I see it saves one
frame that has this vertically doubled image too, with correct colors thoug=
h.


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