Jellyfin Forum
Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU (/t-unable-to-transcode-on-debian-12-6-10-kernel-with-arc-a310-gpu)



Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Betonhaus - 2024-10-17

Hi I can't seem to get transcoding working. I have an intel Arc a310 in my server running Debian 12 with the 6.10 backports kernel 
ffmpg log: https://pastebin.com/rawiYxYL 
gpu support: https://pastebin.com/ZiFKuWMh  https://pastebin.com/gES1Wcns
Code:
intel-opencl-icd:
  Installed: 24.35.30872.22
  Candidate: 24.35.30872.22
  Version table:
*** 24.35.30872.22 100
        100 /var/lib/dpkg/status
    22.43.24595.41-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
I just keep getting a playback errorPlayback failed due to a fatal player error. Playback Error
Playback failed due to a fatal player error.


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - TheDreadPirate - 2024-10-17

You need to check box low power encoding options. But first you need to verify that you have the packages needed to enable that.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#configure-and-verify-lp-mode-on-linux

Skip step 2, not needed for Arc.


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Betonhaus - 2024-10-17

(2024-10-17, 07:26 PM)TheDreadPirate Wrote: You need to check box low power encoding options.  But first you need to verify that you have the packages needed to enable that.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#configure-and-verify-lp-mode-on-linux

Skip step 2, not needed for Arc.

running that then testing gives me:
Code:
$ sudo dmesg | grep i915
[    4.394028] i915 0000:05:00.0: [drm] VT-d active for gfx access
[    4.394167] i915 0000:05:00.0: vgaarb: deactivate vga console
[    4.394175] i915 0000:05:00.0: [drm] Can't resize LMEM BAR - platform support is missing
[    4.394186] i915 0000:05:00.0: [drm] Using a reduced BAR size of 256MiB. Consider enabling 'Resizable BAR' or similar, if available in the BIOS.
[    4.409104] i915 0000:05:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    4.413907] i915 0000:05:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_08.bin (v2.8)
[    5.183759] i915 0000:05:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin (70.12.1) is recommended, but only i915/dg2_guc_70.bin (70.5.1) was found
[    5.183767] i915 0000:05:00.0: [drm] GT0: Consider updating your linux-firmware pkg or downloading from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[    5.184112] i915 0000:05:00.0: firmware: failed to load i915/dg2_huc_gsc.bin (-2)
[    5.184128] i915 0000:05:00.0: firmware: failed to load i915/dg2_huc_gsc.bin (-2)
[    5.184131] i915 0000:05:00.0: [drm] *ERROR* GT0: HuC firmware i915/dg2_huc_gsc.bin: fetch failed -ENOENT
[    5.184139] i915 0000:05:00.0: [drm] GT0: HuC firmware(s) can be downloaded from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[    5.189461] i915 0000:05:00.0: [drm] GT0: GuC firmware i915/dg2_guc_70.bin version 70.5.1
[    5.201363] i915 0000:05:00.0: [drm] GT0: GUC: submission enabled
[    5.201367] i915 0000:05:00.0: [drm] GT0: GUC: SLPC enabled
[    5.201615] i915 0000:05:00.0: [drm] GT0: GUC: RC enabled
[    5.248878] [drm] Initialized i915 1.6.0 20230929 for 0000:05:00.0 on minor 1
[    5.328490] i915 0000:05:00.0: [drm] Cannot find any crtc or sizes
[    5.388466] i915 0000:05:00.0: [drm] Cannot find any crtc or sizes
[    5.388475] snd_hda_intel 0000:06:00.0: bound 0000:05:00.0 (ops i915_audio_component_bind_ops [i915])
$ sudo cat /sys/kernel/debug/dri/0/gt/uc/guc_info
sudo cat /sys/kernel/debug/dri/0/gt/uc/huc_info
cat: /sys/kernel/debug/dri/0/gt/uc/guc_info: No such file or directory
cat: /sys/kernel/debug/dri/0/gt/uc/huc_info: No such file or directory
then I get the following transcoding error: https://pastebin.com/PhDd9txg


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - TheDreadPirate - 2024-10-17

It did not find the HuC firmware.

Code:
sudo apt list --installed | grep firmware-linux-nonfree

If that returns nothing then.

Code:
sudo apt update && sudo apt install -y firmware-linux-nonfree

If that doesn't install anything, you need to modify the debian repos and add "non-free" to the sources list.

https://unix.stackexchange.com/questions/736065/how-do-i-install-non-free-firmware-in-debian-12-bookworm


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Betonhaus - 2024-10-17

(2024-10-17, 08:34 PM)TheDreadPirate Wrote: It did not find the HuC firmware.

Code:
sudo apt list --installed | grep firmware-linux-nonfree

If that returns nothing then.

Code:
sudo apt update && sudo apt install -y firmware-linux-nonfree

If that doesn't install anything, you need to modify the debian repos and add "non-free" to the sources list.

https://unix.stackexchange.com/questions/736065/how-do-i-install-non-free-firmware-in-debian-12-bookworm

Code:
$ sudo apt list --installed | grep firmware-linux-nonfre

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

firmware-linux-nonfree/stable,now 20230210-5 all [installed]

would it be easier if I reinstall with Ubuntu 24 lts instead of Debian 12? it has a version 6.8 kernel which is sufficient for Arc support. most of my apps are in docker format so migration should be simple


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - TheDreadPirate - 2024-10-17

Technically, yes. But you shouldn't have to. The Intel documentation I linked earlier also has instructions for manually downloading and installing Intel's firmware.

Code:
cd ~/
git clone --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo mkdir -p /usr/lib/firmware
sudo cp -r linux-firmware/i915 /usr/lib/firmware

Looks simple enough.


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Betonhaus - 2024-10-17

honestly, at this point I problably would have less headaches just doiung a reinstall with ubuntu. almost everything is a docker image and it seems simple enoug to remigrate jellyfin from my old server. I've had a few other issues that would be solved by a fersh install, and the 6.8 kernel in ubuntu should be mosre stable then the 6.10 backports installed


RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - gnattu - 2024-10-17

Debian 12 does not have new enough firmware required for Intel Arc.

You need to manually pull from source tree:


Code:
cd ~/
git clone --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo mkdir -p /usr/lib/firmware
sudo cp -r linux-firmware/i915 /usr/lib/firmware




RE: Unable to transcode on Debian 12 (6.10 kernel) with Arc a310 GPU - Betonhaus - 2024-10-17

reinstalling to ubuntu worked fine, and it was abel to get a jellfyin docker image up and running with transcodign super fast - and it kept all the data from the old server.
i'm happy now.