• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Can't get QSV or VAAPI to work

     
    • 1 Vote(s) - 5 Average

    Can't get QSV or VAAPI to work

    Neither QSV or VAAPI will work and I'm going crazy
    arctic
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Sep
    Reputation: 1
    #1
    2023-09-08, 03:53 AM
    Hello everyone, I'm trying to set up Intel QSV for hardware acceleration on my Jellyfin setup and it's giving me a lot of grief.

    My setup:
    Intel Core i5-4570
    Jellyfin running in Debian 12 Proxmox LXC

    I've followed guides to pass through the gpu, added jellyfin to render and video groups, etc.

    Here's the error log I get when using VAAPI:

    Code:
    [AVHWDeviceContext @ 0x55f68870fb00] No VA display found for device /dev/dri/renderD128.
    Device creation failed: -22.
    Failed to set value 'vaapi=va:/dev/dri/renderD128' for option 'init_hw_device': Invalid argument
    Error parsing global options: Invalid argument

    And the error I get using QSV:

    Code:
    [AVHWDeviceContext @ 0x55f68870fb00] No VA display found for device /dev/dri/renderD128.
    Device creation failed: -22.
    Failed to set value 'vaapi=va:/dev/dri/renderD128' for option 'init_hw_device': Invalid argument
    Error parsing global options: Invalid argument

    Here's the output of vainfo if it helps:

    Code:
    error: XDG_RUNTIME_DIR is invalid or not set in the environment.
    error: can't connect to X server!
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
    libva info: va_openDriver() returns 1
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_1_8
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.17 (libva 2.12.0)
    vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Simple            : VAEntrypointEncSlice
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointEncSlice
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
          VAProfileH264Main              : VAEntrypointVLD
          VAProfileH264Main              : VAEntrypointEncSlice
          VAProfileH264High              : VAEntrypointVLD
          VAProfileH264High              : VAEntrypointEncSlice
          VAProfileH264MultiviewHigh      : VAEntrypointVLD
          VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
          VAProfileH264StereoHigh        : VAEntrypointVLD
          VAProfileH264StereoHigh        : VAEntrypointEncSlice
          VAProfileVC1Simple              : VAEntrypointVLD
          VAProfileVC1Main                : VAEntrypointVLD
          VAProfileVC1Advanced            : VAEntrypointVLD
          VAProfileNone                  : VAEntrypointVideoProc
          VAProfileJPEGBaseline          : VAEntrypointVLD

    I have igpu drivers from vainfo, and I think I also installed them from elsewhere.

    If anyone has any ideas please drop them below because I'm going crazy!!!!
    bitmap
    Offline

    Community Moderator

    Posts: 776
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #2
    2023-09-08, 06:29 AM (This post was last modified: 2023-09-08, 08:36 AM by bitmap. Edited 1 time in total.)
    Well, I'd give up on QSV. You need the intel-media-driver (or the non-free variant, which more people seem to have success with) and the Github says the earliest supported platform is Broadwell, which is 5th generation and a completely different generation of iGPUs. You can still get VA-API working, however.

    Sources:

    * https://jellyfin.org/docs/general/admini...on-methods
    * https://github.com/intel/media-driver#su...-platforms
    * https://en.wikipedia.org/wiki/Haswell_(m...hitecture)
    * https://en.wikipedia.org/wiki/Broadwell_...hitecture)

    The Jellyfin HWA Proxmox guide says you have to run the container privileged: https://jellyfin.org/docs/general/admini...on-proxmox

    Make sure that's checked off. On the host is everything functioning properly? Are you able to get vainfo to work fine and provide the info you're looking to see? Drivers are installed and all of that? Been a bit since I had my 4th gen i7 working with VA-API, I seem to remember struggling to get it functioning right. Make sure the host is functioning properly (check and see if by chance intel-media-driver will work, and you could also try for intel-media-driver-non-free if the former is installed and not working) and I'll see if I can find anything from when I was running that machine...
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    arctic
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Sep
    Reputation: 1
    #3
    2023-09-08, 07:18 AM
    (2023-09-08, 06:29 AM)bitmap Wrote: Well, I'd give up on QSV. You need the intel-media-driver (or the non-free variant, which more people seem to have success with) and the Github says the earliest supported platform is Broadwell, which is 5th generation and a completely different generation of iGPUs. You can still get VA-API working, however.

    Sources:

    * https://jellyfin.org/docs/general/admini...on-methods
    * https://github.com/intel/media-driver#su...-platforms
    * https://en.wikipedia.org/wiki/Haswell_(m...hitecture)
    * https://en.wikipedia.org/wiki/Broadwell_...hitecture)

    The Jellyfin HWA Proxmox guide says you have to run the container privileged: https://jellyfin.org/docs/general/admini...on-proxmox

    Make sure that's checked off. On the host is everything functioning properly? Are you able to get vainfo to work fine and provide the info you're looking to see? Drivers are installed and all of that? Been a bit since I had my 4th gen i7 working with VA-API, I seem to remember struggling to get it functioning right. Make sure the host is functioning properly (check for intel-media-driver, you could also try for intel-media-driver-non-free if the former is installed and not working) and I'll see if I can find anything from when I was running that machine...

    Hey man thank you so much for your tips. I'm super tired & going to bed but I'll try some of those things tomorrow and let you know how it goes. Thanks so much!
    arctic
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Sep
    Reputation: 1
    #4
    2023-09-08, 06:16 PM (This post was last modified: 2023-09-08, 06:18 PM by arctic. Edited 2 times in total.)
    (2023-09-08, 06:29 AM)bitmap Wrote: Well, I'd give up on QSV. You need the intel-media-driver (or the non-free variant, which more people seem to have success with) and the Github says the earliest supported platform is Broadwell, which is 5th generation and a completely different generation of iGPUs. You can still get VA-API working, however.

    Sources:

    * https://jellyfin.org/docs/general/admini...on-methods
    * https://github.com/intel/media-driver#su...-platforms
    * https://en.wikipedia.org/wiki/Haswell_(m...hitecture)
    * https://en.wikipedia.org/wiki/Broadwell_...hitecture)

    The Jellyfin HWA Proxmox guide says you have to run the container privileged: https://jellyfin.org/docs/general/admini...on-proxmox

    Make sure that's checked off. On the host is everything functioning properly? Are you able to get vainfo to work fine and provide the info you're looking to see? Drivers are installed and all of that? Been a bit since I had my 4th gen i7 working with VA-API, I seem to remember struggling to get it functioning right. Make sure the host is functioning properly (check and see if by chance intel-media-driver will work, and you could also try for intel-media-driver-non-free if the former is installed and not working) and I'll see if I can find anything from when I was running that machine...

    Got VAAPI working!! Jellyfin didn't have sufficient permissions to the /dev/dri directory. Super annoying now though because now when I chmod the folder, it changes back on restart and transcoding stops working again. I'm sure there's a way of solving that though. The quality is a little blocky at times. Would still like to get QSV working, and I'm fairly confident that it is supported since it says so on the Intel spec page, and there's compatibility listed on the wikipedia page. I could totally be wrong though, maybe there's not a way to do it on linux for 4th gen? Not sure, but I'll do some more research.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2023-09-08, 06:20 PM (This post was last modified: 2023-09-08, 06:20 PM by TheDreadPirate.)
    You need to add the jellyfin user to the render group. That should permanently give it sufficient permissions.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    arctic
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Sep
    Reputation: 1
    #6
    2023-09-08, 06:24 PM
    (2023-09-08, 06:20 PM)TheDreadPirate Wrote: You need to add the jellyfin user to the render group.  That should permanently give it sufficient permissions.

    Yep, did that a while ago. Jellyfin user is part of the render group and video group and I still have this issue.
    haldarritam
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Jan
    Reputation: 0
    Country:Canada
    #7
    2024-01-21, 01:31 PM
    Hi, I am facing the same issue. Were you able to find a solution?
    Also, how did you give Jellyfin permissions to /dev/dri directory?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-01-21, 05:07 PM
    (2024-01-21, 01:31 PM)haldarritam Wrote: Hi, I am facing the same issue. Were you able to find a solution?
    Also, how did you give Jellyfin permissions to /dev/dri directory?

    Step 4 in this doc.

    https://jellyfin.org/docs/general/admini...linux-host
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode