Tyrrrz / YoutubeExplode

Abstraction layer over YouTube's internal API
MIT License
2.98k stars 497 forks source link

Can't retrieve Muxed 720p quality in any video #797

Closed muhamedRadwan closed 3 months ago

muhamedRadwan commented 5 months ago

Version

6.3.16

Platform

windows 11

Steps to reproduce

720p quality dropped from 5 days .

Details

720p quality dropped from 5 days .

Checklist

Tyrrrz commented 5 months ago

Don't rely on muxed streams too much. They are rare and will get rarer. I wouldn't be surprised if YouTube removes them altogether at some point.

moazelsawaf commented 4 months ago

@Tyrrrz

Thank you for your efforts in developing and maintaining this package 🙏🏻

Could you please provide more clarity on what alternatives to muxed streams we should consider? The adaptiveFormats list seems to return either video-only or audio-only streams. What would you recommend as the best approach moving forward?

Tyrrrz commented 4 months ago

The adaptiveFormats list seems to return either video-only or audio-only streams. What would you recommend as the best approach moving forward?

Depends on what you're trying to achieve. If your goal is to stream the video as if playing on YouTube proper, you should play the audio-only and the video-only stream simultaneously.

If your goal is to download the video, then you should download each of the streams and mux them yourself, using a tool like ffmpeg via YoutubeExplode.Converter.