A very nice utility to have installed.
It can also convert a video to an mp3:
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=OKbtC223e30
It can also convert a video to an mp3:
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=OKbtC223e30
> youtube-dl -F OKbtC223e30
139 m4a audio only DASH audio 49k , audio@ 48k (22050Hz), 525.88KiB (worst)
171 webm audio only DASH audio 129k , audio@128k (44100Hz), 1.27MiB
140 m4a audio only DASH audio 129k , audio@128k (44100Hz), 1.36MiB
172 webm audio only DASH audio 176k , audio@256k (44100Hz), 1.78MiB
141 m4a audio only DASH audio 255k , audio@256k (44100Hz), 2.71MiB
Just use youtube-dl -f 141 to direct download just the audio from YouTube. I always use this to download songs. --audio-quality QUALITY
"best", "aac", "vorbis", "mp3", "m4a", "opus", or "wav"; "best" by defaultffmpeg.exe -i "Keith Wiley - The Fermi Paradox, Self-Replicating Probes, Interstellar Transport Bandwidth-AUk6ZlePtQA.m4a" -c:a copy 2.m4a
to change the format in the file header to M4A.
(Edit) Answering my own question, apparently yes!
youtube-dl -x --audio-format mp3 OKbtC223e30
youtube-dl -x --audio-format mp3 -fCtvurGDD8 youtube-dl -x --audio-format mp3 -- -fCtvurGDD8 youtube-dl -x --audio-format mp3 -- -fCtvurGDD8By the way, the GitHub issue tracker (https://yt-dl.org/bug ) is usually a better place to report issues. But just for youtube-dl reaching #1 on HN, I'll make an exception.