How to get mpd url?
How do I get the mpd url to pass into a mpeg-dash capable player to play? TIA.
var client = new YoutubeClient();
var streamInfoSet = await client.GetVideoMediaStreamInfosAsync("bnsUkE8i0tU");
var streamInfo = streamInfoSet.Muxed.WithHighestVideoQuality();
var mpd = streamInfo.Url;
I think he's taking about Dash manifest. There's no public way to access it. It's also not consistent.
Thanks Tyrrrz, yup the dash manifest is what I'm talking about. I'm wondering how the YouTube html player got a hold of the mpd if that link isn't on the html page itself? Maybe it has a back channel communication w/ the YT server?
The reason why having an MPD link is important is because most muxed streams have SD quality. To get HD/4K quality, you will have to do the audio muxing yourself, which can be difficult to do it "live".
What do you mean by "doing it live"?
Say I have a web player that takes in a YouTube URL and hit Play to play it. This web player has no time to download all the streams and mux them together. It has to play when the user hit the Play button.
Yeah, that's why you use GetMediaStreamAsync
Yea but for HD video quality, the audio stream isn’t present so some muxing has to be done manually, no?
If you only need to play it, you can simply play audio and video streams simultaneously. That's what YouTube is doing.
any bot or repo for getting mpd url ?? plz help me out