You may notice, a number of my posts make use of the youtube-dl utility. Specifically, I used this to download source videos to show FFMpeg video conversion.
I normally install youtube-dl via the Ubuntu package manager:
$ sudo apt-get install youtube-dl
But, this version is typically 'well seasoned', read that as old.
Alternatively, since the utility is authored in Python, you can install it via Python PIP:
$ sudo pip install youtube-dl
The PIP version is often a bit dated as well, so occasionally it doesn't work with YouTube.
An alternative means is to install the latest version, directly from http://yt-dl.org/update
$ sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
$ sudo chmod a+x /usr/local/bin/youtube-dl
$ hash -r
Test it with your favorite YouTube video:
$ youtube-dl https://www.youtube.com/watch?v=5xUFQKxdlxE -o input.mp4
Happy Hunting!
Wow, very cool
ReplyDelete