obra / Youtube2Webpage

I learn much better from text than from videos
MIT License
740 stars 24 forks source link

Lower video quality #18

Open le-jun opened 1 year ago

le-jun commented 1 year ago

Given the textual nature of this project, shouldn't the default behaviour give some 360p caps or something? Downloading a full video at best quality looks wasteful to me, just wanted to have others opinions as that would be easily resolved through something like:

# Download the best video available but no better than 480p,
# or the worst video if there is no video under 480p
$ yt-dlp -f "bv*[height<=480]+ba/b[height<=480] / wv*+ba/w"

Or:

# Download the best video available with the largest resolution but no better than 480p,
# or the best video with the smallest resolution if there is no video under 480p
# Resolution is determined by using the smallest dimension.
# So this works correctly for vertical videos as well
$ yt-dlp -S "res:480"
Artoria2e5 commented 1 year ago

I believe in the opposite: maybe what we need is higher quality frames so we can see what's being done, but more selective downloading using options like --youtube-skip-dash-manifest or --download-sections.