ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

DD 5.1 plays as Stereo PCM

Open vip5912 opened this issue 4 years ago • 7 comments

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).

vip5912 avatar Nov 09 '21 14:11 vip5912

@krocard can you take a look?

christosts avatar Nov 10 '21 14:11 christosts

@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).

vip5912 avatar Nov 10 '21 14:11 vip5912

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 [email protected] 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.

krocard avatar Nov 10 '21 15:11 krocard

I sent bug report to [email protected] using a subject "Issue #9671" Stock Media Player plays DD 5.1 as DD 5.1 (passthrough).

vip5912 avatar Nov 10 '21 20:11 vip5912

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.

  • add AudioFormat.ENCODING_DTS to EXTERNAL_SURROUND_SOUND_CAPABILITIES
  • change return from DEFAULT_AUDIO_CAPABILITIES to EXTERNAL_SURROUND_SOUND_CAPABILITIES

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.

vip5912 avatar Dec 06 '21 20:12 vip5912

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

krocard avatar May 12 '22 15:05 krocard

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.

teletcl avatar Aug 01 '22 18:08 teletcl