Jellyfin Forum
Hardware Encoding problem - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Hardware Encoding problem (/t-hardware-encoding-problem)

Pages: 1 2 3


Hardware Encoding problem - Parz1val - 2024-06-18

Whello, i am trying to host Jellyfin image from linuxserver on alpine docker with portainer from proxmox helper scripts. I am using linuxserver because thats what im using on my unraid server but im migrating from that, so i thought it would be easier to just copy all files over, which i did. Now all is working except hardware encoding. My jellyfin version is 10.9.6. I have posted my logs from portainer

These are my settings for encoding:
https://imgur.com/a/59vFdsn

I am using a Intel® Core™ i7-6700 Processor https://ark.intel.com/content/www/us/en/ark/products/88196/intel-core-i7-6700-processor-8m-cache-up-to-4-00-ghz.html
I have tried installing a fresh image from jellyfin instead but the problem still persist. (I have used the fresh image to test, because it was the same error, and i didn't want to mess with the one were i already moved my settings, because it took a long time to figure out how to do that)
But i think i know the problem but dont know how to fix it and that is jellyfin-ffmpeg is missing at /usr/lib/jellyfin-ffmpeg/ffmpeg which is what is specified in settings
There just isn't a folder called jellyfin-ffmpeg
And i have made passthrough from my proxmox host and im pretty sure its setup correctly. I dont know what screenshots or settings you might else need to see (Im new to this sort of thing, i always find my solution in another post) So write if you want to see something else and i will happily screenshot it/write the command.

my media folder is still on the unraid server and is connected through nfs share. And jellyfin will play the movies/shows if i disable hardware acceleration aka set it to none

Maybe you also need this, idk
https://imgur.com/a/Qyrtrl3


RE: Hardware Encoding problem - TheDreadPirate - 2024-06-18

Can you share the ffmpeg log? Those are in the same folder as the log you attached.

Looks at steps 4 and 5 from this section of our Intel docs.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#official-docker

They will help validate that the docker has sufficient access to the iGPU.

Also, are you running docker in a LXC/VM? Or directly on proxmox/debian?


RE: Hardware Encoding problem - Parz1val - 2024-06-18

(2024-06-18, 06:35 PM)TheDreadPirate Wrote: Can you share the ffmpeg log?  Those are in the same folder as the log you attached.

Looks at steps 4 and 5 from this section of our Intel docs.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#official-docker

They will help validate that the docker has sufficient access to the iGPU.

Also, are you running docker in a LXC/VM?  Or directly on proxmox/debian?

This is what happens when i check if it has access
https://imgur.com/a/X8okGh6

"Also, are you running docker in a LXC/VM?  Or directly on proxmox/debian?"
I am running it in an LXC with Alpine docker, portainer and docker compose v2, its a container from tteck helper scripts/proxmox helper scripts
So to clarify it is running on portainer https://imgur.com/a/Z4ulA86


RE: Hardware Encoding problem - TheDreadPirate - 2024-06-18

How did you do the GPU passthrough into the LXC?

https://forum.proxmox.com/threads/guide-jellyfin-remote-network-shares-hw-transcoding-with-intels-qsv-unprivileged-lxc.142639/

Skip down to "Set up the Intel iGPU passthrough using QSV". Is that what you did? In the LXC can you see the GPU?

sudo ls -l /dev/dri


RE: Hardware Encoding problem - Parz1val - 2024-06-18

(2024-06-18, 06:35 PM)TheDreadPirate Wrote: Can you share the ffmpeg log?  Those are in the same folder as the log you attached.

Looks at steps 4 and 5 from this section of our Intel docs.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#official-docker

They will help validate that the docker has sufficient access to the iGPU.

Also, are you running docker in a LXC/VM?  Or directly on proxmox/debian?

I just noticed i didn't share the ffmpeg, but i have alot of those logs, which one do you need/want?
https://imgur.com/a/n9Nnp4F

(2024-06-18, 07:55 PM)TheDreadPirate Wrote: How did you do the GPU passthrough into the LXC?

https://forum.proxmox.com/threads/guide-jellyfin-remote-network-shares-hw-transcoding-with-intels-qsv-unprivileged-lxc.142639/

Skip down to "Set up the Intel iGPU passthrough using QSV".  Is that what you did?  In the LXC can you see the GPU?

sudo ls -l /dev/dri

https://imgur.com/a/kdSZ6uO
Yes it can see the GPU after what i can see, but i will check the guide


RE: Hardware Encoding problem - Parz1val - 2024-06-18

(2024-06-18, 07:55 PM)TheDreadPirate Wrote: How did you do the GPU passthrough into the LXC?

https://forum.proxmox.com/threads/guide-jellyfin-remote-network-shares-hw-transcoding-with-intels-qsv-unprivileged-lxc.142639/

Skip down to "Set up the Intel iGPU passthrough using QSV".  Is that what you did?  In the LXC can you see the GPU?

sudo ls -l /dev/dri

The container is running as privileged, so i followed a guide i found on github
https://imgur.com/a/5j0qICw
https://github.com/jellyfin/jellyfin.org/issues/982


RE: Hardware Encoding problem - TheDreadPirate - 2024-06-18

And how are you passing the iGPU into the jellyfin container?


RE: Hardware Encoding problem - Parz1val - 2024-06-18

(2024-06-18, 08:08 PM)TheDreadPirate Wrote: And how are you passing the iGPU into the jellyfin container?

I am passing the group id's to the jellyfin container here:
https://imgur.com/a/9Ya0gft

and then im also adding the drive here:
https://imgur.com/a/Il2Cx9k
I have tried both /dev/dri/ and /dev/dri/RenderD128


RE: Hardware Encoding problem - TheDreadPirate - 2024-06-18

(2024-06-18, 07:57 PM)Parz1val Wrote: I just noticed i didn't share the ffmpeg, but i have alot of those logs, which one do you need/want?
https://imgur.com/a/n9Nnp4F

I want the ffmpeg_transcode logs.

Also, do you have IOMMU enabled in your BIOS?


RE: Hardware Encoding problem - Parz1val - 2024-06-18

(2024-06-18, 08:33 PM)TheDreadPirate Wrote:
(2024-06-18, 07:57 PM)Parz1val Wrote: I just noticed i didn't share the ffmpeg, but i have alot of those logs, which one do you need/want?
https://imgur.com/a/n9Nnp4F

I want the ffmpeg_transcode logs.

Also, do you have IOMMU enabled in your BIOS?

I got you two different logs, tell me if you need more

Im not sure if i have that enabled in my BIOS. I will check tommorow