jellyfin / jellyfin-android

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

Serious audio and subtitle desyncing with the web player #1031

Open omentic opened 1 year ago

omentic commented 1 year ago

Describe the bug

Similar: #46, #137, https://github.com/jellyfin/jellyfin/issues/2547

I have a number of .mkv files running on my media server. When accessing them with the Android client and the (default) web-based player, serious (> 2 seconds) audio desyncing occurs relatively consistently after pausing or seeking in playback. Subtitles also are significantly desynced, but by the order of > 10 seconds, so it may be unrelated.

I'm running my media server on a fairly low-powered four-core computer, and the cores do tend to get hammered when seeking. I don't think that's causing it, however: if I close a video and reopen it, the audio remains offset by at least the same amount it was previously - sometimes play-pausing it will then add more of a desync.

Switching to the native media player fixes this (both audio and subtitles). Perhaps that should be made the default? I couldn't find a prior issue for the audio desync bug, so that probably doesn't affect many people, but judging by the number of reactions on https://github.com/jellyfin/jellyfin/issues/2547 it seems like the subtitle bug is prevalent.

Logs

No response

Application version

latest

Where did you install the app from?

Google Play

Device information

Google Pixel 4a

Android version

GrapheneOS latest

Jellyfin server version

10.8.9

Which video player implementations does this bug apply to?

Maxr1998 commented 1 year ago

We're planning to make the native player the default eventually, but there's still some work to be done before we can do that. We finally have quality selection and improved transcoding in the latest beta, but features like SyncPlay are still missing.

erogers88 commented 1 year ago

I am also affected by this bug. I am running a Jellyfin server, and have tested a variety of other clients and only Android mobile client has the desyncing issues described by this issue.

jellyfin-bot commented 10 months 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.

omentic commented 10 months ago

boo stale bot :-1:

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.

Maxr1998 commented 9 months ago

Awesome, sounds like this will be fixed in 10.9 then!