Download videos from most of sites using youtube-dl

youtube-dl
Command-line program to download videos from YouTube.com and other video sites

Advantages
1.Geographical restriction bypass
2.list download automatically
3.login input
4.converted automatically
5.sub extraction and audio extraction
6.advanced quality and filter selection

Installation


1.To install it right away for all UNIX users (Linux, OS X, etc.), type:
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
2.Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).

3.OS X users can install youtube-dl with Homebrew:

brew install  youtube-dl

Requirements

It requires the Python interpreter, version 2.6, 2.7, or 3.2+,FFMPEG

Python installation-Click here


FFmpeg

Open terminal via Ctrl+Alt+T or by searching for “Terminal” from the dash. When it opens, run command to add the PPA repository (unofficial):
sudo add-apt-repository ppa:jonathonf/ffmpeg-3
Or simply run command
sudo apt update && sudo apt upgrade                                                                                                  
sudo apt-get install ffmpeg

Sites supported-Click here

Command-line

Basic Examples
1.Download video+audio simple command
youtube-dl https://www.youtube.com/watch?v=3tmd-ClpJxA
2.find quality of videos available
youtube-dl https://www.youtube.com/watch?v=3tmd-ClpJxA -f
3.Download specific quality
youtube-dl https://www.youtube.com/watch?v=3tmd-ClpJxA -F <quality of video found using last command>
4.Cookie authentication for the sites needed
youtube-dl https://www.investigationdiscoverygo.com/murder-among-friends/ --cookies <path of cookie file>             
cookie files should  in standard format  created using export cookies extension in chrome/firefox
5.Tv provider login for tv sites
youtube-dl http://www.cbs.com/shows/james-corden --ap-mso DTV -n 
~/.netrc file should be made with credentials in the format,
machine DTV login <username> password <password>
DTV -direct tv,all providers have different codes,use --ap-list-mso for a list of available MSOs
6.Geo bypass
youtube-dl http://www.hotstar.com/tv/cricket-live  -geo-bypass-country IN --prefer-ffmpeg
IN -India(since hotstar is only available in india but this way it can downloaded anywhere US -unites states
7.only sub download
youtube-dl https://www.investigationdiscoverygo.com/murder-among-friends/ --skip-download --write-sub --sub-format vtt

How do I update youtube-dl?

 you can simply run youtube-dl -U (or, on Linux, sudo youtube-dl -U).
If you have used pip, a simple sudo pip install -U youtube-dl is sufficient to update.

Comments

Popular posts from this blog

SreePadmanabhaswamy Temple