fix(toDash): Format grouping into AdaptationSets #462
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request should fix the long standing issue with dash.js'
getBitrateInfoListFor
not working correctly, that was reported on the discord server a while back. It also addresses the more recent issue with some videos that have multiple audio tracks, also having a broken one.FreeTubeApp/FreeTube#3843
Instead of the previous AdaptationSet groupings that were done with the entire mime type with codecs parameter string and by audio track id, this pull request uses the mime type, codec without the level and profile information, the colour information and the audio track ids. This new grouping system will make sure that all AV1 and h264 streams go into one adaption set each, instead of a different one for every different profile and level, while making sure that the VP9 streams are still correctly separated into SDR and HDR groups.
Test URLs:
Video with broken audio track: https://youtu.be/UJeSWbR6W04
4K HDR with surround sound: https://youtu.be/njX2bu-_Vw4
Multiple audio languages: https://youtu.be/1WEAJ-DFkHE