• 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 SOLVED: Trying to get hardware acceleration to work with intel arc a380

     
    • 0 Vote(s) - 0 Average

    SOLVED: Trying to get hardware acceleration to work with intel arc a380

    user learns how to get hardware acceleration to work with Intel Arc A380 and Debian
    iif2fo
    Offline

    Junior Member

    Posts: 14
    Threads: 5
    Joined: 2024 Aug
    Reputation: 0
    #6
    2024-08-27, 05:52 AM
    Oops, I forgot to install necessary packages.

    The Debian wiki helped. https://wiki.debian.org/HardwareVideoAcceleration

    I added this to my /etc/apt/sources.list file.

    Code:
    deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
    deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free

    Then I installed these packages.

    Code:
    $ sudo apt update
    $ sudo apt install intel-media-va-driver
    $ sudo apt install intel-media-va-driver-non-free
    $ sudo apt install firmware-misc-nonfree

    I also added i915.enable_guc=2 to my kernel parameters.

    I updated /etc/default/grub to add:

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet i915.enable_guc=2"

    Then I updated grub and rebooted.

    Code:
    $ sudo update-grub
    $ sudo reboot

    Now my vainfo, looks better!

    Code:
    $ sudo /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128
    Trying display: drm
    libva info: VA-API version 1.22.0
    libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_22
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.22 (libva 2.22.0)
    vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 (12561f6)
    vainfo: Supported profile and entrypoints
          VAProfileNone                  : VAEntrypointVideoProc
          VAProfileNone                  : VAEntrypointStats
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileH264Main              : VAEntrypointVLD
          VAProfileH264Main              : VAEntrypointEncSliceLP
          VAProfileH264High              : VAEntrypointVLD
          VAProfileH264High              : VAEntrypointEncSliceLP
          VAProfileJPEGBaseline          : VAEntrypointVLD
          VAProfileJPEGBaseline          : VAEntrypointEncPicture
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
          VAProfileHEVCMain              : VAEntrypointVLD
          VAProfileHEVCMain              : VAEntrypointEncSliceLP
          VAProfileHEVCMain10            : VAEntrypointVLD
          VAProfileHEVCMain10            : VAEntrypointEncSliceLP
          VAProfileVP9Profile0            : VAEntrypointVLD
          VAProfileVP9Profile1            : VAEntrypointVLD
          VAProfileVP9Profile2            : VAEntrypointVLD
          VAProfileVP9Profile3            : VAEntrypointVLD
          VAProfileHEVCMain12            : VAEntrypointVLD
          VAProfileHEVCMain422_10        : VAEntrypointVLD
          VAProfileHEVCMain422_10        : VAEntrypointEncSliceLP
          VAProfileHEVCMain422_12        : VAEntrypointVLD
          VAProfileHEVCMain444            : VAEntrypointVLD
          VAProfileHEVCMain444            : VAEntrypointEncSliceLP
          VAProfileHEVCMain444_10        : VAEntrypointVLD
          VAProfileHEVCMain444_10        : VAEntrypointEncSliceLP
          VAProfileHEVCMain444_12        : VAEntrypointVLD
          VAProfileHEVCSccMain            : VAEntrypointVLD
          VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
          VAProfileHEVCSccMain10          : VAEntrypointVLD
          VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
          VAProfileHEVCSccMain444        : VAEntrypointVLD
          VAProfileHEVCSccMain444        : VAEntrypointEncSliceLP
          VAProfileAV1Profile0            : VAEntrypointVLD
          VAProfileAV1Profile0            : VAEntrypointEncSliceLP
          VAProfileHEVCSccMain444_10      : VAEntrypointVLD
          VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

    AND my ffmpeg opencl command looks good.

    Code:
    $ sudo /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device opencl@va
    ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 12 (Debian 12.2.0-14)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      58.  2.100 / 58.  2.100
      libavcodec    60.  3.100 / 60.  3.100
      libavformat    60.  3.100 / 60.  3.100
      libavdevice    60.  1.100 / 60.  1.100
      libavfilter    9.  3.100 /  9.  3.100
      libswscale      7.  1.100 /  7.  1.100
      libswresample  4. 10.100 /  4. 10.100
      libpostproc    57.  1.100 / 57.  1.100
    [AVHWDeviceContext @ 0x5647c6f23480] libva: VA-API version 1.22.0
    [AVHWDeviceContext @ 0x5647c6f23480] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
    [AVHWDeviceContext @ 0x5647c6f23480] libva: Found init function __vaDriverInit_1_22
    [AVHWDeviceContext @ 0x5647c6f23480] libva: va_openDriver() returns 0
    [AVHWDeviceContext @ 0x5647c6f23480] Initialised VAAPI connection: version 1.22
    [AVHWDeviceContext @ 0x5647c6f23480] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 (12561f6).
    [AVHWDeviceContext @ 0x5647c6f23480] Driver not found in known nonstandard list, using standard behaviour.
    [AVHWDeviceContext @ 0x5647c6f54fc0] 0.0: Intel(R) OpenCL Graphics / Intel(R) Arc(TM) A380 Graphics
    [AVHWDeviceContext @ 0x5647c6f54fc0] Intel QSV to OpenCL mapping function found (clCreateFromVA_APIMediaSurfaceINTEL).
    [AVHWDeviceContext @ 0x5647c6f54fc0] Intel QSV in OpenCL acquire function found (clEnqueueAcquireVA_APIMediaSurfacesINTEL).
    [AVHWDeviceContext @ 0x5647c6f54fc0] Intel QSV in OpenCL release function found (clEnqueueReleaseVA_APIMediaSurfacesINTEL).
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'

    Unfortunately, playback still fails... 😭

    Here's the new pastebin: https://pastebin.com/ePdfHQ7G

    Code:
    [av1_vaapi @ 0x5640619dcb00] Failed to create encode pipeline context: 2 (resource allocation failed).
    [vost#0:0/av1_vaapi @ 0x5640619caf00] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 12:20 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by TheDreadPirate - 2024-08-27, 12:54 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 02:17 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by TheDreadPirate - 2024-08-27, 02:28 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 04:52 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 05:52 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by nyanmisaka - 2024-08-27, 06:23 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 07:21 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by nyanmisaka - 2024-08-27, 09:10 AM
    RE: Trying to get hardware acceleration to work with intel arc a380 - by iif2fo - 2024-08-27, 03:11 PM

    • 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