#Debug Intel QSV en/decoding on a 12th Gen Intel CPU

1 messages · Page 1 of 1 (latest)

civic tangle
#

@fluid lark lets start here

fluid lark
#

this will be a bit trial and error, but from the logs it seems it's down to libmfx not working as expected with this cpu. 12th gen is in an interesting spot where it's supported by both the older libmfx and the newer libvpl.

#

try passing INTEL_MEDIA_RUNTIME=ONEVPL to the container

civic tangle
#

I just have seen it happens inside the LXC container already. Let me debug that first why it happens already at that stage. The LXC has the same config as the jellyfin one.

civic tangle
#

jellyfin-ffmpeg6 = does not work.

#

jellyfin-ffmpeg5 = works

#

Let me downgrade it in the microservices container.

#

@fluid lark works lol

#

Okay. But this seems to have an Issue with iPhone HEVC videos.

#

Asking in the jellyfin discord.

civic tangle
#

I was able to strip this down.

#

Only 240fps SloMos are failing with QSV now.

#

Thats an case where one could live with.

#

But are you able to downgrade jellyfin-ffmpeg6 to 5.13?

fluid lark
#

13th gen cpus require libvpl which is shipped in 6.0.

if it’s working with 5.1.3, i’m thinking that it’s because it’s using libmfx without any ambiguity

civic tangle
#
#

Seems like a known bug

fluid lark
#

that dependency caught my eye in the article you shared as well. can you try installing libmfx-gen1.2 to see if that works?

civic tangle
#

No. Doesn´t work.

#

Same issue here. Seems like there is no proper fix for ffmpeg6 yet.

fluid lark
#

yeah at that point i'm running low on suggestions 😅

#

you could maybe try INTEL_MEDIA_RUNTIME=MSDK?

civic tangle
#

Tried. No difference.

fluid lark
#

your best bet in that case is to just stick with the ffmpeg5 release you have installed. hopefully they release a fix for this

civic tangle
#

But that requires me to edit the container after every reboot and Immich update. Maybe I edit my systemd script to do that for me.

fluid lark
#

you could make a dockerfile with the release as the base image and add the command to install jellyfin-ffmpeg5. not ideal, but it will at least make it less manual.

civic tangle
#

I extended ,my systemd startscript for immich. Pretty hacky but does what i need 😄