2024-11-17, 12:18 AM
Can you share the ffmpeg logs via pastebin? Also, if you use the full reply editor (click "preview post" or "new reply") you can attach images.
2024-11-17, 12:18 AM
Can you share the ffmpeg logs via pastebin? Also, if you use the full reply editor (click "preview post" or "new reply") you can attach images.
2024-11-17, 12:45 AM
(This post was last modified: 2024-11-17, 12:51 AM by fhireman. Edited 2 times in total.)
@TheDreadPirate let me know if you need something else or if I can get those screenshots to you in another way.
Edit: ah just saw your new reply, I've added the screenshots to this reply. how do I get the ffmpeg logs seperately? I saw some ffmpeg lines in the jellyfin docker container logs so I assumed those were the necessary ones. do you have a command I can run with ffmpeg to try things?
Ubuntu Server 24.04
Intel i5 12500 OS 500GB SSD Storage 6TB WD Red Pro
2024-11-17, 01:17 AM
It looks like this is a docker container. Can you share your docker compose for the jellyfin container?
I found where the ffmpeg logs were, this was the log of me trying to play something with hardware acceleration enabled: https://pastebin.com/NeYkuxhB
My compose file looks like this(using Caddy as a reverse proxy to Jellyfin): Code: services: I'm probably missing something specific for the Jellyfin container to properly use hardware acceleration on the host machine.
Ubuntu Server 24.04
Intel i5 12500 OS 500GB SSD Storage 6TB WD Red Pro
2024-11-17, 02:10 AM
You did not pass the GPU into the container nor the render group ID.
https://jellyfin.org/docs/general/admini...ial-docker Run this to get the render group ID Code: getent group render | cut -d: -f3 Then add this to the docker compose. Replace "122" with the value from the previous command. Code: group_add: Then pass in the GPU. Code: devices:
2024-11-17, 10:55 AM
Nice I think I got it working with:
Code: devices: ffmpeg CPU usage dropped to around 100% now and load average 0.6, way better than the 1130% and 11.2 load average before thanks for the help!
Ubuntu Server 24.04
Intel i5 12500 OS 500GB SSD Storage 6TB WD Red Pro
2024-11-17, 12:53 PM
(This post was last modified: 2024-11-17, 01:10 PM by fhireman. Edited 2 times in total.)
@TheDreadPirate @crobibero
I don't quite understand, I have a lot more issues with my new setup than my old (not Jellyfin recommended) one. old setup: - Running v10.9.11 on Tuxedo laptop with Ubuntu 24.04.1 in Docker containers - Ryzen 8845HS (Radeon 780M iGPU) - 32GB RAM - 4TB m.2 SSD that has both the OS and the media on it - Not connected with ethernet cable, hosting on WiFi (about 200/300 Mbit on average) Nothing done in terms of hardware acceleration, it was all CPU powered & out of the box Jellyfin container, no configuration done. No noise issues or CPU that has high load while playing media. Resuming an episode would not desync subtitles(or only for the first subtitle line after resuming and get back in sync at the next line). Casting to Chromecast through Jellyfin app was flawless with no stuttering. new setup: - Running v10.10.2 on Ubuntu Server 24.04.1 in Docker containers - Intel i5 12500 with UHD Graphics 770 iGPU - 16GB RAM - 500GB SSD for OS - 6TB WD Red Pro for media - connected with 1Gbit ethernet cable High CPU usage/noise and subtitle desync issues out of the box with no configuration when resuming the same media file as on old setup. Extra configuration to get Intel Quicksync going, lowered CPU usage/noise but still has subtitle desync issues when playing through the browser. Casting episode from Jellyfin app to chromecast makes the episode freeze/hang for a few seconds and then play a little bit, freeze again, and play a little bit. Resuming an episode on Jellyfin app itself has desynced subtitles. There has to be something that I'm not configuring correctly that has a big influence on the Jellyfin setup that should be running smoother than the old AMD one. Else I'm really going to regret buying a dedicated Jellyfin Intel build edit: Switching subtitles in this episode from Undefined - SUBRIP- External to English - PGSSUB makes subtitles sync up again with the video, that's at least one big relief. I'll test the casting from the jellyfin app some more this afternoon and hopefully it was just a fluke before.
Ubuntu Server 24.04
Intel i5 12500 OS 500GB SSD Storage 6TB WD Red Pro
2024-11-17, 03:58 PM
SRT subtitles are rendered by the browser directly, not by Jellyfin. In testing this issue in the past, Firefox was, by far, the worst offender when it came to subtitle desync.
What I noticed was that the videos that I had encoded did NOT have this issue. Other videos I had, that I did not re-encode, had desync issues sometimes. The way I was able to resolve the issue was to remux those videos and ensure that the container timestamps were correct. Code: /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/path/to/video.mkv" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mkv Try that out on one of the files you are having issues with.
2024-11-17, 08:46 PM
Thanks for all the answers TDP
I'll try that when I run into a desynced one again. I think my setup is pretty good now, got a second chromecast/google TV thing with a remote which works way better with jellyfin than casting it from the jellyfin app. The episode that was freezing, then playing a little and then freezing again doesn't do this with the chromecast app.
Ubuntu Server 24.04
Intel i5 12500 OS 500GB SSD Storage 6TB WD Red Pro |
|
|