YouTube to MP3 from the OS X Terminal

1. Install HomeBrew

2. Run the following from the terminal:

$ brew install youtube-dl
$ brew install ffmpeg
$ brew install lame

3. Get the URL of the YouTube video

4. At the terminal:
$ youtube-dl http://YouTubeURL

5. The downloaded file will be a .mp4 file, convert it to wav —
$ ffmpeg -i DownloadedFileName.mp4 TargetFileName.wav

6. Finally convert to MP3
$ lame FileName.wav FileName.mp3

Posted by

Leave a Reply