No hardware decoding / Mint 20.2 / GTX970

Forums / NoMachine for Linux / No hardware decoding / Mint 20.2 / GTX970

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #36823
    ludo3232
    Participant

    Hi,

    I have no hardware decoding work on linux mint 20.2 cinnamon.

    Nvidia Driver version 495.44
    NoMachine 7.7.4

    session log :

    libva info: VA-API version 1.7.0
    libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
    14084 14133 21:14:10 905.943 VADecoder/VADecoder: WARNING! Failed to initialize DRM display for device /dev/dri/renderD128 with error 0xffffffffffffffff.
    libva info: VA-API version 1.7.0
    libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
    14084 14133 21:14:10 905.968 VADecoder/VADecoder: WARNING! Failed to initialize DRM display for device /dev/dri/card0 with error 0xffffffffffffffff.
    Info: H264 support is available.
    Info: Using H.264 software decoder.

    vainfo output :

    libva info: VA-API version 1.7.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
    libva info: Found init function __vaDriverInit_1_0
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.7 (libva 2.6.0)
    vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileMPEG4Simple            :	VAEntrypointVLD
          VAProfileMPEG4AdvancedSimple    :	VAEntrypointVLD
          <unknown profile>               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVL

    vdpauinfo output

    
    display: :0   screen: 0
    API version: 1
    Information string: NVIDIA VDPAU Driver Shared Library  495.44  Fri Oct 22 06:03:50 UTC 2021
    
    Video surface:
    
    name   width height types
    -------------------------------------------
    420     4096  4096  NV12 YV12 
    422     4096  4096  UYVY YUYV 
    444     4096  4096  
    
    Decoder capabilities:
    
    name                        level macbs width height
    ----------------------------------------------------
    MPEG1                           0 65536  4080  4080
    MPEG2_SIMPLE                    3 65536  4080  4080
    MPEG2_MAIN                      3 65536  4080  4080
    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
    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  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
    R10G10B10A2      16384 16384    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 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     y
    INVERSE_TELECINE                 y
    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         1     4096
    VIDEO_SURFACE_HEIGHT             y         1     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  

    sudo find / -name libnvidia-encode.so -or -name libcuda.so 2>/dev/null output :

    /usr/lib/x86_64-linux-gnu/libnvidia-encode.so
    /usr/lib/x86_64-linux-gnu/libcuda.so
    /usr/lib/i386-linux-gnu/libnvidia-encode.so
    /usr/lib/i386-linux-gnu/libcuda.s

    I have NoMachine on a other computer with Mint 20.2 cinnamon + Intel iGPU and hardware gpu decode work fine out of the box.

    there is a problem with Nvidia driver?

    Any ideas?
    Thanks

    #36857
    fisherman
    Moderator

    Problems does not looks like there is some missconfiguration or missing of some system libraries regarding the va libraries.

    Strange thing is that from vainfo we have <unknown profile>.

    Please can you check what is installed in relation to libva and va-api. You can do that check by executing: dpkg -l "libva*"

    #36859
    ludo3232
    Participant

    dpkg -l “libva*”

    ||/ Nom                    Version      Architecture Description
    +++-======================-============-============-=============================================================
    un  libva-driver-abi-1.0   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.1   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.2   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.3   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.4   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.5   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.6   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-driver-abi-1.7   <aucune>     <aucune>     (aucune description n'est disponible)
    un  libva-drm1             <aucune>     <aucune>     (aucune description n'est disponible)
    ii  libva-drm2:amd64       2.7.0-2      amd64        Video Acceleration (VA) API for Linux -- DRM runtime
    ii  libva-drm2:i386        2.7.0-2      i386         Video Acceleration (VA) API for Linux -- DRM runtime
    ii  libva-wayland2:amd64   2.7.0-2      amd64        Video Acceleration (VA) API for Linux -- Wayland runtime
    un  libva-x11-1            <aucune>     <aucune>     (aucune description n'est disponible)
    ii  libva-x11-2:amd64      2.7.0-2      amd64        Video Acceleration (VA) API for Linux -- X11 runtime
    ii  libva-x11-2:i386       2.7.0-2      i386         Video Acceleration (VA) API for Linux -- X11 runtime
    un  libva1                 <aucune>     <aucune>     (aucune description n'est disponible)
    ii  libva2:amd64           2.7.0-2      amd64        Video Acceleration (VA) API for Linux -- runtime
    ii  libva2:i386            2.7.0-2      i386         Video Acceleration (VA) API for Linux -- runtime
    ii  libvariable-magic-perl 0.62-1build2 amd64        module to associate user-defined magic to variables from Perl
    #36912
    ludo3232
    Participant

    I have make a bit tests with hardware I have, in a other computer with Mint 20.2 and Ubuntu 21.10 + Quadro K2000 and K4000 cards. Hardware decoding do no work at all under Linux, same errors. With windows and NoMachine theses cards work fine.

    Have you any solution? Thanks

    #36951
    fisherman
    Moderator

    Can you check following command
    ls -l /dev/dri

    there should be list of devices, one of them renderD12x will be nvidia (will be renderD129 or some other number)
    then run following command
    LIBVA_DRIVER_NAME=nvidia vainfo --display drm --device /dev/dri/renderD129

    In last command we do following:
    – we say to vainfo to use nvidia driver with LIBVA_DRIVER_NAME
    – we specify that nvidia device should be used by selecting it manually as renderD12x
    – the most important part is that it uses DRM, instead of default X11 for display argument – we need to use it that way in our software

    Please then show us output of the mentioned command.

    #36955
    ludo3232
    Participant

    ls -l /dev/dri

    total 0
    drwxr-xr-x  2 root root         80 jan  6 16:37 by-path
    crw-rw----+ 1 root video  226,   0 jan  6 16:37 card0
    crw-rw----+ 1 root render 226, 128 jan  6 16:37 renderD128

    LIBVA_DRIVER_NAME=nvidia vainfo –display drm –device /dev/dri/renderD129

    Failed to open the given device!

    LIBVA_DRIVER_NAME=nvidia vainfo –display drm –device /dev/dri/renderD128

    libva info: VA-API version 1.7.0
    libva info: User environment variable requested driver 'nvidia'
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
    libva info: Found init function __vaDriverInit_1_0
    Segmentation fault (core dumped)
    #36978
    fisherman
    Moderator

    Based on the output of the command vainfo executed with using drm and nvidia device that produced the crash, NoMachine will not be able to use that device and that was reflecting that NoMachine failed back to use software decoding.

    #36979
    fisherman
    Moderator

    Furthermore, problem is with nvidia drivers and not with NoMachine software.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic was marked as solved, you can't post.