Downloading videos from YouTube in video and audio only format…

Hi there.

Want to be able to download single files, playlists or even entire channels? Want audio in MP3 format only? Good…

1) Install ffmpeg and youtube-dl (or youtube-dl-git from AUR).

pacman -S ffmpeg youtube-dl

2) Create YouTube folder in your home folder

mkdir ~/YouTube

3) For videos add this alias to ~/.bashrc:

alias YouTube='cd ~/YouTube/ && mkdir -p `date +"%Y.%m.%d"` && cd `date +"%Y.%m.%d"` && youtube-dl --ignore-errors --yes-playlist --sub-lang en'

4) For audio (best quality MP3s) add this alias to ~/.bashrc:

alias YouMP3='cd ~/YouTube/ && mkdir -p `date +"%Y.%m.%d"` && cd `date +"%Y.%m.%d"` && youtube-dl --ignore-errors --yes-playlist --extract-audio --audio-format mp3 --audio-quality 0'

Now all you need to do is open terminal and type in:

YouTube URL

or

YouMP3 URL

Where URL is an actual https://youtube.com/whatever link to a single video, playlist or to a “Videos” section of a channel, press enter, wait for the process to finish and then visit ~/YouTube folder. You will find the content in folder with today’s date ;).

You likey? Me happeey…

Andrzej

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.