google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.75k stars 6.03k forks source link

DD 5.1 plays as Stereo PCM #9671

Open vip5912 opened 3 years ago

vip5912 commented 3 years ago

I checked Demo module (r2.16.0): "HLS" / "Apple master playlist advanced (TS)" / "Audio AC3 5.1" I had only 2ch PCM.

Android TV Sony 65XF9005, Android 9, Optical SPDIF to Reciever Sony AS5300. Plex client (ExoPlayer) play all AC3 audio as Dolby Digital (passthrough audio to Receiver).

christosts commented 3 years ago

@krocard can you take a look?

vip5912 commented 3 years ago

@krocard can you take a look?

What do you need? TV screen or receiver display picture? Some else? Emby client (ExoPlayer) play also as Stereo. Kodi play as DD 5.1 (passthrough).

krocard commented 3 years ago

Could you provide us with a bug report? I suspect the issue is that the passthough capabilities are not detected.

If you're unable to share bug reports or test content publicly, please send them to dev.exoplayer@gmail.com using a subject in the format "Issue #1234" ("#1234" is replaced with your issue number). Please also update this issue to indicate you've done this.

vip5912 commented 3 years ago

I sent bug report to dev.exoplayer@gmail.com using a subject "Issue #9671" Stock Media Player plays DD 5.1 as DD 5.1 (passthrough).

vip5912 commented 2 years ago

I made a little modified Exoplayer (dev-v2, modified library-core/audio/AudioCapabilities.java). It is working fine. I have DD 5.1 on my AVR.

If ExoPlayer can't define passthrough automatically may be you can insert Passthrough check box in ExoPlayer's Settings as it's in Plex, Kodi, Vimu players.

krocard commented 2 years ago

@vip5912 We don't provide the UI of those apps. @tonihei, this looks like a case where the capabilities are not correctly detected.

teletcl commented 2 years ago

I've got TCL AndroidTV and have the same problem.

I've found on internet that this is well-known bug of Exoplayer (in Sony TV and many others AndroidTV): the issue is that the passthough capabilities are not detected, especially for SPDIF. Probably it recognizes the capabilities wrong and probably skips the passthrough and uses ffmpeg extension to downgrade to stereo. Many apps that based on not modified Exoplayer have this problem e.g. DisneyPlus , TiviMate , Just (Video) Player .

Please, developers - fix it finally.