jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.29k stars 1.22k forks source link

Firefox audio desync when skipping / resuming - HEVC and x265 #5907

Open guemi opened 1 month ago

guemi commented 1 month ago

Describe The Bug

When either resuming media or skipping forward audio becomes desynced.

Seems to be the exact same as a little over a year ago in these; https://github.com/jellyfin/jellyfin/issues/9330 https://github.com/jellyfin/jellyfin/issues/9241

And claims to be fixed by this; https://github.com/jellyfin/jellyfin-web/pull/4385

But it's still happening in Firefox 129.0 x264 works just fine.

Chromium based browser (Edge) works perfectly fine.

Tried disable Hardware Acceleration in Firefox - No dice.

Steps To Reproduce

Open any HEVC / x265 media - Skip forward in the media - Audio becomes desynced.

Expected Behavior

Audio being synced with video.

Logs

No errors produced.

System (please complete the following information):

viown commented 1 month ago

Is your media transcoding to h264? There was an issue with audio going out of sync when Chrome added support for HEVC direct-play, but Firefox currently does not support this codec.

ElvishJerricco commented 1 month ago

I'm having a similar issue. If my source media is HEVC, then I get audio desync whenever I skip around, no matter the browser or the playback method. I can be direct streaming HEVC to Chrome, or transcoding to h264 for any browser, and the audio will desync when I skip. I'm using Jellyfin 10.9.9.

LXanders1 commented 3 weeks ago

I'm having the same issue when direct streaming AV1 content with opus audio. The audio gets out of sync after scrubbing through it or pausing the video. I haven't had the issue with HEVC or H.265, but I can only play files using those codecs when transcoding. Jellyfin version: 10.9.9, running on ubuntu 22.04. Transcoding is done on hardware using an Intel A310 GPU.