This thread is about youtube-dl. What is youtube-dl?
youtube-dl is a command-line program to download videos from YouTube.com and a few more sites.
I used SlackOnly's youtube-dl package on a full Slackware 14.2 installation. No extra dependencies required.
https://packages.slackonly.com/pub/packages/14.2-x86_64/network/youtube-dl/
It isn't a new version, but so far it has worked flawlessly on YouTube and Twitch.
The instructions for a straight installation are here: http://rg3.github.io/youtube-dl/download.html
But the way I did it (updated) is like this:
1. $ curl -L 'https://yt-dl.org/downloads/latest/youtube-dl'
2. $ sudo mv youtube-dl /usr/local/bin/
3. $ sudo chown root:root /usr/local/bin/youtube-dl
4. $ sudo chmod 755 /usr/local/bin/youtube-dl
5. $ hash -r (this is necessary so that youtube-dl is located if you removed the youtube-dl slackonly package)
Examples for YouTube (How I do it):
$ youtube-dl -F 'https://www.youtube.com/watch?v=fauJ0JQJNM0'
Choose the format that you want. The one on the bottom (22) is also the "(best)".
$ youtube-dl -f 22 'https://www.youtube.com/watch?v=fauJ0JQJNM0'
The video will be downloaded to your current directory.
For more options: $ youtube-dl –help
In the next thread I'll explain how to combine youtube-dl with mpv, so you can watch videos from YouTube or Twitch without a browser. Much faster and less resource hungry!
Until then.
Post last edited at