youtube-dl usage
mouse 99 · person cloud · link
Last update
2019-05-15
2019
05-15
« — »
1
2
3
4
5
6
7
8
9
10
# to parse a playlist use "--yes-playlist url" or simply "playlist_id"

# downoload a playlist audio only
youtube-dl -i -o "%(title)s.%(ext)s" \
  -f bestaudio --extract-audio --audio-format mp3 --audio-quality 2 \
  <playlist_id>

# download a specific combination of audio and video in a single file
youtube-dl -F <url> # detect desired format codes
youtube-dl --merge-output-format mkv -f <code1>+<code2> <url>

Source: youtube-dl hp, stackoverflow.com, askubuntu.com