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

[Continuing #5094] Set language info for dash audio streams and sort #5149

Merged

Conversation

giuliano-macedo
Copy link
Contributor

@giuliano-macedo giuliano-macedo commented Jan 21, 2025

Continuing #5094 made by GTechAlpha with its original commit since it hasn't had new changes for more than a month. I'm doing this by changing how the AdaptionSet label is set when there is multilang audio available but displays the birate so that it avoids #3074.

Screenshots:
screenshot1
screenshot2

Original PR description

Set audio track info, if present, in dash manifest

language id
language display name
main/default track

Sort audio formats so that main/default is first (for clients not using dash)

This resolves issue of incorrect/undesired audio when automatic translation is enabled by content creator (currently relatively rare, but likely to increase), and allows dash clients to correctly select default language and optionally offer multiple language streams.

closes #2007

Note: this should be a non-breaking change; if audio track info is not available, the behavior does not change from current

@giuliano-macedo giuliano-macedo requested a review from a team as a code owner January 21, 2025 14:10
@giuliano-macedo giuliano-macedo requested review from unixfox and removed request for a team January 21, 2025 14:10
@absidue
Copy link
Contributor

absidue commented Jan 21, 2025

Please remove the non-standard bitrate property, the standard bandwidth property is already correctly set on Representations.

@giuliano-macedo giuliano-macedo force-pushed the add_audio_info_sort_for_default branch from 84257df to 5ccec13 Compare January 21, 2025 19:27
@giuliano-macedo
Copy link
Contributor Author

@absidue Done, thanks!

GTechAlpha and others added 2 commits January 22, 2025 11:01
  - language id
  - language display name
  - main/default track
Sort audio formats so that main/default is first (for clients not using dash)

* Note: this should be a non-breaking change; if audio track info is not availablle, the behavior does not change from current
@syeopite syeopite force-pushed the add_audio_info_sort_for_default branch from 5ccec13 to 6e3ec10 Compare January 22, 2025 19:03
@syeopite syeopite merged commit eae3c42 into iv-org:master Jan 22, 2025
9 checks passed
@syeopite
Copy link
Member

Thanks for the contribution @GTechAlpha and @giuliano-macedo 😄. Great work on this 🎉

@n3d1117
Copy link

n3d1117 commented Jan 25, 2025

Hi @giuliano-macedo thanks for your work! Now I can select the audio track on videos, however it still defaults to the AI translated instead of original language. Is there any way to change that or did I misunderstand this PR?

image

EDIT: Looks like it's being tracked at #5157

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

Successfully merging this pull request may close these issues.

[Enhancement] Add support for multiples audio tracks
6 participants