jellyfin / jellyfin-expo

Jellyfin Mobile for iOS
https://jellyfin.org
Mozilla Public License 2.0
311 stars 66 forks source link

Multiple audio tracks play at the same time #417

Open geiger-engineering opened 1 year ago

geiger-engineering commented 1 year ago

Describe the bug When playing (some) video files, both audio tracks play at the same time

System (please complete the following information):

To Reproduce

  1. Play video file from library
  2. Both tracks play at the same time
  3. (Note: if the other track is selected, no audio is playing)

Expected behavior Only one audio track playing

Screenshots ffprobe of one video file screenshot

Additional context The files were created using ffmpeg (merging a file with one video and one audio track with another files audio track) and I suspect the handler might cause the problem (GPAC ISO audio handler), because using the exact same ffmpeg commands on videos with other handlers works fine.

The GPAC files also work fine on any device using jellyfin in the browser as well as using swiftfin on iOS and appletv. Curiously, on the jellyfin-android client only one audio track is playing, but only the first one is used, regardless of the track selection done by the user.

JeWe37 commented 1 year ago

I've been having the same issue. I've noticed that it only happens if both audio tracks are marked as default in the disposition-exactly as you have there according to that ffprobe.

It also happens from Safari which to me suggests it's actually a jellyfin-web issue.

pignoodle commented 1 year ago

I experienced this issue today. Only occurred on IOS (Android and Chrome on Windows both work fine). Selecting the first track plays both at once and selecting the second track makes the video silent.

Mikei386 commented 5 months ago

I’m having exact the same problem. In my case track 1 is English and track 2 is German.

Playing track 1 gives me both tracks at once. Playing track 2 gives me silence.

Using the Jellyfin App on iPad