Skip to content
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

Web player: Subtitles out of sync occasionally/random offset when seeking #46

Open
ghost opened this issue Aug 24, 2020 · 14 comments
Open
Labels
bug Something isn't working confirmed Confirmed bug reports that shouldn't go stale upstream An issue that is not related to the app, but an upstream component (dependency, backend, web UI)

Comments

@ghost
Copy link

ghost commented Aug 24, 2020

Sometimes when seeking the video the subtitles track becomes "out of sync" and starts displaying dialogue from a random offset (usually less than 10 seconds). This is really annoying, and the only workaround is to restart the video from offset 0.

@Maxr1998 Maxr1998 added the bug Something isn't working label Aug 24, 2020
@Maxr1998
Copy link
Member

This is likely an upstream issue related to a combination of the web client and (mobile) browser, there's more information about this here:
jellyfin/jellyfin#2547

The best option would be to use the native player implementation, if it supports the video and subtitle formats. At least .srt worked very well in my tests.

@Maxr1998 Maxr1998 added the upstream An issue that is not related to the app, but an upstream component (dependency, backend, web UI) label Sep 19, 2020
@ghost
Copy link
Author

ghost commented Sep 20, 2020

Confirming the native player doesn't seem to trigger this issue 👍

@Maxr1998 Maxr1998 changed the title Random subtitles offset added when seeking video Web player: Subtitles out of sync occasionally/random offset when seeking Sep 22, 2020
@redactedscribe
Copy link

I'm also experiencing this. First time using the app.

Input #0, matroska,webm, from '.\video.mkv':
…
Stream #0:0(und): Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
…
Stream #0:1(und): Audio: flac, 48000 Hz, stereo, s16 (default)
…
Stream #0:2(und): Subtitle: ass (default)

Seems to happen when I seek. Somewhat related: the subtitle offset feature steps in too large increments to accurately compensate for the delay. Seeking some more can help knock the subtitle delay around, making it align with a degree of selected offset. Also, I recall having to manually select the subtitle each time I started the video, even though the subtitle already had a tick next to it (toggling the subtitle to Off and back again). Haven't tested whether this still happens with an external subtitle.

Another observation I made was that, when testing SyncPlay, I noticed the subtitles on my Android seemed to always stay in time with the ones being shown on my PC. I'm new to Jellyfin so I don't know what level of synchronisation to expect from SyncPlay, but the two videos seemed out by a couple seconds, but as I said, the subtitles were in synch. Might not necessarily be a clue, but I thought I'd mention it regardless.

  • App version: 2.0.0-rc.5
  • Android version: Android 9
  • Jellyfin server version: 10.6.4
  • The type of video player implementation used: Web player

Originally posted by @redactedscribe in #137 (comment)

@TKFRvisionOfficial
Copy link

This is still a big issue. again it is only on mobile. if i try to use an external player ("vlc for android" for example) i can only use mp4 stored movies not mkv ones wich really sucks because vlc actually supports that

@yalanyali
Copy link

Can confirm, still an issue.

@SadmanTariq
Copy link

This is still an issue. As a temporary solution, I wrote this script to automate burning subs for an entire directory. Only works on Linux but can be easily modified for Windows. Be aware that it can take a long time to finish depending on computer specs.

@daniel-smartners
Copy link

I can confirm this is still an issue, using Jellyfin for android TV seems be a solution for now.

@jellyfin-bot

This comment was marked as outdated.

@Maxr1998 Maxr1998 added confirmed Confirmed bug reports that shouldn't go stale and removed stale labels Apr 23, 2022
@dannymichel
Copy link

Don't stale.

I think this issue keeps getting closed and popping back up

@Maxr1998
Copy link
Member

It shouldn't since I added the confirmed tag.

@YodaQ
Copy link

YodaQ commented May 28, 2022

I have this issue as well and Im running the latest stable version of both the server (10.7.7) and the client (2.4.4). It doesn't occur using the exo player but that has other issues regarding subtitles.

@dannymichel
Copy link

I have this issue as well and Im running the latest stable version of both the server (10.7.7) and the client (2.4.4). It doesn't occur using the exo player but that has other issues regarding subtitles.

I think myself and several other people are trying to fix this.
I'd say the is one of the top three jellyfin bugs to be fixed.

@Maxr1998 Maxr1998 mentioned this issue Nov 21, 2022
3 tasks
@karlseven
Copy link

still a problem in 10.8.9

@0x0ade
Copy link

0x0ade commented Nov 11, 2023

I've tested manually applying the htmlMediaHelper change from jellyfin/jellyfin-web@baf1b55 on my Jellyfin instance, and it seems like using hls.js on Android fixes any desyncs / seeking problems I've had.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed Confirmed bug reports that shouldn't go stale upstream An issue that is not related to the app, but an upstream component (dependency, backend, web UI)
Projects
None yet
Development

No branches or pull requests