jellyfin / jellyfin-roku

The Official Roku Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
441 stars 134 forks source link

Video and audio out of sync #1791

Open kael-lillaj opened 5 months ago

kael-lillaj commented 5 months ago

Software Versions

Describe the bug

The audio is out of sync when you fast-forward or rewind the movie

How To Reproduce

  1. Forward or rewind the movie
  2. Bug occurs

Expected behavior

The audio shouldn't be out of sync.

Connection Information

cewert commented 5 months ago

We can't help you figure this out unless you provide us with a lot more information. App version, file information, differences between this file and a file that works, does the file work right using a different client Etc.

kael-lillaj commented 4 months ago

Sorry for the lack of information. The app version on the Roku TV is 2.0.7. but I've been noticing this problem for several months. Is a Philco Roku TV 4K PTV50G70R2CSGBL4K

Most of the files I have are .mkv or .mp4 with h264 or h265 encoding. 720p, 1080p or 2160p. The audio encode is AAC or AC3. Most are 5.1 with 48000 Hz. Audio bitrate ranges from 90 Kbps to 4689 kbps

I haven't found a pattern in the files. The problem appears randomly immediately after moving forward or backward But it doesn't happen every time. This makes it difficult to trace the problem.

In the web client on PC or smartphone everything seems to work without problems. The Android client with native player also works fine. Video transcoding is disabled for all users.

mikewhitby commented 4 months ago

Just to add that I also get this. I can’t recall which is ahead (audio or video), sometimes it resolves itself gradually but other times it doesn’t. It seems that if I fast forward again it might fix it. I’m not aware of a pattern in the files played either.

I’m using a Hisense R43B7120UK.

vtmarik commented 4 months ago

I'm having the same problem with my TCL Roku TV 4k, same app version, server version 10.9.2 running in Docker on Solus Linux on rewinding, fast forwarding, and resuming viewing from a previous watching. The audio is delayed by about one second from the video.

hxck commented 1 month ago

Same issue still with a newly installed Jellyfin channel on Roku. My wife watches movies the same way you'd watch TV shows, and it can sometimes take her several days to finish one movie. Every time she stops and comes back to it, the audio is off. Have to basically use the 'spray and pray' method of fast forward, rewind, hit pause/play a bunch of times, etc until it finally lines up.

-Jellyfin (Docker) 10.9.9 x64 Debian Bookworm -Intel i5-8400 with Intel UHD Graphics 630 (server) -Any file I play

jimdogx commented 1 month ago

Not sure if this will help. I had this same problem with my TCL Roku TV a while back.

My scenario is I have my TV sound going through a soundbar (no idea if that matters). But through trial and error I ended up with the setting under "Digital Output Format" set to "Custom" and for custom I have both Dolby Digital Plus and DTS turned on.

I haven't had audio sync issues since. It would always get out of sync when fast forwarding or rewinding before.

lcow392 commented 1 month ago

Comment from jimdogx worked for me. Previously, fast forwarding would desync audio. Now, works perfectly.

Jellyfin Info

Client Info

Steps to solve

  1. Navigate to 'Settings' in Roku (NOT Jellyfin)
  2. Audio
  3. Digital format
  4. Set 'Dolby' to Dolby Digital'
  5. Set DTS to OFF
jimdogx commented 2 weeks ago

@hxck @mikewhitby @kael-lillaj @vtmarik Does the above (changing settings on your device) work for you as well?

mikewhitby commented 2 weeks ago

@jimdogx no, no change for me I’m afraid :(

vtmarik commented 2 weeks ago

@jimdogx It happens way less often now, just wish i knew why