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

Recognize preferred audio stream #24

Open
PatLange opened this issue Apr 4, 2015 · 0 comments
Open

Recognize preferred audio stream #24

PatLange opened this issue Apr 4, 2015 · 0 comments

Comments

@PatLange
Copy link

PatLange commented Apr 4, 2015

Hi,

i have some problems to play the correct audio format video on movies with multiple audio streams. CE selects the wrong audio stream and thats because the wrong audio format video is played.
CE extracts the audio codec information from the first stream found in the movie.

script.cinema.experience/ resources/lib/ce_playlist.py

...
410         try: 
411             audio = movie_detail['streamdetails']['audio'][0]['codec'] 
412         except: 
413             audio = "other" 
...

As noted in the following post http://forum.kodi.tv/showthread.php?tid=105362 there should be some magic to select the right audio stream.

Choosing the Audio Stream

  1. If "Default Audio Language" is set, XBMC looks at all the audio streams in a video and if there is one of the "Default Audio Language" it chooses that.
  2. If there is more than one stream with the default audio language it chooses the one with the most number of channels / best codec if same number of channels.
  3. If none found with "Default Audio Language" revert to what dvdplayer does already.

I don't know if it is possible to get the preferred audio stream settings via jsonRPC to reproduce the same logic.

Looking forward to positive response from you :-)

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

No branches or pull requests

1 participant