-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExoPlayer playback fails when attempting to play multiple audio tracks, transcoding issues #555
Comments
The problem is that your device tries to play 2 different audios at the same time with 2 different audio decoders, which is not allowed in ExoPlayer, and even if it was, it should not happen in Jellyfin. However, I don't quite understand how the extension should be used correctly, so I do not know how to fix it, so I leave the comment with my findings in case it helps the devs. Relevant links: |
Thanks for the investigation Carlos, this is indeed quite weird. I'm surprised your phone supports |
Hello! Attached are the MediaInfo of the files correspondingly. I also tested some various scenario where I change the audio before playing the videos and concluded with this results. Please let me know if you need to see the logcat. Thank you so much. Perfect Blue (1997) Remastered [tmdb-10494][Remux-1080p][8bit][x264][DTS-HD MA 5.1][JA+EN]-ALiEN.mkv before playing
Pirates of the Caribbean The Curse of the Black Pearl (2003) [tmdb-22][Bluray-1080p][8bit][x264][DTS 5.1]-TayTO.mkv before playing
Pirates of the Caribbean Dead Mans Chest (2006) [tmdb-58][Bluray-1080p][8bit][x264][DTS 5.1]-Z0N3.mkv before playing
Pirates of the Caribbean On Stranger Tides (2011) [tmdb-1865][Bluray-1080p][8bit][x264][DTS 5.1]-TayTO.mkv before playing
|
Awesome, thanks for the details! I'll look into them and try to fix those issues when I find the time. |
This seems to have been an ExoPlayer issue that was fixed in the latest version, see google/ExoPlayer#9675. We'll include this in the next update. |
I'm not sure the issue is (totally?) fixed. I have some files many files with multiples tracks, and when one of these tracks is AC3/EAC3 and the second one is AAC, then I still have the issue. Here is an example where the files has 2 audio tracks. First is AC3 (french) and second is AAC (english). If i play the movie using the AC3 track (first track), it fails (media looks paused). Then I have another files with four audio tracks. First is AC3, then AAC, then AC3, then AAC. But selecting any of the 2 last ones will play the movie but the actual audio tracks playing is always the first one. I know it's probably an issue with exoplayer, but since their repo seems above my level (i'm not a developer), I prefer to post here and, maybe, let you relay the issue and you may speak the same language as the devs there. Note that the issue seems really related to the mix of (E)AC3 and AAC. Hope this helps! |
Hi @Maxr1998, And if ever you need testers... I can help :) Anyway thanks for the great work! |
Haven't had the chance to look into this yet. Exams are coming up too, so I doubt I'll fix this soon. But it's definitely still on the radar, and some of the code will be rewritten for the transcoding selector, that might already fix it. |
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. |
Just to unstale the issue as it still exists :) If ever it's relevant, since 10.8 is now GA, i spinned an instance to try to if it would do any good, but no :) |
this issue still exists using 10.8.1 |
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. |
this issue still exist using jf server 10.8.7 and jf android app 2.4.4 |
Could you try the latest 2.5.0 beta? |
Hi @Maxr1998 , If i choose the second one (English AAC), it works but it the first track playing (the french one). Anyway, thanks for the effort! I keep faith! |
I see, looks like the bug in ExoPlayer still exists - or we're using it incorrectly. Need to investigate. |
I think I might be seeing the same exo player issue? I get an unexpected runtime error playing with integrated player, but the web player plays just fine. This is also for a 1080p h264 file with multiple audio tracks. (TrueHD, DTS, DTSHD). This is with the current beta 2.5.0, and the previous version. Playing with mpv works fine. |
I am having the same issue with movies containing multiple audio tracks when using Exoplayer. The web player had a different issue (black screen when playback controls were hidden, requiring constant touching on screen to keep video alive), but switching to the beta version of Android Webview solved that. Hoping the Exoplayer bug gets figured out as that would be a better experience on mobile. |
Describe the bug
Upgraded to v2.4, seems that some H264/DTS5.1 media are not playing. Another case is, it will buffer for a second and get stuck at pause state and can never be played.
If these media is then stuck at pause state or not playing, changing the audio/subtitle will lead for the app to crash.
There are no errors stated in the app, it is just stuck at pause state (black screen).
Here are some media that experienced this issue so far:
In v2.3.3 these files are playing properly wherein their audio are transcoded into AAC.
Other H264/DTS5.1 media plays properly in v2.4.
Logs
logcat.txt
Application version
2.4.0
Where did you install the app from?
Google Play
Device information
Samsung A10, LG G6
Android version
Android 9, Android 8
Jellyfin server version
10.7.7
Which video player implementations does this bug apply to?
The text was updated successfully, but these errors were encountered: