From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 98278] Corrupted videos VA-API HW encoding radeonsi Date: Sun, 16 Oct 2016 14:59:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0398263215==" 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 D53B56E066 for ; Sun, 16 Oct 2016 14:59:31 +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 --===============0398263215== Content-Type: multipart/alternative; boundary="14766299700.94DcA0AD.12905"; charset="UTF-8" --14766299700.94DcA0AD.12905 Date: Sun, 16 Oct 2016 14:59:30 +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 Bug ID: 98278 Summary: Corrupted videos VA-API HW encoding radeonsi Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: neatnoise@gmail.com QA Contact: dri-devel@lists.freedesktop.org Hello, There is an issue in hardware encoding using radeonsi driver and VA-API. It happens when 2 encoding software - gstreamer and avconf are used. Generated output videos are corrupted, full of green and purple colors. There is no e= rror in the terminal output. There is no problem in HW decoding, it generates valid output. I've tried to use omx HW acceleration, but gstreamer couldn't even initiali= ze gst-omx plugin. Generated video: https://www.youtube.com/watch?v=3DXJlWCdgB4Lc gst command: LIBVA_DRIVER_NAME=3Dradeonsi gst-launch-1.0 -e ximagesrc display-name=3D:0 use-damage=3D0 startx=3D0 starty=3D0 endx=3D1919 endy=3D1= 079 ! multiqueue ! video/x-raw,format=3DBGRx,framerate=3D60/1 ! vaapipostproc format=3Di420 ! video/x-raw,format=3DI420,framerate=3D60/1 ! multiqueue ! vaapih264enc bitr= ate=3D3000 dct8x8=3Dtrue ! h264parse ! multiqueue ! matroskamux name=3Dmuxer muxer. ! progressreport name=3DRec_time ! filesink location=3Dtest.mp4 glxinfo: OpenGL renderer string: Gallium 0.4 on AMD BONAIRE (DRM 2.46.0 / 4.8.1-1-AR= CH, LLVM 4.0.0) OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.1.0-devel (git-b7d9677) kernel driver: radeon vainfo: libva info: VA-API version 0.39.3 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.39 (libva 1.7.2) vainfo: Driver version: mesa gallium vaapi vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileNone : VAEntrypointVideoProc omx: Scanning directory /usr/lib/bellagio/ Scanning library /usr/lib/bellagio/libomxclocksrc.so Component OMX.st.clocksrc registered with 0 quality levels Specific role OMX.st.clocksrc registered Scanning library /usr/lib/bellagio/libomx_mesa.so Component OMX.mesa.video_decoder registered with 0 quality levels Specific role OMX.mesa.video_decoder.mpeg2 registered Specific role OMX.mesa.video_decoder.avc registered Specific role OMX.mesa.video_decoder.hevc registered Component OMX.mesa.video_encoder registered with 0 quality levels Specific role OMX.mesa.video_encoder.avc registered Scanning library /usr/lib/bellagio/libomxvideosched.so Component OMX.st.video.scheduler registered with 2 quality levels Specific role OMX.st.video.scheduler registered Scanning library /usr/lib/bellagio/libomxaudio_effects.so Component OMX.st.volume.component registered with 2 quality levels Specific role OMX.st.volume.component registered Component OMX.st.audio.mixer registered with 1 quality levels Specific role OMX.st.audio.mixer registered 6 OpenMAX IL ST static components in 4 libraries succesfully scanned --=20 You are receiving this mail because: You are the assignee for the bug.= --14766299700.94DcA0AD.12905 Date: Sun, 16 Oct 2016 14:59:30 +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 98278
Summary Corrupted videos VA-API HW encoding radeonsi
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter neatnoise@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Hello,

There is an issue in hardware encoding using radeonsi driver and VA-API. It
happens when 2 encoding software - gstreamer and avconf are used. Generated
output videos are corrupted, full of green and purple colors. There is no e=
rror
in the terminal output.

There is no problem in HW decoding, it generates valid output.
I've tried to use omx HW acceleration, but gstreamer couldn't even initiali=
ze
gst-omx plugin.

Generated video: =
https://www.youtube.com/watch?v=3DXJlWCdgB4Lc

gst command: LIBVA_DRIVER_NAME=3Dradeonsi gst-launch-1.0 -e ximagesrc
display-name=3D:0 use-damage=3D0 startx=3D0 starty=3D0 endx=3D1919 endy=3D1=
079 ! multiqueue
! video/x-raw,format=3DBGRx,framerate=3D60/1 ! vaapipostproc format=3Di420 !
video/x-raw,format=3DI420,framerate=3D60/1 ! multiqueue ! vaapih264enc bitr=
ate=3D3000
dct8x8=3Dtrue ! h264parse ! multiqueue ! matroskamux name=3Dmuxer muxer. !
progressreport name=3DRec_time ! filesink location=3Dtest.mp4

glxinfo:
OpenGL renderer string: Gallium 0.4 on AMD BONAIRE (DRM 2.46.0 / 4.8.1-1-AR=
CH,
LLVM 4.0.0)
OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.1.0-devel
(git-b7d9677)

kernel driver: radeon

vainfo:
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.2)
vainfo: Driver version: mesa gallium vaapi
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileNone                   : VAEntrypointVideoProc

omx:
 Scanning directory /usr/lib/bellagio/

 Scanning library /usr/lib/bellagio/libomxclocksrc.so
Component OMX.st.clocksrc registered with 0 quality levels
  Specific role OMX.st.clocksrc registered

 Scanning library /usr/lib/bellagio/libomx_mesa.so
Component OMX.mesa.video_decoder registered with 0 quality levels
  Specific role OMX.mesa.video_decoder.mpeg2 registered
  Specific role OMX.mesa.video_decoder.avc registered
  Specific role OMX.mesa.video_decoder.hevc registered
Component OMX.mesa.video_encoder registered with 0 quality levels
  Specific role OMX.mesa.video_encoder.avc registered

 Scanning library /usr/lib/bellagio/libomxvideosched.so
Component OMX.st.video.scheduler registered with 2 quality levels
  Specific role OMX.st.video.scheduler registered

 Scanning library /usr/lib/bellagio/libomxaudio_effects.so
Component OMX.st.volume.component registered with 2 quality levels
  Specific role OMX.st.volume.component registered
Component OMX.st.audio.mixer registered with 1 quality levels
  Specific role OMX.st.audio.mixer registered

 6 OpenMAX IL ST static components in 4 libraries succesfully scanned


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