YouTube to MP3 with yt-dlp
Build the yt-dlp command that turns a YouTube video into a tagged MP3 with cover art.
Getting a usable MP3
Extraction is a conversion, so ffmpeg is required — this is the reason the command fails on a fresh install. Best (VBR) is the right default: it gives the best size-to-quality ratio, and a higher fixed bitrate cannot add quality the source never had.
Cover art and metadata turn a folder of anonymous files into something a music player can organise. The naming template here puts the artist first, falling back to the uploader when no artist is tagged.
Frequently asked questions
› What MP3 quality should I choose?
Best (VBR) for most cases — it gives the best size-to-quality ratio. 320 kbps is only worth it if something downstream insists on a fixed bitrate. Neither adds quality the source did not have.
› Why does MP3 extraction fail?
Converting audio requires ffmpeg. Install it and check with ffmpeg -version.
› VBR or a fixed bitrate?
VBR spends bits where they matter and is smaller at the same perceived quality. Use a fixed bitrate only when a device or piece of software demands one.
› Can I convert a whole playlist to MP3?
Yes — audio output plus whole-playlist handling. Add an archive file so a re-run does not redo the conversions.