From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110257] Major artifacts in mpeg2 vaapi hw decoding Date: Wed, 27 Mar 2019 11:23:33 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1654390077==" 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 9A5A16E0E7 for ; Wed, 27 Mar 2019 11:23:33 +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 --===============1654390077== Content-Type: multipart/alternative; boundary="15536858131.C51bCdA0.22028" Content-Transfer-Encoding: 7bit --15536858131.C51bCdA0.22028 Date: Wed, 27 Mar 2019 11:23:33 +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=3D110257 Bug ID: 110257 Summary: Major artifacts in mpeg2 vaapi hw decoding Product: Mesa Version: unspecified Hardware: All OS: All Status: NEW Severity: major Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: 67b0226d@casix.org QA Contact: dri-devel@lists.freedesktop.org Created attachment 143787 --> https://bugs.freedesktop.org/attachment.cgi?id=3D143787&action=3Dedit hardware-decoded screenshot Hi, on latest Mesa I still get tons of artifacts when decoding MPEG2 on my AMD = card via VAAPI, to the point where it is not usable for video decoding at all to= be honest. I've attached sample screenshots to show the problem - one software-decoded= and one hardware-decoded via libva in mpv. The sample video is taken from https://www.w6rz.net/1080p25.zip but the artifacts are visible more or less on any MPEG2 video including DVDs. There is this older bug report: https://bugs.freedesktop.org/show_bug.cgi?id=3D93760 but I'm not sure it's related because I do not get any assertion failure and it vaguely reads lik= e it has been fixed? For clarification, I see no artifacts with VDPAU. Tested with Mesa-19.1.0-devel (git-bea540173c), libva 2.5.0-pre1 (git-c98b06d2b8), FFmpeg N-93467-g54655623a8 VAAPI driver string: Mesa Gallium driver 19.1.0-devel for Radeon RX 580 Ser= ies (POLARIS10, DRM 3.27.0, 4.20.13-arch1-1-ARCH, LLVM 7.0.1) I verified this with mpv, gstreamer and Kodi. mpv seems to have disabled mpeg2 hw decoding by default due to this problem: https://github.com/mpv-player/mpv/commit/3dd59dbe In Kodi we cannot go this route because we want to support low-end hardware that might have trouble decoding 1080p in software out-of-the-box. I want to avoid having to blacklist the radeon vaapi driver for mpeg2 if possible. --=20 You are receiving this mail because: You are the assignee for the bug.= --15536858131.C51bCdA0.22028 Date: Wed, 27 Mar 2019 11:23:33 +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 110257
Summary Major artifacts in mpeg2 vaapi hw decoding
Product Mesa
Version unspecified
Hardware All
OS All
Status NEW
Severity major
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter 67b0226d@casix.org
QA Contact dri-devel@lists.freedesktop.org

Created attachment 1=
43787 [details]
hardware-decoded screenshot

Hi,

on latest Mesa I still get tons of artifacts when decoding MPEG2 on my AMD =
card
via VAAPI, to the point where it is not usable for video decoding at all to=
 be
honest.
I've attached sample screenshots to show the problem - one software-decoded=
 and
one hardware-decoded via libva in mpv.
The sample video is taken from https://www.w6rz.net/1080p25.zip but the
artifacts are visible more or less on any MPEG2 video including DVDs.

There is this older bug report:
https://bugs.freedesktop.org/show_bug.c=
gi?id=3D93760 but I'm not sure it's
related because I do not get any assertion failure and it vaguely reads lik=
e it
has been fixed?

For clarification, I see no artifacts with VDPAU.

Tested with Mesa-19.1.0-devel (git-bea540173c), libva 2.5.0-pre1
(git-c98b06d2b8), FFmpeg N-93467-g54655623a8
VAAPI driver string: Mesa Gallium driver 19.1.0-devel for Radeon RX 580 Ser=
ies
(POLARIS10, DRM 3.27.0, 4.20.13-arch1-1-ARCH, LLVM 7.0.1)

I verified this with mpv, gstreamer and Kodi.
mpv seems to have disabled mpeg2 hw decoding by default due to this problem:
https://githu=
b.com/mpv-player/mpv/commit/3dd59dbe
In Kodi we cannot go this route because we want to support low-end hardware
that might have trouble decoding 1080p in software out-of-the-box.
I want to avoid having to blacklist the radeon vaapi driver for mpeg2 if
possible.


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