mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Media sources duration mismatch leeds to the loops at the end of the file #6980
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Victor-Y-Fadeev on GitHub (May 1, 2025).
Description of the bug
When I play media with the different length of video, audio or subtitles I got loops at the end of file.
Bug occures on Android phone and Android TV, but I can not guarantee it's reprodusion in browser.
I got two examples for this bug reprodution.
The common one is single
*.mkvwith one video, two audio and two subtitles streams.The last subtitle duration is loger than video and the empty segments filled with repetitions of the end of the video and audio stream.
Duration of streams:
00:01:32.09200000000:01:32.138000000(AniLibria)00:01:32.09000000000:00:29.490000000(AniLibria [Надписи])00:01:50.120000000(AniLibria [Полные])GDrive links:
/data/series/anime/Overlord (2015) [tvdbid-294002]/Specials/s00e26 Pure Pure Pleiades 2 - Play 11 - A Dangerous One.mkvThe next one contain:
*.mkvwith one video, two audio and two subtitles*.mkaexternal audio*.srtexternal subtitleIt's "harder" to reproduce because of file duration.
You need to play/cache the whole file to catch the repetitions of external audio at the end of file.
If I play the end of file I cannot catch the but with loops.
Duration of files:
*.mka:00:24:37.84(all)*.mka:00:24:28.03*.srt:N/AGDrive links:
/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.mkv/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.mka/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.srtReproduction steps
TV Showsmedia library/data/series/animewith files from GDrive:/data/series/anime/Overlord (2015) [tvdbid-294002]/Specials/s00e26 Pure Pure Pleiades 2 - Play 11 - A Dangerous One.mkv/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.mkv/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.mka/data/series/anime/Chobits (2002) [tvdbid-72070]/Season 01/s01e06 Chi Weakens.srtPure Pure Pleiades 2 - Play 11 - A Dangerous One- withAniLibriaaudioChi Weakens- with external audioWhat is the current bug behavior?
If subtitles longer than video then video and audio will be looped to fill the missing segment at the end of file.
If audio shorter than video then the end of audio will be repeated after end until the end of video stream.
What is the expected correct behavior?
Play shoub be stopped after video end. Don't continue or repeating anythin if video stream ends. For example MPV player do this.
If audio ends before video then there shoud be silense til the end of video stream. Don't switch to another audio or repeats of this one.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.7
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
Full GDrive folder link: https://drive.google.com/drive/folders/15382dd89O4Q11XCPBGs9CY3O1qR0iTUQ?usp=drive_link
Screen_Recording_20250501_001215_Jellyfin.mp4
Additional information
ffprobe log:
I also rise test server for this issue.
Feel free to use it for debug propose, there are no any sensitive data.
Address: http://84.201.146.155/
Login:
rootPassword:
rfrjq-nj gfhjkm@Victor-Y-Fadeev commented on GitHub (May 1, 2025):
Android application version 2.6.2
@Victor-Y-Fadeev commented on GitHub (May 1, 2025):
You can also just unpack my jellyfin.tar.gz and run:
My Docker file:
@Tardo commented on GitHub (May 8, 2025):
Same bug here... browser. I haven't checked if the reason matches, but the playback goes into a strange loop. It usually happens towards the end, but not always...
Next time I experience this, I'll try to debug it and provide more information...
@Victor-Y-Fadeev commented on GitHub (Jul 16, 2025):
This bug isn't clear to reproduce in browser, because not the all browsers support mkv container and H.265 codec.
If browser don't support this then server transcode media to H.264 and bud disappear.
To clear reproduce the bug is better to use Android application.
This way lead to 100% reproduction of bug for file /data/series/anime/Overlord (2015) [tvdbid-294002]/Specials/s00e26 Pure Pure Pleiades 2 - Play 11 - A Dangerous One.mkv
How can I help for better approving the bug?
@Victor-Y-Fadeev commented on GitHub (Jul 17, 2025):
@felix920506 Why this labelled as
Wrong Repo?As I understand, the bug on the server side because if browser support
*.mkv+ H.265 it reproduces by the same way as for application.@felix920506 commented on GitHub (Jul 17, 2025):
Your bug report clearly implies that it is direct playing. In this case, the source file is sent in its entirety to the client and whatever playback issue that arises is going to be entirely on the client.
@Victor-Y-Fadeev commented on GitHub (Jul 17, 2025):
So, then I need to move this issue to jellyfin/jellyfin-android and jellyfin/jellyfin-androidtv repos?
@gregersn commented on GitHub (Jul 18, 2025):
I sometimes experience loops at the end of play as well. In Firefox on Linux (desktop). I haven't been a ble to consistently reproduce it, though. So not sure if it is the same issue.
@Victor-Y-Fadeev commented on GitHub (Jul 18, 2025):
@gregersn Try to use Application with the test server in the end of this issue description - http://84.201.146.155/
I reproduce bug in Microsoft Edge browse because it completely supports
*.mkv+ H.265.But I cannot clear reproduce it in Chrome or Firefox.
Better way is to use android app for phone or tv.
@jellyfin-bot commented on GitHub (Nov 16, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jellyfin-bot commented on GitHub (Dec 7, 2025):
This issue was closed due to inactivity.