Fix low audio bitrate in DASH mode and audio only mode#3162
Fix low audio bitrate in DASH mode and audio only mode#3162SamantazFox merged 14 commits intomasterfrom unknown repository
Conversation
Since VideoJS is unable to handle adaptive audio quality, the best audo quality is forced for every video quality.
Audio mode will automatically select highest quality m4a as default.
|
The problem is that it removes entirely lower quality audio... That's not ideal for users with limited bandwidth. |
player.audioTracks() can successfully show tracks_: Array(2)
lang has to be BCP 47 standard. Using label also can let video.js know there are 2 audio tracks.
|
In testing on https://yewtu.be |
|
Thank you so much for fixing this! |
|
could you publish a docker image of this somehwere? |
There is my docker image: https://hub.docker.com/r/unixfox/invidious-custom with all the patches: https://github.com/unixfox/invidious-custom/tree/master/patches. |
|
While you're at it, is it possible to fix the audio bitrate diplayed? See issue #2513 |
I think this should be tackled into another pull request, let's merge this one which fixes a wide annoying bug. |
Mmmh, yeah, you're right! |
SamantazFox
left a comment
There was a problem hiding this comment.
In addition two the two changes below, I'm really wondering about having two AdaptationSet for the same audio. Doesn't that break the standard?
better syntax Co-authored-by: Samantaz Fox <coding@samantaz.fr>
Skip OTF streams, prevent creating empty AdaptationSet in DASH audio
|
The above two changes are implemented. Regarding to AdaptationSet, theoretically audios with same content should be put into one AdaptationSet. However, most players cannot handle auto quality switching, and cannot provide a quality selector. By separating into two AdaptationSet, video.js will treat them as different languages audio tracks, which shows an audio track selector. |
|
Thanks for your contribution to invidious :D |

Fix #3074
Also default highest quality m4a on audio only mode