DEV Community

Discussion on: How to Download YouTube videos in Python.

Collapse
 
jabbarbie profile image
Jabbar Bie

The problem's

get_highest_resolution() will look for videos that have the codec for audio, not the highest quality video

example
720p
480p
360p
140p

if you use the get_highest_resolution function, and only 360p and 140p are available (for audio codecs) .. then 360p is selected.

According to my observations, downloadable videos with video + audio are just under 480p

the rest will be forced to use video compress like ffmpeg