-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
The default audio track in Dash.js 5.0 is different from the one in Dash.js 4. #4701
Comments
I don't consider this a bug. We are trying to use the track that provides the highest compression efficiency if multiple tracks are selectable. You can define the initial track using our track selection functionality: https://dashif.org/dash.js/pages/usage/track-selection.html As an alternative you can define your own custom initial track selection function: https://reference.dashif.org/dash.js/latest/samples/advanced/custom-initial-track-selection.html |
Worth noting here: In general, dash.js would apply some selection based on provided preferences. Since all audio AdaptationSets don't signal any properties, this is not applicable here. With this, multiple track still remain: Next, since dash.js has to make a selection, multi heuristics are available in dash.js: highest bitrate, first track, highest efficiency or widest range. Using the initial track selection function as mention by Daniel is the final option, but you need to keep in mind that this will replace all of the beforementioned functions. |
Hello @dsilhavy , @stschr ,
For video tracks, this calculation makes sense since resolution = width * height. However, for audio tracks, width and height are not applicable, meaning resolution will be 1 . As a result, the calculation effectively reduces to selecting the track with the lowest bitrate. Is this the intended behavior? Does "efficiency" have any real meaning when applied to audio track selection? I would appreciate your clarification. |
Hello @testeur-990 , you're right, for audio, this does not make sense. |
@dsilhavy : Wouldn't it make sense to first prioritize based on |
Thanks for the clarification @testeur-990 . What we use today by default is the mode How about not using |
Hello,
The default audio track in Dash.js 5.0 is different from the one in Dash.js 4.
Please see the attached screenshot.
After analyzing the issue on our side, we observed that it is related to the addition of:
if (tmpArr.length > 1) {
tmpArr = getTracksWithHighestEfficiency(tmpArr);
}
in _trackSelectionModeHighestSelectionPriority in Dash.js 5
Could you please check?
The text was updated successfully, but these errors were encountered: