Jellyfin wont use Hardwareaccelleration anymore

  • I think the OP's CPU doesn't have an integrated GPU. Or at least it doesn't have Intel quicksync. https://www.intel.la/content/w…0-ghz/specifications.html

    I saw that but it's strange the lspci output:

    Code
    00:02.0 Display controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
    ---------
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]

    Although only the AMD says VGA, the Intel says that it has Integrated Graphics Controller.


    And to add to it, the 2 video cards and render devices detected:

    Code
    drwxr-xr-x  3 root root        140  7. Feb 16:58 .
    drwxr-xr-x 17 root root       3980  7. Feb 16:58 ..
    drwxr-xr-x  2 root root        120  7. Feb 16:58 by-path
    crw-rw----  1 root video  226,   0  7. Feb 16:58 card0
    crw-rw----  1 root video  226,   1  7. Feb 16:58 card1
    crw-rw----  1 root render 226, 128  7. Feb 16:58 renderD128
    crw-rw----  1 root render 226, 129  7. Feb 16:58 renderD129

    To the system, there are 2 devices available and, I think this is what is messing with the Jellyfin hardware detection.


    Mischu

    Can you post which exact Hardware (Mainboard, Graphic Card, etc) you have on there?

    Could help find out more about specs

  • I disabled the onboard chip.

    Code
    drwxr-xr-x  3 root root        100  8. Feb 13:44 .
    drwxr-xr-x 17 root root       3900  8. Feb 13:44 ..
    drwxr-xr-x  2 root root         80  8. Feb 13:44 by-path
    crw-rw----  1 root video  226,   0  8. Feb 13:44 card0
    crw-rw----  1 root render 226, 128  8. Feb 13:44 renderD128


    Can you post which exact Hardware (Mainboard, Graphic Card, etc) you have on there?

    I try to find some data.

    Its an old hp desktop computer.

  • I disabled the onboard chip.

    Check now the output of the lspci:

    sudo lspci -v -s $(lspci | grep VGA | cut -d" " -f 1)


    Its an old hp desktop computer.

    But what model/version? Anything that can be used to find info on it.

  • Check now the output of the lspci:

    sudo lspci -v -s $(lspci | grep VGA | cut -d" " -f 1)


    But what model/version? Anything that can be used to find info on it.

    I have no idea i have to open it or can a software read the hardware?


    Mischu

  • Well, I would think that something would be written on the front/back plate. Guess not.


    But, since you now only have one visible card on the system, try to see if you can activate transcoding with it.

    Take consideration that you can only use codecs that the card support.

    Don't go ticking ALL of them.

  • OK

    My yml file:


    Docker user groups:


    Jellyfin setting for transcoding:


    Jellyfin output:

    Code
    r600: driver missing
    [AVHWDeviceContext @ 0x5624eb51f8c0] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so init failed
    [AVHWDeviceContext @ 0x5624eb51f8c0] Failed to initialise VAAPI connection: 2 (resource allocation failed).
    [AVFilterGraph @ 0x5624eb4c7600] Error initializing filters
    [vost#0:0/h264_vaapi @ 0x5624eb50bbc0] Error initializing a simple filtergraph
    Error opening output file /config/cache/transcodes/afb7ffcde6abc6ef5783e11ce3b27c4e.m3u8.
    Error opening output files: Input/output error


    What info of motherboard do you need?

    Sorry if i forgotten some things but it become a little to much... ?(


    Is it maybe a rights problem?


    Thanks

    Mischu

  • My yml file:

    Uncomment line #28

    Code
          - /dev/kfd:/dev/kfd

    Redeploy the container.


    Jellyfin setting for transcoding:

    Try to use AMD AMF and see if anything is different.


    Jellyfin output:

    First, check the permissions on the HOST:

    ls -al /srv/dev-disk-by-uuid-27f8a266-f3f9-4c98-bc91-fa3adc19169c/Config/Jellyfin

    ls -al /srv/dev-disk-by-uuid-27f8a266-f3f9-4c98-bc91-fa3adc19169c/Config/Jellyfin/cache/transcodes/


    Bash into the container with docker exec -it jellyfin bash


    Then try:

    ls -al /usr/lib/jellyfin-ffmpeg/lib/dri/

    See if the *.so files are there.


    /usr/lib/jellyfin-ffmpeg/vainfo

    See what it says on the output


    If all seems to be correct (permissions for eg), then there's no more things I can add here.

  • Hey

    First you dont have to waste your time to fix my problems! :saint:

    I am very glad that you do exactly this.

    Tank you!

    Uncomment line #28

    Done

    First, check the permissions on the HOST:

    Dockeruser rwx

    Try to use AMD AMF and see if anything is different.

    VAAPI:

    Code
    r600: driver missing
    [AVHWDeviceContext @ 0x558a33cac8c0] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so init failed
    [AVHWDeviceContext @ 0x558a33cac8c0] Failed to initialise VAAPI connection: 2 (resource allocation failed).
    [AVFilterGraph @ 0x558a33c54600] Error initializing filters
    [vost#0:0/h264_vaapi @ 0x558a33c98bc0] Error initializing a simple filtergraph
    Error opening output file /config/cache/transcodes/81c2d6f4ef8cc1b3ed0d7b017abca37e.m3u8.
    Error opening output files: Input/output error


    AMD AMF:

    Code
    [tonemapx @ 0x559abccc74c0] Using CPU capabilities: AVX2 FMA3
    Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_amf))
      Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    [tonemapx @ 0x7f420800fe00] Using CPU capabilities: AVX2 FMA3
    [h264_amf @ 0x559abcc906c0] DLL libamfrt64.so.1 failed to open
    free(): double free detected in tcache 2


    Then try:

    ls -al /usr/lib/jellyfin-ffmpeg/lib/dri/

    Code
    total 62312
    drwxr-xr-x 2 root root     4096 Feb  4 14:21 .
    drwxr-xr-x 4 root root     4096 Feb  4 14:21 ..
    -rw-r--r-- 1 root root  8730792 Jan 19 14:34 i965_drv_video.so
    -rw-r--r-- 1 root root 41710840 Jan 19 14:34 iHD_drv_video.so
    -rw-r--r-- 1 root root 13352296 Jan 19 14:34 radeonsi_drv_video.so


    /usr/lib/jellyfin-ffmpeg/vainfo

    See what it says on the output

  • Maybe you need to bring this upstream to jellyfin github and create an issue.


    Sorry but reached the top of what I can think of.

  • One last look to get some more info, the r600_drv_video.so is included on the mesa-va-drivers package


    If you installed the packages as on the other thread I mentioned, that is refered on #6, that one isn't mentioned.

    So, try sudo apt install mesa-va-drivers to see if it solves anything.


    You can also pass it to the container by adding another mod:

    GitHub - linuxserver/docker-mods at universal-package-install

    Code
    - DOCKER_MODS=linuxserver/mods:universal-package-install
    - INSTALL_PACKAGES=mesa-va-drivers


    Since you already have a mod on the YML, you need to make it like this:


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!