jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.45k stars 240 forks source link

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

Open ghost opened 4 years ago

ghost commented 4 years ago

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 commented 3 years ago

This is likely an upstream issue related to a combination of the web client and (mobile) browser, there's more information about this here: https://github.com/jellyfin/jellyfin/issues/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.

ghost commented 3 years ago

Confirming the native player doesn't seem to trigger this issue :+1:

redactedscribe commented 3 years ago

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.

Originally posted by @redactedscribe in https://github.com/jellyfin/jellyfin-android/issues/137#issuecomment-696472915

TKFRvisionOfficial commented 3 years ago

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 commented 3 years ago

Can confirm, still an issue.

SadmanTariq commented 3 years ago

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 commented 2 years ago

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

jellyfin-bot commented 2 years ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

dannymichel commented 2 years ago

Don't stale.

I think this issue keeps getting closed and popping back up

Maxr1998 commented 2 years ago

It shouldn't since I added the confirmed tag.

YodaQ commented 2 years ago

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 commented 2 years ago

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.

karlseven commented 1 year ago

still a problem in 10.8.9

0x0ade commented 10 months ago

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