Results 1 to 10 of 10

Thread: AMD sprzętowa akecleracja video h264, hevc etc

  1. #1

    Default AMD sprzętowa akecleracja video h264, hevc etc

    Witam

    Chciałbym zapytać czy OpenSuse Tumbleweed [z którego korzystam] wspiera sprzętową akcelerację materiałów video np. z YouTube? Mój laptop posiada procesor AMD Ryzen 7 5800H z układem graficznym Cezanne. Mam wgrane pakiety libva-utils, Mesa-libva itd. Niestety materiały video korzystające z kodeków hevc, h264, h265 etc mocno obciążają procesor. Ma to związek z tym, że jakimś cudem Suse nie obsługuje u mnie sprzętowej akceleracji. Poniżej wynik polecenia vdpauinfo:

    Code:
    vdpauinfo
    display: :1   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 78336  4096  4906 
    MPEG2_MAIN                      3 78336  4096  4906 
    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 78336  4096  4906 
    MPEG4_PART2_ASP                 5 78336  4096  4906 
    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 I8
    A8  
    R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8
    A8  
    R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8
    A8  
    B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 I8
    A8  
    
    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  
    
    



    Wcześniej korzystałem z Manjaro i tam nie było problemów, aby się upewnić uruchomiłem liveusb i sprawdziłem, działa "prosto z pudełka":

    Code:
    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 78336  4096  4906
    MPEG2_MAIN                      3 78336  4096  4906
    H264_BASELINE                  52 78336  4096  4906
    H264_MAIN                      52 78336  4096  4906
    H264_HIGH                      52 78336  4096  4906
    VC1_SIMPLE                      1 78336  4096  4906
    VC1_MAIN                        2 78336  4096  4906
    VC1_ADVANCED                    4 78336  4096  4906
    MPEG4_PART2_SP                  3 78336  4096  4906
    MPEG4_PART2_ASP                 5 78336  4096  4906
    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       0 78336  4096  4906
    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                      186 139264  8192  4352
    HEVC_MAIN_10                   186 139264  8192  4352
    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
    Tutaj procesor na przykładowym materiale wideo z YT praktycznie nie jest w ogóle obciążony, w SUSE dochodzi do 80%.

    W obu przypadkach sprawdzałem w FireFoxie z włączoną akceleracją [sprawdzane w about:support].

    Zastanawiam się czy brak wsparcia sprawdzanego w vdpauinfo i co za tym idzie wysokie obciążenie CPU nie ma związku z ostatnimi rewelacjami Fedory o wycofaniu sprzętowego wsparcia, czy przypadkiem Suse również nie podjęło podobnej decyzji?



  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,699
    Blog Entries
    15

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    Cheers Malcolm °¿° (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    Quote Originally Posted by malcolmlewis View Post

    THX.

    Czyli muszę sobie skompilować Mesa włączając te kodeki.

  4. #4
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,699
    Blog Entries
    15

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    Quote Originally Posted by MarkGLC View Post
    THX.

    Czyli muszę sobie skompilować Mesa włączając te kodeki.
    Cześć, podejrzewam, że pojawi się wersja Packmana, ale tak, musiałbyś skompilować z src rpm.
    Cheers Malcolm °¿° (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Aug 2021
    Location
    Wolne Miasto
    Posts
    73

    Default Odp: AMD sprzętowa akecleracja video h264, hevc etc

    Witajcie
    Od siebie dodam że w Leap 15.4 wydanie polecenia vdpauinfo daje taki efekt:
    Code:
    Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
    Error creating VDPAU device: 1
    
    moje GPU: Intel HD 4400
    Czegoś mi brakuje ?
    Pozdrawiam
    Moja strona domowa: https://pietraszczyk.vxm.pl

  6. #6

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    @przem

    U siebie musiałem edytować /etc/environment I dopisać:
    Code:
     VDPAU_DRIVER=radeonsi
    U Ciebie będzie
    Code:
     VDPAU_DRIVER=i965
    w .bashrc i .profile musiałem wpisać
    Code:
     export VDPAU_DRIVER=radeonsi
    export LIBVA_DRIVER_NAME=radeonsi
    U Ciebie będzie

    Code:
     export VDPAU_DRIVER=i965
    export LIBVA_DRIVER_NAME=i965

  7. #7
    Join Date
    Aug 2021
    Location
    Wolne Miasto
    Posts
    73

    Default

    Hejka
    Zasadniczo Intel nie jest wspierany przez vdpauinfo.
    Jednak po zainstalowaniu:
    Code:
    sudo zypper in libva-vdpau-driver libvdpau_va_gl1
    
    oraz dodaniu zmiennych środowiskowych na modłę:
    Code:
    export VDPAU_DRIVER=va_gl vdpauinfo
    export LIBVA_DRIVER=va_gl vdpauinfo
    Mój Leap dał taki wynik:
    Code:
    display: :0   screen: 0
    libva info: VA-API version 1.13.0
    libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
    libva info: va_openDriver() returns -1
    libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_1_13
    failed to open /usr/lib64/dri/hybrid_drv_video.so
    Not using hybrid_drv_video.so
    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                -   
    
    Czyli wesoło nie jest. Kodek od Google nie jest wspierany a na nim najbardziej by mi zależało.
    Dziękuję za ciekawy temat i nakierowanie.

    Można również sprawdzić czy przeglądarka w której odtwarzasz treść, obsługuje akceleracje sprzętową. Dla Chrome będzie to 'chrome://gpu'
    Last edited by pbojczuk; 08-Oct-2022 at 01:55.
    Moja strona domowa: https://pietraszczyk.vxm.pl

  8. #8

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    Quote Originally Posted by przem View Post
    Można również sprawdzić czy przeglądarka w której odtwarzasz treść, obsługuje akceleracje sprzętową. Dla Chrome będzie to 'chrome://gpu'
    Hej. Dziękuję za zainteresowanie i podpowiedź, ale jak pisałem na samym początku to mam już za sobą ;-)

    W końcu miałem dziś trochę czasu aby powalczyć z tematem. Na początek postanowiłem zmienić dostawcę Mesy i reszty zależnych pakietów na Pacmana, i był to strzał w dziesiątkę.

    Code:
    vainfo
    libva info: VA-API version 1.16.0 
    libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so 
    libva info: Found init function __vaDriverInit_1_16 
    libva info: va_openDriver() returns 0 
    vainfo: VA-API version: 1.16 (libva 2.15.0) 
    vainfo: Driver version: Mesa Gallium driver 22.2.0 for RENOIR (renoir, LLVM 14.0.6, D
    RM 3.47, 5.19.13-1-default) 
    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 
          VAProfileHEVCMain               : VAEntrypointVLD 
          VAProfileHEVCMain               : VAEntrypointEncSlice 
          VAProfileHEVCMain10             : VAEntrypointVLD 
          VAProfileHEVCMain10             : VAEntrypointEncSlice 
          VAProfileJPEGBaseline           : VAEntrypointVLD 
          VAProfileVP9Profile0            : VAEntrypointVLD 
          VAProfileVP9Profile2            : VAEntrypointVLD 
          VAProfileNone                   : VAEntrypointVideoProc
    
    
    
    Sprawdziłem w mpv na kilku samplach i tutaj ładnie działa:

    Code:
    mpv --hwdec=auto vp9.space.sample.webm
     (+) Video --vid=1 (*) (vp9 8192x4096 23.976fps) 
     (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz) 
    Cannot load libcuda.so.1 
    Using hardware decoding (vaapi). 
    AO: [pulse] 48000Hz stereo 2ch float 
    VO: [gpu] 8192x4096 vaapi[nv12] 
    AV: 00:01:52 / 00:03:09 (60%) A-V:  0.000 Dropped: 41 
    
    Exiting... (Quit) 
     ~/Wideo mpv --hwdec=auto sample_3840x2160.hevc
    [ffmpeg/demuxer] hevc: Stream #0: not enough frames to estimate rate; consider increa
    sing probesize
    [lavf] This format is marked by FFmpeg as having no timestamps!
    [lavf] FFmpeg will likely make up its own broken timestamps. For
    [lavf] video streams you can correct this with:
    [lavf]     --no-correct-pts --fps=VALUE
    [lavf] with VALUE being the real framerate of the stream. You can
    [lavf] expect seeking and buffering estimation to be generally
    [lavf] broken as well.
     (+) Video --vid=1 (hevc 3840x2160 23.976fps) 
    Cannot load libcuda.so.1 
    Using hardware decoding (vaapi). 
    No video PTS! Making something up. Using 23.976024 FPS.
    No video PTS! Making something up. Using 23.976024 FPS.
    Ignoring further missing PTS warnings.
    VO: [gpu] 3840x2160 vaapi[nv12] 
    V: 00:00:03 / unknown (12%) Dropped: 1 
    
    Exiting... (Quit)
    
    
    
    W przeglądarce [Firefox] również wszystko chodzi jak powinno, na YT wideo odtwarza się płynnie, bez dropów, a procesor nie męczy się jak wcześniej,


    Jedyny problem jaki się pojawił, to błąd w vdpauinfo:
    Code:
    dpauinfo
    display: :1   screen: 0 
    libva info: VA-API version 1.16.0 
    libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = 
    (null) 
    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 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    444     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    420_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    422_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    444_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    
    Decoder capabilities: 
    
    name                        level macbs width height 
    ---------------------------------------------------- 
    MPEG1                          --- not supported --- 
    MPEG2_SIMPLE                   --- not supported --- 
    MPEG2_MAIN                     --- not supported --- 
    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                 --- 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      --- 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    -   
    R8G8B8A8         16384 16384    -   
    R10G10B10A2      16384 16384    -   
    B10G10R10A2      16384 16384    -   
    A8               16384 16384    -   
    
    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                -   
    
    
    X Error of failed request:  BadMatch (invalid parameter attributes) 
      Major opcode of failed request:  151 (GLX) 
      Minor opcode of failed request:  5 (X_GLXMakeCurrent) 
      Serial number of failed request:  40 
      Current serial number in output stream:  40
    
    
    

    Mimo tego materiały wideo odtwarzają się tak jak sobie tego życzyłem. Tym "problemem" z vdpauinfo zajmę się jak znów znajdę trochę czasu, jeśli znajdę rozwiązanie, umieszczę tutaj.

    Pozdrawiam.

  9. #9
    Join Date
    Aug 2021
    Location
    Wolne Miasto
    Posts
    73

    Default

    Na początek postanowiłem zmienić dostawcę Mesy i reszty zależnych pakietów na Pacmana, i był to strzał w dziesiątkę.
    Kolego ! Do wszelkich treści multimedialnych w openSUSE, repozytorium packman jest niezbędne. Bez tego praktycznie, ani rusz !

    Masz wyeksportowaną niewłaściwą nazwę sterownika, spójrz:
    Code:
    libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = 
    (null)
     
    Aktualnie ustawiony driver możesz sprawdzić poleceniem:
    Code:
    grep -iE 'vdpau | dri driver' /var/log/Xorg.0.log
    
    U mnie mimo że eksportowałem backend openGL 'va_gl' to ustawiony jest właśnie 'i965'
    Code:
    [    36.252] (II) modeset(0): [DRI2]   DRI driver: i965
    [    36.252] (II) modeset(0): [DRI2]   VDPAU driver: i965
    
    Pozdrawiam
    Last edited by pbojczuk; 08-Oct-2022 at 01:56.
    Moja strona domowa: https://pietraszczyk.vxm.pl

  10. #10

    Default Re: AMD sprzętowa akecleracja video h264, hevc etc

    Quote Originally Posted by przem View Post
    Kolego ! Do wszelkich treści multimedialnych w openSUSE, repozytorium packman jest niezbędne. Bez tego praktycznie, ani rusz !
    Pacmana mam od samego początku, między innymi do kodeków i do niedawna [zanim zaczęło się tango z Mesa] wsio działało. Może coś się skaszaniło u mnie, może Mesa w Pacmanie różni się od tej z głównego repo, w każdym razie zmiana pomogła.

    Masz wyeksportowaną niewłaściwą nazwę sterownika, spójrz:


    Dzięki za nakierowanie, wcześniej nie musiałem tego robić, ale wygląda na to, że teraz w /etc/environment muszę mieć dodane: LIBVA_DRIVER_NAME=radeonsi

    Code:
    display: :1   screen: 0 
    libva info: VA-API version 1.16.0 
    libva info: User environment variable requested driver 'radeonsi' 
    libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so 
    libva info: Found init function __vaDriverInit_1_16 
    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 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    444     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    420_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    422_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    444_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_4
    44_16  
    
    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 --- 
    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   
    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                -   
    
    Czyli "zyskałem" h264, straciłem za to "MPEG2", a między tym co powinno być a jest, dalej stoję w rozkroku Hehe, ważne, że to na czym mi zależało działa.


    Pozdrawiam.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •