Jellyfin Forum
Transcoding not working on docker with QSV - 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: Transcoding not working on docker with QSV (/t-transcoding-not-working-on-docker-with-qsv)



Transcoding not working on docker with QSV - kaeru - 2025-02-27

Hello, I am having troubles with transcoding.
I have an old QNAP NAS (TS451A) with an Intel Celeron N3060 CPU. This CPU should support Intel QSV. I use docker to run jellyfin and I imported the device for the GPU
Transcoding never worked great, but I noticed that I was using VAAPI, so I tried to switch to QVS but i get the error:

[AVHWDeviceContext @ 0x5592e061bdc0] libva: /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so init failed
[AVHWDeviceContext @ 0x5592e061bdc0] Failed to initialise VAAPI connection: 1 (operation failed).
Device creation failed: -5.
Failed to set value 'vaapi=va: /dev/dri/renderD128,driver=iHD' for option 'init_hw_device': Input/output error
Error parsing global options: Input/output error

full ffmpeg log
.txt   ffmpeg.txt (Size: 11.52 KB / Downloads: 18)

I don't really know what I'm doing wrong here.
Thank you in advance for your help


RE: Transcoding not working on docker with QSV - TheDreadPirate - 2025-02-27

You are trying to encode to HEVC, which your Braswell CPU does not support. Uncheck "Allow encoding in HEVC format".

Use this table to ensure you only check the boxes your CPU/iGPU supports decoding or encoding.

https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding


RE: Transcoding not working on docker with QSV - kaeru - 2025-03-04

I'm sorry for the delay. I probably didn't set the notifications settings right.
The option you mentioned was already unchecked. The link you sent made me realize that I was trying to transcode HEVC with a depth of 10 bits, that is unsupported by my iGPU.
Transcoding of HEVC 8bit lead to the same error though


RE: Transcoding not working on docker with QSV - 34626 - 2025-03-04

Could you also please share your docker-compose fle?


RE: Transcoding not working on docker with QSV - TheDreadPirate - 2025-03-04

(2025-03-04, 05:37 PM)kaeru Wrote: I'm sorry for the delay. I probably didn't set the notifications settings right.
The option you mentioned was already unchecked. The link you sent made me realize that I was trying to transcode HEVC with a depth of 10 bits, that is unsupported by my iGPU.
Transcoding of HEVC 8bit lead to the same error though

In my post I stated that your CPU/iGPU doesn't support HEVC ENcoding.  There is a separate check box farther down labeled "Allow encoding in HEVC format" and that you need to uncheck that one.


RE: Transcoding not working on docker with QSV - kaeru - 2025-03-05

I'm sorry I didn't explain myself. I probably unckecked the check box for HEVC ENCODING a while back and so I found it unchecked when I switched to QVS. Anyway it is unchecked and I get the same error.
For transcoding I have checked h264, HEVC, MPEG2, VC1, VP8
For encoding I have nothing checked as it sais that h264 is always on


Here is the docker compose:

services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
network_mode: 'host'
volumes:
- /share/Container/jellyfin/config: /config
- /share/Container/jellyfin/cache: /cache
- /share/Multimedia: /media
devices:
- /dev/dri/: /dev/dri/
restart: 'unless-stopped'

I am using portainer, don't know if it helps
[edit]I adderd a space between the ":" and the "/" as it were interpret as the Confused-face emoji. On my docker compose there is no space


RE: Transcoding not working on docker with QSV - 34626 - 2025-03-05

Please try this, do backup your current docker-compose.ymlfile

One error you may occur with the text below is missing spave in the beginning, but else it should work, i use the added functions with Debian 12.9 with QSV which works. Be also aware that i have edited in the path to config and cache, should also work

services:
jellyfin:
image: jellyfin/jellyfin:latest # 10.10.6 (current)
container_name: jellyfin
network_mode: 'host'
group_add:
  - "105" # Run in terminal to verify the number: "getent group render | cut -d: -f3"
volumes:
- ./config: /config
- ./cache: /cache
- /share/Multimedia: /media
    devices:
  - /dev/dri/renderD128:/dev/dri/renderD128
  - /dev/dri/card0:/dev/dri/card0
restart: 'unless-stopped'


RE: Transcoding not working on docker with QSV - TheDreadPirate - 2025-03-05

If I'm reading your initial log correctly, you do NOT have the following box checked.

"Prefer OS native DXVA or VA-API hardware decoders"

Try checking that box. It is slightly slower than using QSV for decoding, but it is more flexible and reliable.