-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
streams.get_highest_resolution() method doesn't seem to pull the highest resolution #367
Comments
I believe that you need to download the video and audio separately, and them combine them. I'm using MoviePy for this, but you could use FFMPEG for it as well. This snippet gets the highest resolution of the video and downloads it, as well as downloading the audio separatly
If you don't want to download 4k videos for example (max res 1080p) you could do something like this:
|
By default, get_highest_resolution finds only progressive videos (which in YouTube's case have audio and video streams in one file), which may not be the highest resolution video. Change the parameter to False (get_highest_resolution(False)) to get the highest resolution video regardless of the audio stream. Then if the stream is not progressive (check using not is_progressive or is adaptive), download the audio stream and combine the two however you want. |
Here an improving version :
|
This project is great! That said, I've noticed that when using the streams.get_highest_resolution() method, the highest resolution doesn't seem to be pulled. What I'm getting, is at best, 480p when a 1080p video is in fact available. Perhaps I'm missing something (an option?). Admittantly, I didn't dig through the source to see if I need to throw an option when using this method to pull down a file in 1080p. Thank you!!
The text was updated successfully, but these errors were encountered: