- Do a Spotlight search for terminal.app
- Then copy and paste the following lines into the Terminal window, pressing ENTER after each command
# cd = change directory
cd /usr/local
# mkdir = make directory
mkdir bin
# curl = download a file from a URL to a hard drive location
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
# chmod = apply the correct permissions to the downloaded file
sudo chmod a+rx /usr/local/bin/youtube-dl
- Download the latest snapshot build of FFmpeg as a .zip archive from https://evermeet.cx/ffmpeg/
- Extract zip and copy to /usr/local/bin
Download directly from https://yt-dl.org/downloads/latest/youtube-dl and copy and paste to /usr/local/bin
then run CHMOD command
Add --no-check-certificate
flag to end of youtube-dl
command.
# check which version you have (useful if you have a problem)
youtube-dl --version
# update to latest version:
sudo youtube-dl -U
# set output location
# after typing 'cd ' you can drag and drop the destination folder into the window, then press ENTER
cd DIRECTORY_NAME
# output template - replace VIDEO_ID with the string shown after https://www.youtube.com/watch?v=
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 --embed-thumbnail -o '%(title)s.%(ext)s' https://www.youtube.com/watch?v=VIDEO_ID
# set output location
# after typing 'cd ' you can drag and drop the destination folder into the window, then press ENTER
cd DIRECTORY_NAME
# output template - replace PLAYLIST_ID with the string shown after https://www.youtube.com/playlist?list=
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 --embed-thumbnail -o '%(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLAYLIST_ID