You can use the -F
flag to list all available formats for a video, including audio- or video-only, then the -f
and the corresponding format code to download the file. Example:
$ youtube-dl -F [url]
format code extension resolution note
140 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2@129k (44100Hz), 4.58MiB
$ youtube-dl -f140 [url]