From: bugzilla-daemon@freedesktop.org Subject: [Bug 98278] Corrupted videos VA-API HW encoding radeonsi Date: Sun, 16 Oct 2016 23:26:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0837407997==" 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 C40008905E for ; Sun, 16 Oct 2016 23:26:17 +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 --===============0837407997== Content-Type: multipart/alternative; boundary="14766603771.Bd4e.16142"; charset="UTF-8" --14766603771.Bd4e.16142 Date: Sun, 16 Oct 2016 23:26:17 +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 #11 from Andy Furniss --- (In reply to Tom from comment #10) > Thank you Andy for explanation. After setting env var > VAAPI_DISABLE_INTERLACE video looks correctly. You're right about video > format it should be mkv. I'll experiment more with this and I'll try to g= et > smoother motion in videos. In metadata I can see that videos are 60 fps b= ut > for my eyes they look like 30 fps. Maybe X11 frames are not captured > efficiently. Thank you again for help with resolving it. The CPU X11 grabbing and NV12 conversion are quite expensive and single threaded. On my old Phenom II x4 3.4GHz CPUs forced to perf (cpufreq) I get about 69 = fps testing like - gst-launch-1.0 -f ximagesrc use-damage=3D0 startx=3D0 starty=3D0 endx=3D191= 9 endy=3D1079 num-buffers=3D1000 ! queue ! videoconvert ! video/x-raw,framerate=3D100/1,format=3DNV12 ! fakesink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 0:00:14.408948605 1000/14.408948605 =3D 69.4 You could extend the test to include encode to fakesink and see what you ge= t. I would try cqp (default 26) as well as cbr. If you can do the first test OK but not with encode maybe start playing with forcing GPU to high rather than auto. Also omx may be a bit faster if you can get that to work - it should, what = is in your /etc/xdg/gstomx.conf? omx doesn't work properly with cbr. You can control cqp as needed, plus b-frames work with omx maybe "free" for bonaire (but will be x2 slower with more recent GPUs than yours). --=20 You are receiving this mail because: You are the assignee for the bug.= --14766603771.Bd4e.16142 Date: Sun, 16 Oct 2016 23:26:17 +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

Commen= t # 11 on bug 98278<= /a> from Andy Furniss
(In reply to Tom from =
comment #10)

> Thank you Andy for explanation. After setting en=
v var
> VAAPI_DISABLE_INTERLACE video looks correctly. You're right about video
> format it should be mkv. I'll experiment more with this and I'll try t=
o get
> smoother motion in videos. In metadata I can see that videos are 60 fp=
s but
> for my eyes they look like 30 fps. Maybe X11 frames are not captured
> efficiently. Thank you again for help with resolving it.

The CPU X11 grabbing and NV12 conversion are quite expensive and single
threaded.

On my old Phenom II x4 3.4GHz CPUs forced to perf (cpufreq) I get about 69 =
fps
testing like -

gst-launch-1.0 -f ximagesrc use-damage=3D0 startx=3D0 starty=3D0 endx=3D191=
9 endy=3D1079
num-buffers=3D1000 ! queue ! videoconvert !
video/x-raw,framerate=3D100/1,format=3DNV12  ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:14.408948605

1000/14.408948605 =3D 69.4

You could extend the test to include encode to fakesink and see what you ge=
t.

I would try cqp (default 26) as well as cbr.

If you can do the first test OK but not with encode maybe start playing with
forcing GPU to high rather than auto.

Also omx may be a bit faster if you can get that to work - it should, what =
is
in your /etc/xdg/gstomx.conf?

omx doesn't work properly with cbr. You can control cqp as needed, plus
b-frames work with omx maybe "free" for bonaire (but will be x2 s=
lower with
more recent GPUs than yours).


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