by amatecha · 1y ago · 0 comments
yt-dlp -f "bv[height<=720]" <url>
(where <url> is your URL or video ID)That will download up to 720p quality.
yt-dlp -x <url>
.. or optionally to convert it to mp3 on the fly: yt-dlp -x --audio-format mp3 <url>
.. or doing so with also the best audio quality available: yt-dlp -f 'ba' -x --audio-format mp3 <url>