Jellyfin Forum
SOLVED: H265 qsv linux not working - 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: SOLVED: H265 qsv linux not working (/t-solved-h265-qsv-linux-not-working)



H265 qsv linux not working - K4YN5 - 2024-10-07

I have a problem when trying to transcode h265 content with QSV. It doesn't show up as an option. I have the n100 cpu, and it should be capable of doing so. When QSV is deactivated, it runs, but it throttles. The files are on a good state so it's not their fault either. On the logs of the ffmpeg this show up

[AVHWDeviceContext @ 0x59eaeb70acc0] No VA display found for any default device.
Device creation failed: -22.
Failed to set value 'vaapi=va:,kernel_driver=i915,driver=iHD' for option 'init_hw_device': Invalid argument
Error parsing global options: Invalid argument

Does anyone know how to solve it?


RE: H265 qsv linux not working - TheDreadPirate - 2024-10-07

What OS? And do you using any virtualization (docker, VM, LXC)?

Can you the full ffmpeg log via pastebin?


RE: H265 qsv linux not working - K4YN5 - 2024-10-07

https://pastebin.com/Za5xQ5ef

I am using arch Linux on bare metal and I have Jellyfin on a docker container.


RE: H265 qsv linux not working - TheDreadPirate - 2024-10-07

You enabled AV1 encoding. The N100 does not support encoding AV1. Only decoding AV1.


RE: H265 qsv linux not working - K4YN5 - 2024-10-07

I disabled it, however it still complains and doesn't work. The new log.

https://pastebin.com/ZkmYR0Xp


RE: H265 qsv linux not working - TheDreadPirate - 2024-10-07

You still have AV1 encoding enabled.

Code:
-codec:v:0 av1_qsv

What did you disable?  There are two AV1 settings.  One for decoding and one for encoding.  See my screenshot below.  The box at the top is for DECODING, which the N100 supports, and the bottom box, labeled "Allow encoding in AV1 format", is for encoding, which the N100 does not support.

   


RE: H265 qsv linux not working - K4YN5 - 2024-10-07

Thanks! I have been disabling the decoding and leaving the encoding enabled, however it still doesn't work.

https://pastebin.com/An1P2hAn

On the docker compose I haven't added any special group, render video etc., I've been seeing people adding them on some Reddit posts, could that be the cause from the error?


RE: H265 qsv linux not working - TheDreadPirate - 2024-10-07

Almost certainly. You have to both pass in the device and pass in the render group ID.

https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#configure-with-linux-virtualization

My docker compose for reference.

Code:
jellyfin-prod:
    image: jellyfin/jellyfin:10.9.11
    container_name: jellyfin-prod
    user: 1002:1002
    group_add:
      - "993" # Intel render group
    networks:
      blackmoon:
        ipv4_address: 172.16.100.10
    expose:
      - 8096
    volumes:
      - ./jellyfin-prod-data/config:/config
      - ./jellyfin-prod-data/cache:/cache
      - /media/library:/media/library
      - /media/ramdisk:/media/ramdisk
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
    environment:
      - TZ=America/New_York
    restart: unless-stopped



RE: H265 qsv linux not working - K4YN5 - 2024-10-07

Now it's finally working!! Thank you very much!