logoalt Hacker News

doctor_philyesterday at 6:55 PM2 repliesview on HN

The author mentions just downloading the audio track. That's a lot less data than downloading any video at all. ;)


Replies

jordightoday at 12:22 AM

-f 140 is the right yt-dlp parameter to get just the audio.

show 1 reply
amatechatoday at 1:16 AM

Oh, I missed that! In that case,

  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>