2024-12-11, 10:43 PM
Without seeing your logs and comparing how each client plays the file, it is hard to say what is going on.
Usually this issue is caused by a poorly muxed file. Which can, usually, be fixed by remuxing with ffmpeg of mkvtoolnix. If your other clients, specifically, iOS, Android, and web, are transcoding this is essentially remuxing. Jellyfin Media Player uses MPV as the playback engine, and it is likely handling the bad mux on the fly. The Jellyfin app for AndroidTV uses Exoplayer, which is built into Android, and Exoplayer generally does not handle malformed files like MPV or VLC does.
You can open a bash shell into the container to use ffmpeg inside the container to remux the file.
Usually this issue is caused by a poorly muxed file. Which can, usually, be fixed by remuxing with ffmpeg of mkvtoolnix. If your other clients, specifically, iOS, Android, and web, are transcoding this is essentially remuxing. Jellyfin Media Player uses MPV as the playback engine, and it is likely handling the bad mux on the fly. The Jellyfin app for AndroidTV uses Exoplayer, which is built into Android, and Exoplayer generally does not handle malformed files like MPV or VLC does.
You can open a bash shell into the container to use ffmpeg inside the container to remux the file.
Code:
sudo docker exec -it jellyfin bash
/usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/path/to/your/file.mkv" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mkv