mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[Issue]: [10.9] Resuming playback results in video (and subtitles) being out of sync #5709
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 @MBR-0001 on GitHub (May 12, 2024).
Please describe your bug
If I resume a video on 10.8 and go to 12 minutes 18 seconds into the video and then do the same on 10.9 I'll get a different frame. On 10.9 that exact frame is on 12 minutes 20 seconds which causes subtitles being out of sync. Jumping to any point on the timeline will give unsynced video.
Seems that this happens when direct streaming (video direct but not audio).
Reproduction Steps
Jellyfin Version
10.9.0
if other:
No response
Environment
Jellyfin logs
FFmpeg logs
Please attach any browser or client logs here
No response
Please attach any screenshots here
Same frame in 10.9 and vlc
Code of Conduct
@jellyfin-bot commented on GitHub (May 12, 2024):
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems.
@joranv1 commented on GitHub (May 12, 2024):
Same issue here. Subtitles are out of sync because of this.
@MBR-0001 commented on GitHub (May 12, 2024):
Something else I noticed is that if you resume a video and then jump to 0:00, during the first 10 seconds the video will repeat a second or two which possibly causes this? 🤷
@fanonwue commented on GitHub (May 13, 2024):
One thing to note: from my testing, this appears to be client-side. I encounter this bug using the Web client, but not when using Google TV client.
@doenut96 commented on GitHub (May 13, 2024):
Can confirm that after resuming a video and then jumping back to 0:00, the video (and audio) starts from the beginning, but the actual timer displays 0:02 and keeps counting from there, which accounts perfectly for the subtitles being 2 seconds early.
I have also been unable to replicate the issue on the current versions of the Jellyfin Media Player, Android mobile app and Android TV app which seems to confirm it as an issue specific to the new web client.
This issue still occurs as of version 10.9.1.
@Snuupy commented on GitHub (May 13, 2024):
The text size setting is not respected in 10.9.1 as well.
@Bram-Brooks commented on GitHub (May 13, 2024):
Same issue for me running 10.9.1.
@TimGels commented on GitHub (May 13, 2024):
Sounds like a different thing than what this ticket is about
@felix920506 commented on GitHub (May 13, 2024):
Hi, please open a new report for text size issues
@gazhay commented on GitHub (May 13, 2024):
Can confirm android app.on multiple devices (chromecast, nvidia shield, firestick) all experience audio sync issues with most recent updates.
@ikheetjeff commented on GitHub (May 14, 2024):
Same issue here! As last option i have downgraded to 10.8.13 and the issue is gone.
I just noticed that videos that are transcoded, there the problem is worse/faster. It doesn't matter if hardware acceleration is on.
Nor does it matter if the subtitle is external or in the video file, either way the problem happens.
I then converted an mkv video with Handbrake to mp4 with the subtitles, and it did seem to improve then.
@felix920506 commented on GitHub (May 14, 2024):
This sounds like a duplicate of #2547
@fanonwue commented on GitHub (May 14, 2024):
I don't think it is. The issue you linked is from 2020, but the issue we are discussing here only happens with 10.9. It's perfectly fine on 10.8.13. Never had out of sync subtitles with the web client before.
@Snuupy commented on GitHub (May 14, 2024):
I can't reproduce now, maybe it was because my web version was cached or I needed to log out and log in again. Text size not an issue for me now but I will open an issue if it shows up again. Thanks.
@N8-Yue commented on GitHub (May 14, 2024):
I had this issue with 10.8.13 as well and it's still existing. The web player lags behind when skipping forward/backward. The exoplayer has no issues at all so it's not a wrong timing thing.
@Debsu2020 commented on GitHub (May 16, 2024):
I have this same issue with Jellyfin-server 10.9.1, when using web-client and no issues in Jellyfin Media Player.
@N8-Yue commented on GitHub (May 16, 2024):
Same thing for me. If I use the web client on my android devices the subtitles will lag behind when you skip or stop the video once. The Exoplayer has no issue and the JMP also works fine.
@maarten-vdb commented on GitHub (May 16, 2024):
I'm having this problem with the webplayer as well.
@TimGels commented on GitHub (May 16, 2024):
This issue only affects the web player with what we currently know.
@maarten-vdb commented on GitHub (May 18, 2024):
Thanks for the quick PR!
#11689 seems to have improved the subtitle offset somewhat but for me, the issue still seems to remain. Everytime I seek in a video, the offset seems to get bigger. Quite consistently at that.
Still only for the web player
@gnattu commented on GitHub (May 18, 2024):
Let's make things clear:
@MBR-0001 commented on GitHub (May 18, 2024):
I don't get this issue anymore in 10.9.2
@maarten-vdb commented on GitHub (May 18, 2024):
I seem to have made a mistake :) When the video is transcoding, it appears to have the same problem as direct play had in 10.9.1. It seems to look a lot like #2547 . Whenever the video is played directly, it does appear to work like expected.
I do have to say, desyncing subtitles when transcoding appears to have worsened after 10.9.x . But that's probably worth a comment in the issue mentioned above. All subtitles that I've tested with are external subs, so that's a thing that differs.
Anyway... I guess this issue can be closed :)
@IzanagisBurden commented on GitHub (May 19, 2024):
Well, the issue isn't completely solved. I can still reproduce the A/V sync issue while direct streaming (audio transcode, video copy) m2ts files.
@gnattu commented on GitHub (May 19, 2024):
This issue is about subtitles, not A/V sync. If you faced A/V sync issue please open a new issue, but I guess someone has opened one for you: #11723
Is that issue describing what you are seeing?
@ikheetjeff commented on GitHub (May 19, 2024):
Issue here also still exists, so not solved. (But, thanks everyone who helped to fix this issue!)
@gnattu commented on GitHub (May 19, 2024):
Please check if your video is really direct streaming/remuxing.
There is no way to resolve transcoding desync for 10.9, and you have to enforce subtitle burn-in if you are facing that.
@gazhay commented on GitHub (May 20, 2024):
No, this issue was about de-sync in general, some just fixated on the subtitle issue.
Av sync across multiple clients has been broken in recent weeks.
@N8-Yue commented on GitHub (May 20, 2024):
Would it be possible to make that automatic or at least add an button in the video to allow that? It's not really comfortable to change the settings every time depending on what files I'm watching
@Debsu2020 commented on GitHub (Jun 15, 2024):
This issue reappeared at least to me. Jellyfin web 10.9.6 and no issues with JMP. Subtitles are embedded SUBRIP. Subtitles drop out of sync immediately if I skip ahead in video.
[edit] Oh and video is 4K HEVC SDR and is using transcoding.
[edit][edit] I find out that if setting
Prefer fMP4-HLS Media Containeris enabled that causes subtitles go out of sync, without it subtitles seems to work fine in my quick test.@ToXinE commented on GitHub (Jul 8, 2024):
maybe the same as #2547 2547