Jellyfin Forum
SOLVED: Transcoding Woes - 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: Transcoding Woes (/t-solved-transcoding-woes)



Transcoding Woes - randvids153 - 2024-01-27

Hello, I hope this is the right place to ask this.

I cant seem to get hardware transcoding to work in my Jellyfin setup. I'm using Intel QSV on my Arc a770. I had this problem on both Debian and Windows.
On Debian, hardware decoding worked fine, but when I activated hardware encoding, all HEVC-encoded video files would error out with a message saying the video is in an incompatible format.
On Windows, neither hardware encoding or decoding would work. The client's video stream was just a blank green picture, and the audio stream was working fine.
Attached below is my most recent log file, generated when trying to play an HEVC-encoded video on my Windows setup. I sadly forgot to save a log from my Debian setup.

.txt   FFmpeg.Transcode-2024-01-27_02-22-20_4fb87df655b4aa932658ef6212d4a74e_781c6808.txt (Size: 53.53 KB / Downloads: 16)
This has me completely stumped, and any help would be greatly appreciated.


RE: Transcoding Woes - nyanmisaka - 2024-01-27

Intel screwed up their Windows driver in 31.0.101.5186/31.0.101.5234. https://github.com/IGCIT/Intel-GPU-Community-Issue-Tracker-IGCIT/issues/680
Rolling back to the previous version 31.0.101.5085/31.0.101.5122 can fix this issue.


RE: Transcoding Woes - randvids153 - 2024-01-27

Hello again, and thank you! That worked like a charm.
I reinstalled Debian, as I would prefer to use it for my media server rather than Windows, and I am still getting the same error as before. I grabbed a log file this time:

https://pastebin.com/BX5e3pNk

I already followed the solution posted on this Reddit thread, https://www.reddit.com/r/jellyfin/comments/ulw3ct/transcoding_with_intel_quicksync_in_docker/ , but to no avail.


RE: Transcoding Woes - randvids153 - 2024-01-29

Upon further inspection, it appears that video decoding isn't working properly either, at least with Intel QSV.

https://streamable.com/uak8vm

This happens occasionally when I jump forward to any part of the video. However, if I let the video play from the beginning, the error never occurs, even if I interrupt the feed by pausing.
Sometimes, instead of the video glitching as seen above, it instead turns into a blank green screen again, but this time without any audio.
Other times, the video just outright freezes. I've also noticed that when scrubbing through the video DOES work, it performs much worse than I had expected, even though the GPU usage goes up, as expected.
Attached below is the log file produced upon experienced all 3 of the above glitches during playback:

https://pastebin.com/0hVzgKFk

I experience no glitches when using VAAPI, other than encoding still not working, exiting out with the same error as in the previous post.

https://pastebin.com/2rc4Cjc3


RE: Transcoding Woes - randvids153 - 2024-01-30

I figured it out. I'll post my solution here just in case anybody has the same problem as me:
I ran 'dmesg | grep i915' and found that my '/lib/firmware/i915/dg2_huc_gsc.bin' file exceeded the maximum size allowed.
I fixed this by manually installing a newer version of the 'firmware-misc-nonfree' package:
http://http.us.debian.org/debian/pool/non-free-firmware/f/firmware-nonfree/firmware-misc-nonfree_20230625-2_all.deb
I now no longer get that error message in the log, and my hardware encoding on both QSV and VAAPI work as expected.