{"id":129,"date":"2007-10-05T00:06:32","date_gmt":"2007-10-04T22:06:32","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/2007\/10\/05\/download-flv-videos-from-youtube\/"},"modified":"2007-10-05T00:06:32","modified_gmt":"2007-10-04T22:06:32","slug":"download-flv-videos-from-youtube","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2007\/10\/05\/download-flv-videos-from-youtube\/","title":{"rendered":"download flv videos from youtube"},"content":{"rendered":"<p>My wife wants to keep some videos found on <a href=\"http:\/\/www.youtube.com\/\">youtube<\/a>, and I really can&#8217;t recommend just keeping bookmarks to a random web site like that. Not if you want the content to be available in a few years ahead, or even ten or twenty years. Then downloading the files to keep the locally is the only sane way to make it somewhat more reliable.<\/p>\n<p>To download the files you can do it with a browser or with a command line tool:<\/p>\n<p><strong>Browser Style<\/strong><img decoding=\"async\" src=\"http:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2007\/10\/greasemonkey125.jpg\" title=\"Greasemonkey\" alt=\"Greasemonkey\" align=\"right\" border=\"0\" hspace=\"10\" vspace=\"10\" \/><\/p>\n<ol>\n<li>Use Firefox<\/li>\n<li>Install <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/748\">Greasemonkey<\/a><\/li>\n<li>Within Greasemonkey there&#8217;s concept of user scripts that customize it, and we want a certain customization for youtube pages. So we get the <a href=\"http:\/\/userscripts.org\/scripts\/show\/12119\">YouTube to me v2<\/a> script installed.<\/li>\n<li>Now, each youtube web page gets a red stripe on the top of the page that allows you to download the FLV.<\/li>\n<\/ol>\n<p><strong>Command Line Style<\/strong><\/p>\n<p>There exist several command line tools &#8220;out there&#8221; that do the job. I tried <a href=\"http:\/\/www.arrakis.es\/~rggi3\/youtube-dl\/\">youtube-dl<\/a> and it did the job splendidly by only proving the main HTTP URL on the command line.<\/p>\n<p>The main lacking feature is that it names the output flv based on the &#8216;v&#8217; variable in the URL so the downloads end up being named things like &#8220;f_8wuVEYMZ8.flv&#8221;&#8230;<\/p>\n<p><strong>Play the local FLV movies<\/strong><\/p>\n<p>For this, I can only recommend the lovely <a href=\"http:\/\/www.videolan.org\/vlc\/\">VLC media player<\/a>, available on all modern platforms.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My wife wants to keep some videos found on youtube, and I really can&#8217;t recommend just keeping bookmarks to a random web site like that. Not if you want the content to be available in a few years ahead, or even ten or twenty years. Then downloading the files to keep the locally is the &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2007\/10\/05\/download-flv-videos-from-youtube\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">download flv videos from youtube<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,6],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-net","category-floss"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}