How to Download YouTube Videos using MacOS Terminal (MP4 & MP3)

2 months ago
56

Join my Patreon:
👉 https://www.patreon.com/PeachezProgramming

LinkTree:
🔗https://linktr.ee/peachezprogramming

In this video we use MacOS's terminal and yt-dlp, which is a feature-rich command line audio / video downloader.

Link to the Github repo & DOCUMENTATION:
📄https://github.com/yt-dlp/yt-dlp

**Terminal commands**

//Checks the version of homebrew, which is a package manager for MacOS
brew --version

//If you don't have homebrew installed, run this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

//After you have homebrew installed, install yt-dlp:
brew install yt-dlp

//checks the version of yt-dlp
yt-dlp --version

//This is the command to download a YouTube Video in mp4 format
yt-dlp "https://www.youtube.com/watch?v=jKcRDgobqzA" -o '~/Documents/fartvideo.%(ext)s'

//this installs the file converter ffmpeg
brew install ffmpeg

//this checks the version of ffmpeg
ffmpeg -version

//this downloads the video in mp3 format (audio only)
yt-dlp "https://www.youtube.com/watch?v=jKcRDgobqzA" -o '~/Documents/fartsound.%(ext)s' -x --audio-format mp3

Loading 5 comments...