jellyfin / jellyfin-androidtv

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

Media is constantly played using the wrong sound track #619

Closed bmillemathias closed 2 years ago

bmillemathias commented 3 years ago

Describe the bug I wanted to view a movie which has 2 sound tracks (french and english) in french and whatever track I select in the android tv UI the movie plays in english. When I play the same movie from my browser the movie is played in french.

To Reproduce

Not sure I have a 100% reproducble procedure.

Expected behavior Be able to play the sound track I want.

Logs I did not spot any particular error related to this problem on the server

Screenshots

some media information (sorry In french) image

Audio info

    Stream #0:1(fre): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s (default)
    Metadata:
      title           : VFF DTS @754kbps
      BPS             : 768000
      BPS-eng         : 768000
      DURATION        : 02:05:55.584000000
      DURATION-eng    : 02:05:55.584000000
      NUMBER_OF_FRAMES: 708336
      NUMBER_OF_FRAMES-eng: 708336
      NUMBER_OF_BYTES : 725336064
      NUMBER_OF_BYTES-eng: 725336064
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2015-04-28 17:40:44
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-28 17:40:44
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : VOA AAC 2.0 @128kb
      BPS             : 127913
      BPS-eng         : 127913
      DURATION        : 02:05:55.605000000
      DURATION-eng    : 02:05:55.605000000
      NUMBER_OF_FRAMES: 354169
      NUMBER_OF_FRAMES-eng: 354169
      NUMBER_OF_BYTES : 120808057
      NUMBER_OF_BYTES-eng: 120808057
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2015-04-28 17:40:44
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-28 17:40:44
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

System (please complete the following information):

Additional context

If you need some logs that may contain info please ask.

Stampede10343 commented 3 years ago

I have seen this same issue, or very similar. I believe its happened mostly on MKV files, where you go to change the track and it will not be able to change to the English track from whatever language its on, same video in Plex plays correctly right away. But picking either of the visible tracks in Jellyfin causes the same incorrect track to play.

SonicPotions commented 3 years ago

I have this issue sometimes. I select the other audio track and it just won't switch. then after multiple tries it suddenly works. other times it works directly (same tv show) also it does not remember the setting. if I pause the movie and the screensaver kicks in, the movie resumes with the original audio track again. but once it worked once, it seems to work consistently afterwards to switch the track. (fire TV 4k 0.11.5 + docker server)

avicarpio commented 3 years ago

I also have this problem. It's really difficult to change the voice language in every anime chapter.

BBreeziN commented 3 years ago

I've seen this also on my NVIDIA shield. The file I was trying to play had a default regular sound track and an extra director's commentary track. When I clicked play in Jellyfin, it started playing the directors commentary, and to get it to play the main audio track, I had to select the director's commentary track.

I tried to repeat it again on the same file, and now the issue is not occurring.

stale[bot] commented 3 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.

linetrimmer commented 3 years ago

This is still an issue when using ExoPlayer. libVLC doesn't have the same problem for me, but other issues with libVLC (specifically that playback consistently freezes after 4 minutes) prevent that from being a viable option for me :/

In my experience, this happens when the default audio track is DTS-HD with a secondary AC3 audio track (similar to OP where the default track is DTS and the second track is a more widely supported codec). With this combination, ExoPlayer always chooses to play the second track, but unfortunately in these cases the second track is director/cast commentary.

stale[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.

alexdelprete commented 2 years ago

I'm using jellyfin on Shield TV Pro and I'm not able to choose the audio track while playing. Is this a bug being addressed?

I was evaluating moving from Plex to Jellyfin, I prefer Jellyfin for many aspects, but I noticed a lot of issues on the client side, with NVIDIA Shields specifically (I have one in every room).

Hope these basic issues will be solved...can't move from Plex until I can't even reproduce an mkv file.

DexLuther commented 2 years ago

I'm also having this issue. Pretty much as described.

Edit: Seems to be related to which ever track is set as "default" and the page loading/reloading and Jellyfin not remembering what option was picked, so it goes with which ever is set as default.

My prefered audio language is set to English in the settings as well, but that doesn't seem to have any effect on anything at all.

mbarreradev commented 2 years ago

Same problem here :(

bmillemathias commented 2 years ago

as orginal reporter of the bug, the problem vanished since I started using version 0.12. I don't know if I should close the bug or not. they are "me too" comments but there is no enough details to say if this is the same bug or not

Stampede10343 commented 2 years ago

Could #1732 have fixed this issue? I can't recall seeing it in a while, but that issue appears to potentially fix this issue?

GamerBene19 commented 2 years ago

I do seem to experience the same bug. When a movie is directly played to Jellyfin ("jellyfin-androidtv 0.13.6 release" (installed today)) my FireTV-Stick (3rd Gen; model no. "AFTSSS") the audio track selection does not work as intended. I do have a movie containing three audio tracks as follows (as presented by Jellyfin):

  1. 5.1 English
  2. 5.1 German
  3. Stereo English (audio commentary)

When the file is directly played the resulting audio tracks are as follows:

  1. 5.1 English (option 1 from above)
  2. 5.1 English (same as previous option)
  3. 5.1 German (option 2. from above)

    Note the absence of the third option from above (the audio commentary)

The issue does not seem to occur when the movie is being transcoded (in my case when I do select subtitles as they have to be burned in).

I can provide more information if needed.

Update: I've switched to libVLC (instead of ExoPlayer). With it everything works as intended. I can even directly play files with subtitles.