Hacker News new | ask | show | jobs
by rldjbpin 762 days ago
imo a better alternative (did not test on other sites)

yt-dlp -f bestaudio <url>

it directly downloads the audio from youtube and does not require ffmpeg unlike the -x option. moreover, you can specify format (m4a or default webm) like so - replace "bestaudio" with "bestaudio[ext=<format>]"

this only falls short unless you explicitly need it in mp3 container.