Download Full HD YouTube video in python

I want to download a video from youtube’s url. I used pytube but it only downloaded low resolution video or high resolution no audio. How to download a high resolution video with audio from youtube in python? Thanks

Asked on July 16, 2020 in Python.
Add Comment
1 Answer(s)

I suspect you are talking about this, referenced here: https://python-pytube.readthedocs.io/en/latest/user/quickstart.html

"You may notice that some streams listed have both a video codec and audio codec, while others have just video or just audio, this is a result of YouTube supporting a streaming technique called Dynamic Adaptive Streaming over HTTP (DASH).

In the context of pytube, the implications are for the highest quality streams; you now need to download both the audio and video tracks and then post-process them with software like FFmpeg to merge them.

The legacy streams that contain the audio and video in a single file (referred to as “progressive download”) are still available, but only for resolutions 720p and below."

Answered on July 16, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.