[packman] AMD Radeon 600 series, Leap 15.4, VLC DVD player

Steven Swart steven.swart at gmail.com
Sun Jan 15 08:49:29 CET 2023


Good day, Packmans!

Me again.

Thank you for your advice, Masaru! I managed to get VLC to play standard
DVDs by fiddling around with the codec settings. So, that solves my main
problem.

However, I wanted to see if I could get Hardware Acceleration working on my
Leap 15.4 machine.

After building the Mesa drivers from source, this was the output of
vdpauinfo:

steven at localhost:~> vdpauinfo
display: :0   screen: 0
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
API version: 1
Information string: OpenGL/VAAPI backend for VDPAU

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
444     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                   --- not supported ---
MPEG2_MAIN                     --- not supported ---
H264_BASELINE                  51 16384  2048  2048
H264_MAIN                      51 16384  2048  2048
H264_HIGH                      51 16384  2048  2048
VC1_SIMPLE                     --- not supported ---
VC1_MAIN                       --- not supported ---
VC1_ADVANCED                   --- not supported ---
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      51 16384  2048  2048
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y
R8G8B8A8         16384 16384    y
R10G10B10A2      16384 16384    y
B10G10R10A2      16384 16384    y
A8               16384 16384    y

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             -
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  -
SHARPNESS                        -
LUMA_KEY                         -
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              -
VIDEO_SURFACE_HEIGHT             -
CHROMA_TYPE                      -
LAYERS                           -

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 -
CSC_MATRIX                       -
NOISE_REDUCTION_LEVEL            -
SHARPNESS_LEVEL                  -
LUMA_KEY_MIN_LUMA                -
LUMA_KEY_MAX_LUMA                -

Note the path to the driver above I have highlighted in red.

When I built the new driver, meson/ninja installed all of the new drivers
to /usr/local/lib64

I have another, newer machine running Tumbleweed. It also has an AMD Radeon
GPU.

I followed a similar procedure to install Mesa from source on that machine.
(I will document this, I have made some notes already.)

I have been delayed by the rolling power blackouts we are presently
experiencing here in South Africa, and also by a Tumbleweed mega-update
that hit me while I was working on this. (I had to do that one in stages.)

This is the result I get from my Tumbleweed machine, both before and after
the new Mesa install:

steven at linux-ll3r:~> vdpauinfo
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12
422    16384 16384  UYVY YUYV
444    16384 16384  Y8U8V8A8 V8U8Y8A8
420_16 16384 16384
422_16 16384 16384
444_16 16384 16384

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                    3 65536  4096  4096
MPEG2_MAIN                      3 65536  4096  4096
H264_BASELINE                  --- not supported ---
H264_MAIN                      --- not supported ---
H264_HIGH                      --- not supported ---
VC1_SIMPLE                     --- not supported ---
VC1_MAIN                       --- not supported ---
VC1_ADVANCED                   --- not supported ---
MPEG4_PART2_SP                  3 65536  4096  4096
MPEG4_PART2_ASP                 5 65536  4096  4096
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
VP9_PROFILE_0                  --- not supported ---
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                  --- not supported ---
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---
AV1_MAIN                       --- not supported ---
AV1_HIGH                       --- not supported ---
AV1_PROFESSIONAL               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
P010 P016 I8A8
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
P010 P016 I8A8
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
P010 P016 I8A8
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
P010 P016 I8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     4096
VIDEO_SURFACE_HEIGHT             y        48     4096
CHROMA_TYPE                      y
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y
CSC_MATRIX                       y
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y
LUMA_KEY_MAX_LUMA                y

On my Tumbleweed machine, I have confirmed that the new drivers are running:

steven at linux-ll3r:~> ps -ef | grep Xorg
root      1319  1252  5 14:17 tty7     00:08:14 /usr/bin/Xorg.bin -nolisten
tcp -auth /run/sddm/{b16201e3-dbe9-48ab-b3db-48e3758b548c} -background none
-noreset

steven at linux-ll3r:~> sudo pmap 1319 | grep local
00007fb8d2a39000      40      32       0       0       0 r--p-
/usr/local/lib64/libEGL.so.1.0.0
00007fb8d2a43000     196     188       0       0       0 r-xp-
/usr/local/lib64/libEGL.so.1.0.0
00007fb8d2a74000      68       0       0       0       0 r--p-
/usr/local/lib64/libEGL.so.1.0.0
00007fb8d2a85000      12      12      12      12       0 r--p-
/usr/local/lib64/libEGL.so.1.0.0
00007fb8d2a88000       4       4       4       4       0 rw-p-
/usr/local/lib64/libEGL.so.1.0.0
00007fb8d9a00000     568       4       0       0       0 r--p-
/usr/local/lib64/dri/radeonsi_dri.so
00007fb8d9a8e000   21272    3120       0       0       0 r-xp-
/usr/local/lib64/dri/radeonsi_dri.so
00007fb8daf54000    8392    1348       0       0       0 r--p-
/usr/local/lib64/dri/radeonsi_dri.so
00007fb8db786000     472     468     468     468       0 r--p-
/usr/local/lib64/dri/radeonsi_dri.so
00007fb8db7fc000      36      36      36      36       0 rw-p-
/usr/local/lib64/dri/radeonsi_dri.so
00007fb8dba79000      12       4       0       0       0 r--p-
/usr/local/lib64/libgbm.so.1.0.0
00007fb8dba7c000      32      32       0       0       0 r-xp-
/usr/local/lib64/libgbm.so.1.0.0
00007fb8dba84000      16       4       0       0       0 r--p-
/usr/local/lib64/libgbm.so.1.0.0
00007fb8dba88000       4       4       4       4       0 r--p-
/usr/local/lib64/libgbm.so.1.0.0
00007fb8dba89000       4       4       4       4       0 rw-p-
/usr/local/lib64/libgbm.so.1.0.0
00007fb8dbce1000      52       0       0       0       0 r--p-
/usr/local/lib64/libglapi.so.0.0.0
00007fb8dbcee000      56      56       0       0       0 r-xp-
/usr/local/lib64/libglapi.so.0.0.0
00007fb8dbcfc000     100       0       0       0       0 r--p-
/usr/local/lib64/libglapi.so.0.0.0
00007fb8dbd15000      16      16      16      16       0 r--p-
/usr/local/lib64/libglapi.so.0.0.0
00007fb8dbd19000       4       4       4       4       0 rw-p-
/usr/local/lib64/libglapi.so.0.0.0
00007fb8dbd21000     112      40       0       0       0 r--p-
/usr/local/lib64/libGL.so.1.2.0
00007fb8dbd3d000     248      64       0       0       0 r-xp-
/usr/local/lib64/libGL.so.1.2.0
00007fb8dbd7b000      88       0       0       0       0 r--p-
/usr/local/lib64/libGL.so.1.2.0
00007fb8dbd91000       8       8       8       8       0 r--p-
/usr/local/lib64/libGL.so.1.2.0
00007fb8dbd93000       4       4       4       4       0 rw-p-
/usr/local/lib64/libGL.so.1.2.0

I suspect what is happening in both cases is that the new Mesa drivers are
installed and running, but that vdpauinfo is still picking up the old
drivers installed by the OS.

I have searched online to find a solution, but haven't seen anything I can
use.

Does anyone know how I can specify a path for vdpauinfo, so that it will
pick up the correct driver?

These are not the results I am expecting!

Any help would be greatly appreciated!

Kind regards,
Steven.

On Mon, 9 Jan 2023 at 11:31, Masaru Nomiya <nomiya at galaxy.dti.ne.jp> wrote:

> Hello,
>
> In the Message;
>
>   Subject    : Fwd: [packman] AMD Radeon 600 series, Leap 15.4, VLC DVD
> player
>   Message-ID : <CALtYYoxDg7L=
> 09JiunqvFeE4jp_LiqT5kE7tNUm0dVWOdZ-bCg at mail.gmail.com>
>   Date & Time: Sun, 8 Jan 2023 15:32:29 +0200
>
> [SS] == Steven Swart <steven.swart at gmail.com> has written:
>
> [...]
> SS>  I still think it's worth writing a HOWTO and posting it on the
> OpenSUSE
> SS>  hardware forums, it may save others from wasting a lot of their time.
> I
> SS>  will try to do that at some stage.
>
> I think it's a good idea.
>
> It would be more optimal if you could include the vdpauinfo results.
>
> If video codecs are enabled, then.
>
> Decoder capabilities:
>
> name                        level macbs width height
> ----------------------------------------------------
> MPEG1                           0 65536  4096  4096
> MPEG2_SIMPLE                    3 65536  4096  4096
> MPEG2_MAIN                      3 65536  4096  4096
> H264_BASELINE                  51 65536  4096  4096
> H264_MAIN                      51 65536  4096  4096
> H264_HIGH                      51 65536  4096  4096
> VC1_SIMPLE                      1  8190  2048  2048
> VC1_MAIN                        2  8190  2048  2048
> VC1_ADVANCED                    4  8190  2048  2048
> MPEG4_PART2_SP                  3  8192  2048  2048
> MPEG4_PART2_ASP                 5  8192  2048  2048
> DIVX4_QMOBILE                   0  8192  2048  2048
> DIVX4_MOBILE                    0  8192  2048  2048
> DIVX4_HOME_THEATER              0  8192  2048  2048
> DIVX4_HD_1080P                  0  8192  2048  2048
> DIVX5_QMOBILE                   0  8192  2048  2048
> DIVX5_MOBILE                    0  8192  2048  2048
> DIVX5_HOME_THEATER              0  8192  2048  2048
> DIVX5_HD_1080P                  0  8192  2048  2048
> H264_CONSTRAINED_BASELINE      51 65536  4096  4096
> H264_EXTENDED                  51 65536  4096  4096
> H264_PROGRESSIVE_HIGH          51 65536  4096  4096
> H264_CONSTRAINED_HIGH          51 65536  4096  4096
> H264_HIGH_444_PREDICTIVE       51 65536  4096  4096
> VP9_PROFILE_0                   1 262144  8192  8192
> VP9_PROFILE_1                  --- not supported ---
> VP9_PROFILE_2                   1 262144  8192  8192
> VP9_PROFILE_3                  --- not supported ---
> HEVC_MAIN                      153 262144  8192  8192
> HEVC_MAIN_10                   153 262144  8192  8192
> HEVC_MAIN_STILL                --- not supported ---
> HEVC_MAIN_12                   153 262144  8192  8192
> HEVC_MAIN_444                  153 262144  8192  8192
> HEVC_MAIN_444_10               153 262144  8192  8192
> HEVC_MAIN_444_12               153 262144  8192  8192
> AV1_MAIN                       --- not supported ---
> AV1_HIGH                       --- not supported ---
> AV1_PROFESSIONAL               --- not supported ---
>
> If video codecs is disabled, you will see that H264, VC1, and HEVC are
> not supported.
>
> This means that AMD GPUs will not support Hardware Accelerated video
> decoding for AVC, HEVC, etc.
> Then, such systems will fallback to using the CPU to decode the
> videos.
>
> For VLC, you have to disable the decoding settings based on Hardware
> Acceralation.
>
> Regards.
>
> ---
> ┏━━┓彡 野宮  賢                         mail-to: m.nomiya @ gmail.com
> ┃\/彡
> ┗━━┛       "A bachelor’s degree still holds prestige as a ticket to the
>                middle class, but its value has received increasing
> scrutiny.
>                In the last several years, rising tuition and student loan
> debt
>                have led more Americans to reconsider an investment in
>                postsecondary education."
>
>                                                         -- Washington Post
> --
>
> _______________________________________________
> Packman mailing list
> Packman at links2linux.de
> https://lists.links2linux.de/cgi-bin/mailman/listinfo/packman


More information about the Packman mailing list