-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transcoding w/ Subtitles Causes Entire System to Hang (Ryzen 3400G / Vega 11) #312
Comments
It seems to be when subtitles get burned-in that the problem arises. I see it most often with Roku, but can replicate elsewhere. For instance, the web app does not have a problem with the file in my report, but my system will hang if I attempt to play Shin Godzilla's Japanese Subtitles. (English subs are okay).
|
The seems to be a kernel issue of amdgpu driver. Can you try with the latest 6.1 or 6.2-rc? |
I tried kernel 6.0.0-0.deb11.6-amd64 (bullseye-backports) without any luck. This weekend I'll upgrade to Debian Bookworm to see if the problem continues. If it is a kernel / driver problem, what would the next steps be? |
I upgraded to these versions without luck.
MediaInfo ffmpeg Log kern.log |
Can you try the latest release Jellyfin 10.8.9? |
I downgraded to 10.8.9-1 and was able to transcode the videos. That being said, I can't transcode HEVC now, which I believe is expected, because this version does not use Vulkan filtering. It's interesting that I'm having an issue, as I see that this user has a similar iGPU (Vega 7) and can hard-code subs. Jellyfin Log ffmpeg Log of SDR video ffmpeg log of HEVC video dmesg while attempting to transcode HEVC video.
|
Both 2400G/3400G and 5600G are Vega but 5600G is 2nd Gen VCN. I used to report an issue for VCN1. Maybe there's something wrong with it again. https://gitlab.freedesktop.org/mesa/mesa/-/issues/3117 |
Can you try this command?
|
Sure thing. This command seems to be it, but it's inconsistent on the timing of the fault. When I first ran it, ffmpeg froze around 15 seconds. After rebooting, it didn't freeze until about 46 seconds in. I even shut down other services like Jellyfin and radeontop to make sure that this command was the only thing using the iGPU. dmesg
|
Can you downgrade jellyfin-ffmpeg5 to an old version 5.1.2-2? It uses older mesa 22.0.5 instead of the current 22.3.4. |
I manually installed libllvm11 as a dependency, since it is not available in bookworm, and then installed jellyfin-ffmpeg5 5.1.2-2. Same problem.
|
Please try these CLI and give some feedback. decode + all filters
decode + no reverse map
decode + no placebo
decode + no overlay
transfer only
|
I upgraded back to ffmpeg 5.1.2-7
GPU reset. System hangs.
Transcoded the entire file without issue.
GPU reset. System hangs.
Transcoded the entire file without issue.
ffmpeg complained a little bit, sending lots of error messages like this. Otherwise it completed without issue. |
So I'm thinking of upgrading to a Ryzen Pro 5650g, which has VCN 2, to get away from this problem. @nyanmisaka, would you mind sharing your thoughts? If this looks like a kernel/driver issue that won't be solved anytime soon, would you recommend changing processors or could I disable reverse mapping somehow? |
@alexi741 The reverse mapping is essential for zero-copy transcoding. So its more like the issue is caused by the VCN1 KMD. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I have experienced a similar issue, when a selection of subtitles from Roku app causes the Jellyfin server to use 100% of all the CPUs and sporadically hang. I tried limiting bitrate and set transcoding path to a RAM-disk as following in and however to no avail. My setup:
|
When attempting to transcode subtitles, GPU reports 100% usage, CPU utilization climbs unbounded, and the system hangs after a couple minutes. I must hard-reset the sever.
This makes it hard to watch my animes.
Kern.log
https://pastebin.com/EywS6jE7
https://pastebin.com/EYWKTP0D
Highlights
Media Info of the file
https://pastebin.com/GqPWvvmD
Jellyfin Server Logs
FFmpeg Logs
https://pastebin.com/myX1RZ3j
Server System (please complete the following information):
Client System (please complete the following information):
The text was updated successfully, but these errors were encountered: