Skip to content
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

Movie with DD 5.1 plays as Stereo #197

Closed
vip5912 opened this issue Oct 16, 2021 · 25 comments
Closed

Movie with DD 5.1 plays as Stereo #197

vip5912 opened this issue Oct 16, 2021 · 25 comments
Labels

Comments

@vip5912
Copy link

vip5912 commented Oct 16, 2021

Android TV Sony 65XF9005, Android 9, Optical SPDIF to Reciever Sony AS5300
Player v0.65
Movie DoVi profile 5 mp4 with AC-3 5.1 448 kb/s
mediainfo.txt
Just plays it as 2 ch PCM
Plex & Kodi play the same movie as DD 5.1

@moneytoo
Copy link
Owner

Please share a media sample.

@vip5912
Copy link
Author

vip5912 commented Oct 21, 2021

@vip5912
Copy link
Author

vip5912 commented Oct 21, 2021

ExoPlayer (Exoplayer_Chapters_Support_03_08_2020_no_debug.apk) also plays it as 2 ch PCM :-(
Emby (Exoplayer) also plays it as 2 ch PCM :-(

@vip5912
Copy link
Author

vip5912 commented Nov 11, 2021

google/ExoPlayer#9671

@vrayv
Copy link

vrayv commented Nov 24, 2021

Can you post sample again. I want to test with my exoplayer implementation with some sony devices to confirm the issue.

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

If you need I can test you exoplayer implementation on my TV Sony 65XF9005

@vrayv
Copy link

vrayv commented Nov 24, 2021

This corectly outputs dolby atmos to my receiver from Sony A1 oled to Sony st-1080 receiver.

Considering this is dolby atmos does your receiver supports dolby atmos?

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

You can test this video with DD 5.1 (Audio 1)
https://we.tl/t-xNsalhOE3P
My receiver supports DD, DD+.

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

As I know Exoplayer can play multichannel audio only to ARC/eARC (HDMI), but not to SPDIF for some TVs.

@vrayv
Copy link

vrayv commented Nov 24, 2021

This is also dolby atmos. If your receiver does not support it it might downgrade for you.

Would ffmpeg extension transcode it in this scenario to 6 channels?

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

This is DD 5.1:

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : ac-3
Duration : 1 min 1 s
Source duration : 1 min 1 s
Source_Duration_LastFrame : -16 ms
Bit rate mode : Constant
Bit rate : 448 kb/s
Maximum bit rate : 473 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 3.28 MiB (2%)
Source stream size : 3.28 MiB (2%)
Service kind : Complete Main

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

My receiver supports DD, DD+ and play DD Atmos as DD+.

@vrayv
Copy link

vrayv commented Nov 24, 2021

My receiver recognizes it as atmos.

How is this stream recognized on your receiver? Can you try connecting your receiver with arc?

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

My receiver recognizes it as DD 5.1 and stock TV player plays it as DD 5.1.
My receiver have not ARC/eARC only SPDIF and HDMI inputs.

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

This is well-known bug of Exoplayer in Sony TV (and some other): the issue is that the passthough capabilities are not detected

@vrayv
Copy link

vrayv commented Nov 24, 2021

It seems to works correctly on my Sony Tv (A1 oled from 2017).

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

Do you have ARC or SPDIF?
This bug is only for SPDIF.

@vrayv
Copy link

vrayv commented Nov 24, 2021

ARC. I dont think spdif has bandwith for atmos at all? So this seems as limitation and not a bug.

I dont see how would exoplayer fail to pass the stream through spdif while it can pass it through hdmi. It sounds as a hardware limitation.

@vip5912
Copy link
Author

vip5912 commented Nov 24, 2021

You are wrong:

  1. Dolby Atmos (768kbps) is full compatible with Dolby Digital Plus. SPDIF is 1500kbps.
  2. Title of this issue: Movie with Dolby Digital 5.1 plays as Stereo!
  3. I tried many movies (and not only I) with DD and Just and Exoplayer play they as Stereo

But Plex and Vimu players (based on modified Exoplayer) play they as DD 5.1

@vrayv
Copy link

vrayv commented Nov 24, 2021

What happens if you use ffmpeg extension with exoplayer?

@vrayv
Copy link

vrayv commented Nov 24, 2021

I don't use spdif but as you explained it sounds as a bug. Hopefully it will be fixed.

I guess it recognizes the capabilities wrong and probably skips the passthrough and uses ffmpeg extension to downgrade to stereo.

@vip5912
Copy link
Author

vip5912 commented Dec 6, 2021

I made a little modified Exoplayer (dev-v2, modified AudioCapabilities) and build Player (master) with my local Exoplayer.
It is working fine. I have DD 5.1 on my AVR.
I close the issue.

@vip5912 vip5912 closed this as completed Dec 6, 2021
@Learner00100
Copy link

@vip5912 can you share what you modified.
The code zip file and modified apk please.

@vip5912
Copy link
Author

vip5912 commented Jun 22, 2023

ExoPlayer-AudioCapabilities.tgz:

  1. 0001-AudioCapabilities.patch
  2. library-core-release.mod.r2.18.2.aar

Sorry. I don't use Player app long time.
You need build apk yourself. You can build library-core-release.aar in app/libs yourself or use my.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants