{"id":1531,"date":"2017-01-15T11:52:21","date_gmt":"2017-01-15T11:52:21","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=1531"},"modified":"2017-01-15T11:52:21","modified_gmt":"2017-01-15T11:52:21","slug":"youtube-video-downloader","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=1531","title":{"rendered":"youtube video downloader"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1532\" src=\"http:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/01\/500px-YouTube_Logo.svg_-300x125.png\" alt=\"\" width=\"300\" height=\"125\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/01\/500px-YouTube_Logo.svg_-300x125.png 300w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2017\/01\/500px-YouTube_Logo.svg_.png 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Want to batch download a bunch of videos in one swoop? \u00a0Here's how. \u00a0This also works with individual videos :)<\/p>\n<p>Step 1) \u00a0Install youtube-dl<\/p>\n<pre># emerge -av youtube-dl\r\n\r\nThese are the packages that would be merged, in order:\r\n\r\nCalculating dependencies... done!\r\n[ebuild R ] net-misc\/youtube-dl-2016.12.22::gentoo USE=\"offensive {-test}\" PYTHON_TARGETS=\"python2_7 python3_4 (-python3_5)\"<\/pre>\n<p>Step 2) Create a playlist on youtube<\/p>\n<p>Step 3) Execute the command and sit back.<\/p>\n<pre>$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]\/best[ext=mp4]' --merge-output-format 'mp4' https:\/\/www.youtube.com\/playlist?list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_ -o '%(title)s'<\/pre>\n<p>So this command takes the best mp4 video and the best m4a, merges them into mp4 and saves it as the title of the source from youtube.<\/p>\n<p>Example output is:<\/p>\n<pre>[youtube:playlist] PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_: Downloading webpage\r\n[download] Downloading playlist: Python 3.4 Programming Tutorials\r\n[youtube:playlist] playlist Python 3.4 Programming Tutorials: Downloading 56 videos\r\n[download] Downloading video 1 of 56\r\n[youtube] HBxCHonP6Ro: Downloading webpage\r\n[youtube] HBxCHonP6Ro: Downloading video info webpage\r\n[youtube] HBxCHonP6Ro: Extracting video information\r\n[youtube] HBxCHonP6Ro: Downloading MPD manifest\r\n[download] Python Programming Tutorial - 1 - Installing Python.f137 has already been downloaded\r\n[download] 100% of 11.66MiB\r\n[download] Destination: Python Programming Tutorial - 1 - Installing Python.f140\r\n[download] 100% of 3.73MiB in 00:01\r\n[ffmpeg] Merging formats into \"Python Programming Tutorial - 1 - Installing Python.mp4\"\r\nDeleting original file Python Programming Tutorial - 1 - Installing Python.f137 (pass -k to keep)\r\nDeleting original file Python Programming Tutorial - 1 - Installing Python.f140 (pass -k to keep)<\/pre>\n<p>You can get the official docs from <a href=\"http:\/\/youtube-dl.org\/\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to batch download a bunch of videos in one swoop? \u00a0Here's how. \u00a0This also works with individual videos :) Step 1) \u00a0Install youtube-dl # emerge -av youtube-dl These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-misc\/youtube-dl-2016.12.22::gentoo USE=\"offensive {-test}\" PYTHON_TARGETS=\"python2_7 python3_4 (-python3_5)\" Step 2) Create a playlist &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=1531\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">youtube video downloader<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[266,18,265],"class_list":["post-1531","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-download","tag-linux","tag-youtube"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1531"}],"version-history":[{"count":1,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1531\/revisions"}],"predecessor-version":[{"id":1533,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1531\/revisions\/1533"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}