{"id":3107,"date":"2014-01-25T17:39:03","date_gmt":"2014-01-25T17:39:03","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=2419"},"modified":"2014-01-25T17:39:03","modified_gmt":"2014-01-25T17:39:03","slug":"install-youtube-dl-command-line-video-download-tool-linux","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2014\/01\/25\/install-youtube-dl-command-line-video-download-tool-linux\/","title":{"rendered":"Install YouTube-DL \u2013 A Command Line Video Download Tool for Linux"},"content":{"rendered":"<p><strong>youtube-dl<\/strong>\u00a0is a\u00a0<strong>Python<\/strong>\u00a0based small command-line tool that allows to download videos from<strong>YouTube.com<\/strong>,\u00a0<strong>Dailymotion<\/strong>,\u00a0<strong>Google Video<\/strong>,\u00a0<strong>Photobucket<\/strong>,\u00a0<strong>Facebook<\/strong>,\u00a0<strong>Yahoo<\/strong>,\u00a0<strong>Metacafe<\/strong>,<strong>Depositfiles<\/strong>\u00a0and few more similar sites. It written in\u00a0<strong>pygtk<\/strong>\u00a0and requires\u00a0<strong>Python<\/strong>\u00a0interpreter to run this program, it\u2019s not platform restricted. It should run on any\u00a0<strong>Unix<\/strong>,\u00a0<strong>Windows<\/strong>\u00a0or in\u00a0<strong>Mac OS X<\/strong>based systems.<\/p>\n<p>Recently,\u00a0<strong>youtube-dl<\/strong>\u00a0added video download support for\u00a0<strong>17<\/strong>\u00a0new websites:\u00a0<strong>brightcove.com<\/strong>,<strong>auengine.com<\/strong>,\u00a0<strong>RingTV<\/strong>,\u00a0<strong>instagram.com<\/strong>,\u00a0<strong>Jukebox<\/strong>,\u00a0<strong>3sat<\/strong>,\u00a0<strong>CSpan<\/strong>,\u00a0<strong>Statigr.am<\/strong>,\u00a0<strong>traileraddict.com<\/strong>,<strong>hotnewhiphop.com<\/strong>,\u00a0<strong>wat.tv<\/strong>,\u00a0<strong>tu.tv<\/strong>,\u00a0<strong>gamespot.com<\/strong>, t<strong>udou.com<\/strong>,\u00a0<strong>Wimp.com<\/strong>,\u00a0<strong>archive.org<\/strong>\u00a0and<strong>break.com<\/strong><\/p>\n<p><strong>youtube-dl<\/strong>\u00a0also allows to choose specific avialable video quality format to download or let the program itself automatically download higher\u00a0quality video\u00a0from the site. It also has supports for user\u00a0<strong>specific playlist<\/strong>\u00a0downloads, options to add custom or\u00a0<strong>original title<\/strong>\u00a0to the downloadedvideo file.\u00a0<strong>proxy support<\/strong>\u00a0and many more.<\/p>\n<p><a href=\"http:\/\/imgur.com\/xsYVXeQ\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" alt=\"\" src=\"http:\/\/i.imgur.com\/xsYVXeQ.jpg\" width=\"620\" height=\"387\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>First, you need to download the file using\u00a0<strong>Wget<\/strong>\u00a0and then install it using\u00a0<strong>RPM<\/strong>\u00a0on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (<strong>Make sure you must be\u00a0<\/strong><strong>root<\/strong>\u00a0user).<\/p>\n<h4>RHEL\/CentOS 6 32-64 Bit<\/h4>\n<pre><b>## RHEL\/CentOS 6 32-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\n# rpm -ivh epel-release-6-8.noarch.rpm\n\n<b>## RHEL\/CentOS 6 64-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\n# rpm -ivh epel-release-6-8.noarch.rpm<\/pre>\n<h4>RHEL\/CentOS 5 32-64 Bit<\/h4>\n<pre><b>## RHEL\/CentOS 5 32-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/5\/i386\/epel-release-5-4.noarch.rpm\n# rpm -ivh epel-release-5-4.noarch.rpm\n\n<b>## RHEL\/CentOS 5 64-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/5\/x86_64\/epel-release-5-4.noarch.rpm\n# rpm -ivh epel-release-5-4.noarch.rpm<\/pre>\n<h4>RHEL\/CentOS 4 32-64 Bit<\/h4>\n<pre><b>## RHEL\/CentOS 4 32-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/4\/i386\/epel-release-4-10.noarch.rpm\n# rpm -ivh epel-release-4-10.noarch.rpm\n\n<b>## RHEL\/CentOS 4 64-Bit ##<\/b>\n# wget http:\/\/download.fedoraproject.org\/pub\/epel\/4\/x86_64\/epel-release-4-10.noarch.rpm\n# rpm -ivh epel-release-4-10.noarch.rpm<\/pre>\n<p>&nbsp;<\/p>\n<p>Once enabled, you can install using \u2018<strong>yum<\/strong>\u2018 package manager tool as shown.<\/p>\n<pre># yum install youtube-dl<\/pre>\n<h3>Install YouTube-DL in Ubuntu\/Linux Mint and Debian<\/h3>\n<p><strong>Ubuntu<\/strong>\u00a0users can download and install latest\u00a0<strong>youtube-dl<\/strong>\u00a0version from the\u00a0<a href=\"https:\/\/launchpad.net\/~nilarimogard\/+archive\/webupd8\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">webupd8 PPA<\/a>\u00a0as shown.<\/p>\n<pre>$ sudo add-apt-repository ppa:nilarimogard\/webupd8\n$ sudo apt-get update\n$ sudo apt-get install youtube-dl<\/pre>\n<h3>Update YouTube-DL<\/h3>\n<p>Youtube-dl itself can be\u00a0<strong>updated<\/strong>\u00a0to the latest version using the following command.<\/p>\n<pre># youtube-dl -U<\/pre>\n<h3>How to Use YouTube-DL to Download Videos<\/h3>\n<p>To download a video file, simply run the following command. Where \u201c<strong>VIDEO_URL<\/strong>\u201d is the url of the video that you want to download.<\/p>\n<pre># <strong>youtube-dl http:\/\/www.youtube.com\/watch?v=vKtwZmhX0lw<\/strong>\n\n[youtube] Setting language\n[youtube] VMkkaQZAK3c: Downloading video webpage\n[youtube] VMkkaQZAK3c: Downloading video info webpage\n[youtube] VMkkaQZAK3c: Extracting video information\n[download] Destination: Natural Skin Whitening Methods-VMkkaQZAK3c.mp4\n[download]  15.3% of 218.88MiB at 968.72KiB\/s ETA 03:16<\/pre>\n<p>To download a video in availabe file formats, use option \u201c<strong>\u2013all-formats<\/strong>\u201d with the command.<\/p>\n<pre># <strong>youtube-dl \u2013all-formats http:\/\/www.youtube.com\/watch?v=vKtwZmhX0lw<\/strong>\n\n[youtube] Setting language\n[youtube] VMkkaQZAK3c: Downloading video webpage\n[youtube] VMkkaQZAK3c: Downloading video info webpage\n[youtube] VMkkaQZAK3c: Extracting video information\nAvailable formats:\n37        :        mp4        [1080x1920]\n46        :        webm       [1080x1920]\n22        :        mp4        [720x1280]\n45        :        webm       [720x1280]\n35        :        flv        [480x854]\n44        :        webm       [480x854]\n<strong>34       :       flv        [360x640]<\/strong>\n18        :        mp4        [360x640]\n43        :        webm       [360x640]\n5         :        flv        [240x400]\n17        :        mp4        [144x176]<\/pre>\n<p>To download a preferred file format, use the option \u2018<strong>-f\u2019<\/strong>\u00a0(video format code). For example, I would like to download\u00a0<strong>flv<\/strong>\u00a0format, So I use format code as \u2018<strong>34<\/strong>\u2018 as shown below.<\/p>\n<pre># <strong>youtube-dl -f 34 http:\/\/www.youtube.com\/watch?v=vKtwZmhX0lw<\/strong>[youtube] Setting language\n[youtube] VMkkaQZAK3c: Downloading video webpage\n[youtube] VMkkaQZAK3c: Downloading video info webpage\n[youtube] VMkkaQZAK3c: Extracting video information\n[download] Destination: Natural Skin Whitening Methods-VMkkaQZAK3c.flv\n[download]  16.9% of 32.57MiB at 916.81KiB\/s ETA 00:30<\/pre>\n<p>To download a\u00a0<strong>list of video<\/strong>\u00a0files, create a file and place all the\u00a0<strong>YouTube<\/strong>\u00a0links that you wish to download.<\/p>\n<pre># <strong>youtube-dl -a youtube_links.txt<\/strong><\/pre>\n<p>Type the following command in a terminal to list all the avialable options.<\/p>\n<pre># man youtube-dl<\/pre>\n<p>&nbsp;<\/p>\n<h3 class=\"zemanta-related-title\" style=\"margin: 0 0 10px 0; padding: 0; clear: both;\">Related articles across the web<\/h3>\n<ul class=\"zemanta-article-ul zemanta-article-ul-image\" style=\"margin: 0; padding: 0; overflow: hidden;\">\n<li class=\"zemanta-article-ul-li-image zemanta-article-ul-li\" style=\"padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 104px; font-size: 12px; margin: 0 5px 10px 0;\"><a style=\"padding: 2px; display: block; text-decoration: none;\" href=\"http:\/\/blog.shineservers.com\/protect-apache-using-mod_evasive-rhelcentos-fedora\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" style=\"border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); padding: 0; margin: 0; border: 0; display: block; width: 100px; max-width: 100%;\" alt=\"\" src=\"http:\/\/i.zemanta.com\/239656351_150_150.jpg\" \/><\/a><a style=\"display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;\" href=\"http:\/\/blog.shineservers.com\/protect-apache-using-mod_evasive-rhelcentos-fedora\/\" target=\"_blank\" rel=\"noopener noreferrer\">Protect Apache using Mod_evasive on RHEL\/CentOS &amp; Fedora<\/a><\/li>\n<li class=\"zemanta-article-ul-li-image zemanta-article-ul-li\" style=\"padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 104px; font-size: 12px; margin: 0 5px 10px 0;\"><a style=\"padding: 2px; display: block; text-decoration: none;\" href=\"http:\/\/www.unixmen.com\/install-epel-repository-rhel-centos-scientific-linux-6\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" style=\"border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); padding: 0; margin: 0; border: 0; display: block; width: 100px; max-width: 100%;\" alt=\"\" src=\"http:\/\/i.zemanta.com\/noimg_10_150_150.jpg\" \/><\/a><a style=\"display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;\" href=\"http:\/\/www.unixmen.com\/install-epel-repository-rhel-centos-scientific-linux-6\/\" target=\"_blank\" rel=\"noopener noreferrer\">Install EPEL Repository On RHEL \/ CentOS \/ Scientific linux 6<\/a><\/li>\n<li class=\"zemanta-article-ul-li-image zemanta-article-ul-li\" style=\"padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 104px; font-size: 12px; margin: 0 5px 10px 0;\"><a style=\"padding: 2px; display: block; text-decoration: none;\" href=\"http:\/\/linux2uday.wordpress.com\/2013\/12\/23\/configuring-yum-to-install-the-packages-from-the-rhn-subscribed-channels\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" style=\"border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); padding: 0; margin: 0; border: 0; display: block; width: 100px; max-width: 100%;\" alt=\"\" src=\"http:\/\/i.zemanta.com\/232889980_150_150.jpg\" \/><\/a><a style=\"display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;\" href=\"http:\/\/linux2uday.wordpress.com\/2013\/12\/23\/configuring-yum-to-install-the-packages-from-the-rhn-subscribed-channels\/\" target=\"_blank\" rel=\"noopener noreferrer\">Configuring YUM to install the packages from the RHN subscribed Channels<\/a><\/li>\n<li class=\"zemanta-article-ul-li-image zemanta-article-ul-li\" style=\"padding: 0; background: none; list-style: none; display: block; float: left; vertical-align: top; text-align: left; width: 104px; font-size: 12px; margin: 0 5px 10px 0;\"><a style=\"padding: 2px; display: block; text-decoration: none;\" href=\"http:\/\/www.unixmen.com\/install-rpm-fusion-repository-rhel-centos-scientific-linux-6-x-5-x-fedora-14-20\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" style=\"border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); padding: 0; margin: 0; border: 0; display: block; width: 100px; max-width: 100%;\" alt=\"\" src=\"http:\/\/i.zemanta.com\/noimg_0_150_150.jpg\" \/><\/a><a style=\"display: block; overflow: hidden; text-decoration: none; line-height: 12pt; height: 80px; padding: 5px 2px 0 2px;\" href=\"http:\/\/www.unixmen.com\/install-rpm-fusion-repository-rhel-centos-scientific-linux-6-x-5-x-fedora-14-20\/\" target=\"_blank\" rel=\"noopener noreferrer\">Install RPM Fusion Repository On RHEL, CentOS, Scientific Linux 6.x, 5.x And Fedora 14 To 20<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>youtube-dl\u00a0is a\u00a0Python\u00a0based small command-line tool that allows to download videos fromYouTube.com,\u00a0Dailymotion,\u00a0Google Video,\u00a0Photobucket,\u00a0Facebook,\u00a0Yahoo,\u00a0Metacafe,Depositfiles\u00a0and few more similar sites. It written in\u00a0pygtk\u00a0and requires\u00a0Python\u00a0interpreter to run this program, it\u2019s not platform restricted. It should run on any\u00a0Unix,\u00a0Windows\u00a0or in\u00a0Mac OS Xbased systems. Recently,\u00a0youtube-dl\u00a0added video download support for\u00a017\u00a0new websites:\u00a0brightcove.com,auengine.com,\u00a0RingTV,\u00a0instagram.com,\u00a0Jukebox,\u00a03sat,\u00a0CSpan,\u00a0Statigr.am,\u00a0traileraddict.com,hotnewhiphop.com,\u00a0wat.tv,\u00a0tu.tv,\u00a0gamespot.com, tudou.com,\u00a0Wimp.com,\u00a0archive.org\u00a0andbreak.com youtube-dl\u00a0also allows to choose specific avialable video quality format to download [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[60],"tags":[],"class_list":["post-3107","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/3107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=3107"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/3107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=3107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=3107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=3107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}