youtube-dl – download Youtube videos from linux command Line

Installation of youtube-dl from the terminal
Open the the terminal type the below command
#  sudo apt-get install youtube-dl

Downlaod Videos using youtube-dl
Step1: Go to youtube website and search the video that you want to download
Step:2 Copy the Video URL from the browser’s navigation(address) bar .
Open the terminal  type below Command :
# youtube-dl <video URL>
Example:
# youtube-dl https://www.youtube.com/watch?v=9mmF8zOlh_g

youtube-dl
Download Videos in the format of your Choice
# youtube-dl -F  {video URL}
Example :
# youtube-dl -F  https://www.youtube.com/watch?v=9mmF8zOlh_g
youtube-dl-file-formats
Suppose You want to download ‘mp4′ format , then  use the below Command
# youtube-dl -f  {format code} {video URL}
So as per above ouput mp4 format code is 18.
# youtube-dl -f  18  https://www.youtube.com/watch?v=9mmF8zOlh_g
Download list of videos using youtube-dl
To download a list of video files,  first create a file & place all the video urls  that you want to download.
# youtube-dl -a videos_url.txt
Update YouTube-DL
youtube-dl itself can be updated to the latest version using the below command.
# youtube-dl -U

Comments

Popular posts from this blog