mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 11:31:47 +01:00
Reorganize website
This commit is contained in:
parent
a993428ac9
commit
725d763c48
35
about.html
Normal file
35
about.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>About youtube-dl</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">About the program</td>
|
||||
</tr></table>
|
||||
|
||||
<h1>What is it?</h1>
|
||||
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a>, version 2.x (x being at least 4), and it is not platform specific. It should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.</p>
|
||||
|
||||
<p>I will try to keep it updated if YouTube.com changes the way you access their videos. After all, it is a simple and short program. However, I can not guarantee anything. If you detect it stops working, check for new versions and/or inform me about the problem, indicating the program version you are using. My contact information is at <a href="https://rg03.wordpress.com/contact-me/">rg03.wordpress.com</a>. If the program stops working and I can not solve the problem but you have a solution, I would like to know it. Furthermore, if you think you can maintain the program yourself, tell me.</p>
|
||||
|
||||
<p>Thanks for all the feedback received so far. I am glad people find my program useful.</p>
|
||||
|
||||
<h1>Authors</h1>
|
||||
|
||||
<ul>
|
||||
<li>Ricardo Garcia Gonzalez: program core, YouTube.com InfoExtractor, metacafe.com InfoExtractor and YouTube playlist InfoExtractor.</li>
|
||||
<li>Danny Colligan: YouTube search InfoExtractor, ideas and patches.</li>
|
||||
<li>Benjamin Johnson: Google Video InfoExtractor, Photobucket InfoExtractor, Yahoo! Video InfoExtractor, generic InfoExtractor, ideas, patches, etc.</li>
|
||||
<li>Many other people contributing patches, code, ideas and kind messages. Too many to be listed here. You know who you are. Thank you very much.</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">Copyright © 2006-2010 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
|
@ -3,23 +3,31 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl</title>
|
||||
<title>youtube-dl: Documentation</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>youtube-dl: Download videos from YouTube.com</h1>
|
||||
|
||||
<div class="note">(and more...)</div>
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Documentation</td>
|
||||
</tr></table>
|
||||
|
||||
<h2>What is it?</h2>
|
||||
<div class="toc">
|
||||
<h1>Index</h1>
|
||||
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a>, version 2.x (x being at least 4), and it's not platform specific. It should work in your Unix box, in Windows or in Mac OS X. The latest version is <strong>@PROGRAM_VERSION@</strong>. It's released to the public domain, which means you can modify it, redistribute it or use it however you like.</p>
|
||||
<p>
|
||||
<a href="#d1">Getting started</a><br>
|
||||
<a href="#d2">More usage tips</a><br>
|
||||
<a href="#d3">Frequently Asked Questions</a><br>
|
||||
<a href="#d4">Supported sites</a><br>
|
||||
<a href="#d5">Proxy support</a><br>
|
||||
<a href="#d6">YouTube formats</a><br>
|
||||
<a href="#d7">Output template</a><br>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p>I'll try to keep it updated if YouTube.com changes the way you access their videos. After all, it's a simple and short program. However, I can't guarantee anything. If you detect it stops working, check for new versions and/or inform me about the problem, indicating the program version you are using. My contact information is at <a href="https://rg03.wordpress.com/contact-me/">rg03.wordpress.com</a>. If the program stops working and I can't solve the problem but you have a solution, I'd like to know it. If that happens and you feel you can maintain the program yourself, tell me.</p>
|
||||
|
||||
<p>Thanks for all the feedback received so far. I'm glad people find my program useful.</p>
|
||||
|
||||
<h2>Usage instructions</h2>
|
||||
<h1 id="d1">Getting started</h1>
|
||||
|
||||
<p>In Windows, once you have installed the Python interpreter, save the program with the <em>.py</em> extension and put it somewhere in the PATH. Try to follow the <a href="windows.html">guide to install youtube-dl under Windows</a>.</p>
|
||||
|
||||
|
@ -29,29 +37,17 @@
|
|||
|
||||
<p>If you try to run the program and you receive an error message containing the keyword <em>SyntaxError</em> near the end, it means your Python interpreter is too old or from the 3.x branch.</p>
|
||||
|
||||
<h2>More usage tips</h2>
|
||||
<h1 id="d2">More usage tips</h1>
|
||||
|
||||
<p>The program is usually invoked as <em>youtube-dl</em> followed by options and the video URLs. Listing all the options here would make this text too long, so you can run <em>youtube-dl --help</em> and get a summary of them. From that point on you can start experimenting with the different options yourself. The most common ones are -t (or -l) to include the video title in the file name. Also, the -o option can specify the output file name and path. It allows special character sequences that can be used as templates to be replaced. See the "Output template" section for more details.</p>
|
||||
|
||||
<p>Some YouTube videos are served using Adobe's proprietary RTMP protocol, which imposes DRM restrictions and encrypts the connection. <em>youtube-dl</em> is not able to download these videos by itself. However, it will attempt to use the <a href="http://rtmpdump.mplayerhq.hu/">rtmpdump</a> program, if it's installed in your system, to download these videos.</p>
|
||||
|
||||
<h2>Download it</h2>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<h3><a href="@PROGRAM_URL@">@PROGRAM_VERSION@</a></h3>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: @PROGRAM_MD5SUM@</li>
|
||||
<li><strong>SHA1</strong>: @PROGRAM_SHA1SUM@</li>
|
||||
<li><strong>SHA256</strong>: @PROGRAM_SHA256SUM@</li>
|
||||
</ul>
|
||||
|
||||
<h2>FAQ</h2>
|
||||
<h1 id="d3">Frequently Asked Questions</h1>
|
||||
|
||||
<p>The <a href="faq.html">Frequently Asked Questions</a> page contains answers to some common questions that pop up in my e-mail and in the <a href="https://github.com/rg3/youtube-dl/issues">issue tracker</a>. Be sure to check it before reporting problems.</p>
|
||||
|
||||
<h2>Supported sites</h2>
|
||||
<h1 id="d4">Supported sites</h1>
|
||||
|
||||
<ul>
|
||||
<li>YouTube.com.</li>
|
||||
|
@ -67,15 +63,15 @@
|
|||
<li>A generic downloader that works in some sites.</li>
|
||||
</ul>
|
||||
|
||||
<h2>Proxy support</h2>
|
||||
<h1 id="d5">Proxy support</h1>
|
||||
|
||||
<p>youtube-dl supports downloading videos through a proxy, by setting the http_proxy environment variable to the proxy URL, as in <em>http://proxy_machine_name:port/</em>.</p>
|
||||
<p>youtube-dl supports downloading videos through a proxy, by setting the <em>http_proxy</em> environment variable to the proxy URL, as in <tt>http://proxy_machine_name:port/</tt>.</p>
|
||||
|
||||
<h2>YouTube formats</h2>
|
||||
<h1 id="d6">YouTube formats</h1>
|
||||
|
||||
<p>Using the -f option and other related options, you can specify the video format to be downloaded from YouTube. Instead of keeping a video format table here, I will refer you to the <a href="http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs">list of YouTube formats on Wikipedia</a>.</p>
|
||||
|
||||
<h2>Output template</h2>
|
||||
<h1 id="d7">Output template</h1>
|
||||
|
||||
<p>The -o option allows users to indicate a template for the output file names. The basic usage is not to set any template arguments when downloading a single file, like in <em>youtube-dl -o funny_video.flv "http://some/video"</em>. However, it may contain special sequences that will be replaced when downloading each video. The special sequences have the format <strong>%(NAME)s</strong>. To clarify, that's a percent symbol followed by a name in parenthesis, followed by a lowercase S. Allowed names are:</p>
|
||||
|
||||
|
@ -92,15 +88,6 @@
|
|||
|
||||
<p>As you may have guessed, the default template is <em>%(id)s.%(ext)s</em>. When some command line options are used, it's replaced by other templates like <em>%(title)s-%(id)s.%(ext)s</em>. You can specify your own.</p>
|
||||
|
||||
<h2>Authors</h2>
|
||||
|
||||
<ul>
|
||||
<li>Ricardo Garcia Gonzalez: program core, YouTube.com InfoExtractor, metacafe.com InfoExtractor and YouTube playlist InfoExtractor.</li>
|
||||
<li>Danny Colligan: YouTube search InfoExtractor, ideas and patches.</li>
|
||||
<li>Benjamin Johnson: Google Video InfoExtractor, Photobucket InfoExtractor, Yahoo! Video InfoExtractor, generic InfoExtractor, ideas, patches, etc.</li>
|
||||
<li>Many other people contributing patches, code, ideas and kind messages. Too many to be listed here. You know who you are. Thank you very much.</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">Copyright © 2006-2010 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
30
download.html
Normal file
30
download.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl: Download Page</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download Page</td>
|
||||
</tr></table>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<p>Remember <em>youtube-dl</em> requires <a href="http://www.python.org/">Python</a> version 2.x (x being at least 4) to work.</p>
|
||||
|
||||
<h2><a href="https://github.com/rg3/youtube-dl/raw/2010.10.24/youtube-dl">2010.10.24</a></h2>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: 4408021502046e52bc3d3ddd95123d44</li>
|
||||
<li><strong>SHA1</strong>: 5c5e68776be8eeefc2ddeeabccbc12185312fd69</li>
|
||||
<li><strong>SHA256</strong>: 1ec91cd1d791c62777724fb650fde3d6da1ad5c86b4f46ec0368759ce7a7a381</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">Copyright © 2006-2010 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
30
download.html.in
Normal file
30
download.html.in
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl: Download Page</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download Page</td>
|
||||
</tr></table>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<p>Remember <em>youtube-dl</em> requires <a href="http://www.python.org/">Python</a> version 2.x (x being at least 4) to work.</p>
|
||||
|
||||
<h2><a href="@PROGRAM_URL@">@PROGRAM_VERSION@</a></h2>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: @PROGRAM_MD5SUM@</li>
|
||||
<li><strong>SHA1</strong>: @PROGRAM_SHA1SUM@</li>
|
||||
<li><strong>SHA256</strong>: @PROGRAM_SHA256SUM@</li>
|
||||
</ul>
|
||||
|
||||
<div class="note">Copyright © 2006-2010 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
</html>
|
32
faq.html
32
faq.html
|
@ -3,31 +3,47 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<title>youtube-dl Frequently Asked Questions</title>
|
||||
<title>youtube-dl: Frequently Asked Questions</title>
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>youtube-dl Frequently Asked Questions</h1>
|
||||
|
||||
<h2>The program has stopped working. Please fix it.</h2>
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Frequently Asked Questions</td>
|
||||
</tr></table>
|
||||
|
||||
<div class="toc">
|
||||
<h1>Questions</h1>
|
||||
|
||||
<p>
|
||||
<a href="#q1">The program has stopped working. Please fix it.</a><br>
|
||||
<a href="#q2">Can you please put the -b option back?</a><br>
|
||||
<a href="#q3">I get HTTP error 402 when trying to download a video. What's this?</a><br>
|
||||
<a href="#q4">I have downloaded a video but how can I play it?</a><br>
|
||||
<a href="#q5">Sometimes the program does not download the best quality format</a><br>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h1 id="q1">The program has stopped working. Please fix it.</h1>
|
||||
|
||||
<p>First, that is not a question. Second, when reporting this type of issue please make sure you're using the latest version, and mention the version you're using in the bug report. You should also copy the command line you're using to call the program, and the program output so I can see how it fails and have an example of a specific video that's giving you problems.</p>
|
||||
|
||||
<p>The preferred method to report bugs is to write me an e-mail. You can find my address in the <a href="https://rg03.wordpress.com/contact-me/">contact information page at rg03.wordpress.com</a>. Together with this, you should check if there's a similar recent issue reported in the issue tracker. If you decide to open a new issue or post a comment in an existing issue, mention that in the e-mail as well. Writing me by e-mail lets me answer you directly and I have your contact information, so I can get back to you for more information or ask you to test a solution for your problem.</p>
|
||||
<p>The preferred method to report bugs is to write me an e-mail. You can find my address in the <a href="https://rg03.wordpress.com/contact-me/">contact information page at rg03.wordpress.com</a>. Together with this, you should check if there's a similar recent issue reported in the <a href="https://github.com/rg3/youtube-dl/issues/">issue tracker</a>. If you decide to open a new issue or post a comment in an existing issue, mention that in the e-mail as well. Writing me by e-mail lets me answer you directly and I have your contact information, so I can get back to you for more information or ask you to test a solution for your problem.</p>
|
||||
|
||||
<h2>Can you please put the -b option back?</h2>
|
||||
<h1 id="q2">Can you please put the -b option back?</h1>
|
||||
|
||||
<p>Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p in some cases, so you no longer need the -b option. For some specific videos, maybe YouTube does not report them to be available in a specific high quality format you're interested in. In that case, simply request it with the -f option and youtube-dl will try to download it.</p>
|
||||
|
||||
<h2>I get HTTP error 402 when trying to download a video. What's this?</h2>
|
||||
<h1 id="q3">I get HTTP error 402 when trying to download a video. What's this?</h1>
|
||||
|
||||
<p>Apparently YouTube requires you to pass a CAPTCHA test if you download too much. At this moment, there is no plan to solve this issue, as youtube-dl is a command line program that is many times used without X and in an unattended fashion, so there's no easy way of solving this, in my humble opinion. I have no plans to solve it at this moment, but let me know your ideas and code if you come up with something.</p>
|
||||
|
||||
<h2>I have downloaded a video but how can I play it?</h2>
|
||||
<h1 id="q4">I have downloaded a video but how can I play it?</h1>
|
||||
|
||||
<p>If you used youtube-dl to download a video and it wrote the video file to your hard drive, finishing with a completion message of 100%, the video is downloaded, so youtube-dl has finished its job and usually it's not to blame for problems that happen later. Not every video player supports FLV or MP4 files and every codec out there needed to play YouTube videos. In Linux, for example, I am generally pleased with <a href="http://www.mplayerhq.hu/">MPlayer</a>. In Windows, I tend to use <a href="http://www.videolan.org/">VLC</a>. Those usually work flawlessly.</p>
|
||||
|
||||
<h2>Sometimes the program does not download the best quality format</h2>
|
||||
<h1 id="q5">Sometimes the program does not download the best quality format</h1>
|
||||
|
||||
<p>This issue happens on YouTube and related to formats 34 and 18. Format 34 is, for many videos, 360p widescreen, and of higher quality than the same video in format 18. However, sometimes format 18 provides a better quality version, as format 34 appears to be just 240p for some videos. There is no plan to fix this. Currently the only way of finding out which version gives higher quality is to download a chunk of both formats and peek into the files themselves to find out, if you know how. As, in my experience, format 34 usually wins, and in many future videos uploaded in high definition formats it will be 360p, format 34 will remain as the format to download in case of doubt.</p>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ def output(cmdline):
|
|||
return retval
|
||||
|
||||
# Read template page
|
||||
template = file('index.html.in', 'r').read()
|
||||
template = file('download.html.in', 'r').read()
|
||||
|
||||
# Build replacement strings
|
||||
version = output('cd ../master && git tag | tail -1').strip()
|
||||
|
@ -25,4 +25,4 @@ template = template.replace('@PROGRAM_URL@', url)
|
|||
template = template.replace('@PROGRAM_MD5SUM@', md5sum)
|
||||
template = template.replace('@PROGRAM_SHA1SUM@', sha1sum)
|
||||
template = template.replace('@PROGRAM_SHA256SUM@', sha256sum)
|
||||
file('index.html', 'w').write(template)
|
||||
file('download.html', 'w').write(template)
|
BIN
gradient.png
Normal file
BIN
gradient.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 435 B |
BIN
gradient2.png
Normal file
BIN
gradient2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 356 B |
BIN
gradient3.png
Normal file
BIN
gradient3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 425 B |
BIN
gradient4.png
Normal file
BIN
gradient4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 B |
BIN
gradient5.png
Normal file
BIN
gradient5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 331 B |
101
index.html
101
index.html
|
@ -7,99 +7,20 @@
|
|||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>youtube-dl: Download videos from YouTube.com</h1>
|
||||
|
||||
<div class="note">(and more...)</div>
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Download videos from YouTube.com
|
||||
<span style="font-size: x-small; font-weight: normal;">(and mores sites...)</span></td>
|
||||
</tr></table>
|
||||
|
||||
<h2>What is it?</h2>
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a>, version 2.x (x being at least 4), and it is not platform specific. It should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.</p>
|
||||
|
||||
<p><em>youtube-dl</em> is a small command-line program to download videos from YouTube.com and a few more sites. It requires the <a href="http://www.python.org/">Python interpreter</a>, version 2.x (x being at least 4), and it's not platform specific. It should work in your Unix box, in Windows or in Mac OS X. The latest version is <strong>2010.10.24</strong>. It's released to the public domain, which means you can modify it, redistribute it or use it however you like.</p>
|
||||
|
||||
<p>I'll try to keep it updated if YouTube.com changes the way you access their videos. After all, it's a simple and short program. However, I can't guarantee anything. If you detect it stops working, check for new versions and/or inform me about the problem, indicating the program version you are using. My contact information is at <a href="https://rg03.wordpress.com/contact-me/">rg03.wordpress.com</a>. If the program stops working and I can't solve the problem but you have a solution, I'd like to know it. If that happens and you feel you can maintain the program yourself, tell me.</p>
|
||||
|
||||
<p>Thanks for all the feedback received so far. I'm glad people find my program useful.</p>
|
||||
|
||||
<h2>Usage instructions</h2>
|
||||
|
||||
<p>In Windows, once you have installed the Python interpreter, save the program with the <em>.py</em> extension and put it somewhere in the PATH. Try to follow the <a href="windows.html">guide to install youtube-dl under Windows</a>.</p>
|
||||
|
||||
<p>In Unix, download it, give it execution permission and copy it to one of the PATH directories (typically, <em>/usr/local/bin</em>).</p>
|
||||
|
||||
<p>After that, you should be able to call it from the command line as <em>youtube-dl</em> or <em>youtube-dl.py</em>. I will use <em>youtube-dl</em> in the following examples. Usage instructions are easy. Use <em>youtube-dl</em> followed by a video URL or identifier. Example: <em>youtube-dl "http://www.youtube.com/watch?v=foobar"</em>. The video will be saved to the file <em>foobar.flv</em> in that example. As YouTube.com videos are usually in Flash Video format, their extension should be <em>flv</em>. In Linux and other unices, video players using a recent version of <em>ffmpeg</em> can play them. That includes VLC, MPlayer, etc. Those two work under Windows and other platforms, but you could also get a specific FLV player of your taste.</p>
|
||||
|
||||
<p>If you try to run the program and you receive an error message containing the keyword <em>SyntaxError</em> near the end, it means your Python interpreter is too old or from the 3.x branch.</p>
|
||||
|
||||
<h2>More usage tips</h2>
|
||||
|
||||
<p>The program is usually invoked as <em>youtube-dl</em> followed by options and the video URLs. Listing all the options here would make this text too long, so you can run <em>youtube-dl --help</em> and get a summary of them. From that point on you can start experimenting with the different options yourself. The most common ones are -t (or -l) to include the video title in the file name. Also, the -o option can specify the output file name and path. It allows special character sequences that can be used as templates to be replaced. See the "Output template" section for more details.</p>
|
||||
|
||||
<p>Some YouTube videos are served using Adobe's proprietary RTMP protocol, which imposes DRM restrictions and encrypts the connection. <em>youtube-dl</em> is not able to download these videos by itself. However, it will attempt to use the <a href="http://rtmpdump.mplayerhq.hu/">rtmpdump</a> program, if it's installed in your system, to download these videos.</p>
|
||||
|
||||
<h2>Download it</h2>
|
||||
|
||||
<p>Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called <em>Save Target As</em> or <em>Save Link As</em>, depending on the web browser you are using.</p>
|
||||
|
||||
<h3><a href="https://github.com/rg3/youtube-dl/raw/2010.10.24/youtube-dl">2010.10.24</a></h3>
|
||||
|
||||
<ul>
|
||||
<li><strong>MD5</strong>: 4408021502046e52bc3d3ddd95123d44</li>
|
||||
<li><strong>SHA1</strong>: 5c5e68776be8eeefc2ddeeabccbc12185312fd69</li>
|
||||
<li><strong>SHA256</strong>: 1ec91cd1d791c62777724fb650fde3d6da1ad5c86b4f46ec0368759ce7a7a381</li>
|
||||
</ul>
|
||||
|
||||
<h2>FAQ</h2>
|
||||
|
||||
<p>The <a href="faq.html">Frequently Asked Questions</a> page contains answers to some common questions that pop up in my e-mail and in the <a href="https://github.com/rg3/youtube-dl/issues">issue tracker</a>. Be sure to check it before reporting problems.</p>
|
||||
|
||||
<h2>Supported sites</h2>
|
||||
|
||||
<ul>
|
||||
<li>YouTube.com.</li>
|
||||
<li>YouTube.com playlists (playlist URLs in "view_play_list" form).</li>
|
||||
<li>YouTube.com searches, using the special keyword "ytsearch" as a form of URL, as in "ytsearch:cute kittens". Do not forget the quotes if you want to include spaces in your search. Other variants are "ytsearchN" to download more than the first result, with N being a number, and "ytsearchall".</li>
|
||||
<li>metacafe.com.</li>
|
||||
<li>Google Video.</li>
|
||||
<li>Google Video searches ("gvsearch" keyword).</li>
|
||||
<li>Photobucket videos.</li>
|
||||
<li>Yahoo! video.</li>
|
||||
<li>Yahoo! video searches ("ybsearch" keyword).</li>
|
||||
<li>Dailymotion.</li>
|
||||
<li>A generic downloader that works in some sites.</li>
|
||||
</ul>
|
||||
|
||||
<h2>Proxy support</h2>
|
||||
|
||||
<p>youtube-dl supports downloading videos through a proxy, by setting the http_proxy environment variable to the proxy URL, as in <em>http://proxy_machine_name:port/</em>.</p>
|
||||
|
||||
<h2>YouTube formats</h2>
|
||||
|
||||
<p>Using the -f option and other related options, you can specify the video format to be downloaded from YouTube. Instead of keeping a video format table here, I will refer you to the <a href="http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs">list of YouTube formats on Wikipedia</a>.</p>
|
||||
|
||||
<h2>Output template</h2>
|
||||
|
||||
<p>The -o option allows users to indicate a template for the output file names. The basic usage is not to set any template arguments when downloading a single file, like in <em>youtube-dl -o funny_video.flv "http://some/video"</em>. However, it may contain special sequences that will be replaced when downloading each video. The special sequences have the format <strong>%(NAME)s</strong>. To clarify, that's a percent symbol followed by a name in parenthesis, followed by a lowercase S. Allowed names are:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>id</em>: The sequence will be replaced by the video identifier.</li>
|
||||
<li><em>url</em>: The sequence will be replaced by the video URL.</li>
|
||||
<li><em>uploader</em>: The sequence will be replaced by the nickname of the person who uploaded the video.</li>
|
||||
<li><em>title</em>: The sequence will be replaced by the literal video title.</li>
|
||||
<li><em>stitle</em>: The sequence will be replaced by a simplified video title, restricted to alphanumeric characters and dashes.</li>
|
||||
<li><em>ext</em>: The sequence will be replaced by the appropriate extension (like <em>flv</em> or <em>mp4</em>).</li>
|
||||
<li><em>epoch</em>: The sequence will be replaced by the Unix epoch when creating the file.</li>
|
||||
<li><em>ord</em>: The sequence will be replaced by a five-digit number that will be increased with each download, starting at zero.</li>
|
||||
</ul>
|
||||
|
||||
<p>As you may have guessed, the default template is <em>%(id)s.%(ext)s</em>. When some command line options are used, it's replaced by other templates like <em>%(title)s-%(id)s.%(ext)s</em>. You can specify your own.</p>
|
||||
|
||||
<h2>Authors</h2>
|
||||
|
||||
<ul>
|
||||
<li>Ricardo Garcia Gonzalez: program core, YouTube.com InfoExtractor, metacafe.com InfoExtractor and YouTube playlist InfoExtractor.</li>
|
||||
<li>Danny Colligan: YouTube search InfoExtractor, ideas and patches.</li>
|
||||
<li>Benjamin Johnson: Google Video InfoExtractor, Photobucket InfoExtractor, Yahoo! Video InfoExtractor, generic InfoExtractor, ideas, patches, etc.</li>
|
||||
<li>Many other people contributing patches, code, ideas and kind messages. Too many to be listed here. You know who you are. Thank you very much.</li>
|
||||
</ul>
|
||||
<table border="0" id="rgb"><tr>
|
||||
<td width="33%"><a class="button" id="r" href="documentation.html">Documentation</a></td>
|
||||
<td width="33%"><a class="button" id="g" href="download.html">Download it</a></td>
|
||||
<td width="33%"><a class="button" id="b" href="about.html">About</a></td>
|
||||
</tr></table>
|
||||
|
||||
<div class="note">Copyright © 2006-2010 Ricardo Garcia Gonzalez</div>
|
||||
</body>
|
||||
|
|
104
style.css
104
style.css
|
@ -6,23 +6,80 @@ body {
|
|||
margin-bottom: 3ex;
|
||||
background-color: white;
|
||||
color: black;
|
||||
/*background-color: #fff1db;*/
|
||||
background-color: white;
|
||||
/*
|
||||
background-image: url("gradient.png");
|
||||
background-repeat: repeat-x;
|
||||
*/
|
||||
/*
|
||||
background-image: url("gradient2.png");
|
||||
background-repeat: repeat-y;
|
||||
*/
|
||||
/*
|
||||
background-image: url("gradient3.png");
|
||||
background-repeat: repeat-x;
|
||||
*/
|
||||
/*
|
||||
background-image: url("gradient4.png");
|
||||
background-repeat: repeat-y;
|
||||
*/
|
||||
background-image: url("gradient5.png");
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.heading {
|
||||
border: 0;
|
||||
color: black;
|
||||
font-size: xx-large;
|
||||
font-weight: bold;
|
||||
padding-bottom: 1ex;
|
||||
border-bottom: 1px solid black;
|
||||
margin-bottom: 2ex;
|
||||
width: 100%;
|
||||
}
|
||||
.heading tr {
|
||||
border: 0;
|
||||
}
|
||||
.heading td {
|
||||
border: 0;
|
||||
}
|
||||
.heading a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
.title {
|
||||
text-align: left;
|
||||
}
|
||||
.subtitle {
|
||||
text-align: right;
|
||||
}
|
||||
.toc {
|
||||
padding-left: 2ex;
|
||||
border: 1px solid #aaaaaa;
|
||||
background-color: white;
|
||||
padding-bottom: 1ex;
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
}
|
||||
hr {
|
||||
margin-top: 3ex;
|
||||
margin-bottom: 3ex;
|
||||
width: 50%;
|
||||
}
|
||||
.note {
|
||||
margin-top: 10ex;
|
||||
text-align: center;
|
||||
font-size: x-small;
|
||||
}
|
||||
h1 {
|
||||
color: #006699;
|
||||
text-align: center;
|
||||
border: 1px solid #dddddd;
|
||||
background: #eeeeee;
|
||||
margin-bottom: 3ex;
|
||||
font-size: x-large;
|
||||
margin-top: 2ex;
|
||||
color: black;
|
||||
margin-left: 2%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 2ex;
|
||||
color: #006699;
|
||||
}
|
||||
h3 {
|
||||
font-size: large;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
@ -40,5 +97,34 @@ li {
|
|||
margin-bottom: 0.5ex;
|
||||
}
|
||||
tt {
|
||||
padding-left: 0.5ex;
|
||||
padding-right: 0.5ex;
|
||||
background: #dddddd;
|
||||
}
|
||||
#rgb {
|
||||
width: 95%;
|
||||
margin: 3ex auto;
|
||||
}
|
||||
.button {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: x-large;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
display: block;
|
||||
padding: 2ex;
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
}
|
||||
#r {
|
||||
background-color: #884444;
|
||||
border: 2px solid #880000;
|
||||
}
|
||||
#g {
|
||||
background-color: #448844;
|
||||
border: 2px solid #006600;
|
||||
}
|
||||
#b {
|
||||
background-color: #444488;
|
||||
border: 2px solid #000088;
|
||||
}
|
||||
|
|
16
windows.html
16
windows.html
|
@ -7,17 +7,21 @@
|
|||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>youtube-dl under Windows</h1>
|
||||
|
||||
<table class="heading"><tr>
|
||||
<td class="title"><a href="index.html">youtube-dl</a></td>
|
||||
<td class="subtitle">Running it under Windows</td>
|
||||
</tr></table>
|
||||
|
||||
<p>The following text explains how to run <em>youtube-dl</em> under <em>Microsoft Windows</em>. The first part describes some generic instructions about installing a command line program, followed by specific instructions on running <em>youtube-dl</em>.</p>
|
||||
|
||||
<h2>Disclaimer</h2>
|
||||
<h1>Disclaimer</h1>
|
||||
|
||||
<p>User <em>nishad</em> provides a standalone executable for youtube-dl. With it, you don't need the Python interpreter. In addition, he has created an optional graphical user interface to ease using the program. The following instructions apply if you want to install the official version of youtube-dl with the Python interpreter, and still apply if you want to install the standalone executable. In that case, you can skip the step of installing the Python interpreter.</p>
|
||||
|
||||
<p>His contributions can be downloaded from <a href="http://www.himili.com/blog/downloads/youtube-video-downloader/">http://www.himili.com/blog/downloads/youtube-video-downloader/</a>. If you use these versions and find a problem, contact him first. He will redirect real youtube-dl issues to me.</p>
|
||||
|
||||
<h2>Preparing to install a command line program</h2>
|
||||
<h1>Preparing to install a command line program</h1>
|
||||
|
||||
<p>The Windows command line interpreter is a program called <em>cmd</em>. It can be found somewhere in the applications menu, but many people prefer to run it by clicking on <em>Start</em> > <em>Run</em> and then typing <tt>cmd</tt> and pressing the enter key. It's very similar to the DOS command line interpreter, if you're old enough to remember it. When you launch it, it will be usually running at your home directory. It's <tt>C:\Documents and Settings\<username></tt> usually, where <tt><username></tt> is your user name in that computer, and it will be waiting for you to input commands followed by the enter key. The text to the left of the cursor usually indicates the so-called <em>current working directory</em>, followed by a greater than (>) symbol. You can go up the directory hierarchy with the command <tt>cd ..</tt>, change the current working drive letter by typing its name as a command, like <tt>D:</tt>, and you can go to a subdirectory (or subfolder, as Windows prefers to call it) by typing the command <tt>cd</tt> followed by its path, maybe using double quotes if the name contains spaces, like in <tt>cd "My Documents\My Porn\My Hardcore Orgies\Animals"</tt>. Just kidding. The cd command stands for <em>change [to] directory</em>.</p>
|
||||
|
||||
|
@ -33,7 +37,7 @@
|
|||
|
||||
<p>Up to this point, we have created a <em>Commands</em> folder where we can drop command line programs and later use them in the command line interpreter, because the interpreter will be able to find them. These steps were all generic, and you can drop any command line program in there. In the next step, we'll drop <em>youtube-dl.py</em> in it.</p>
|
||||
|
||||
<h2>Running youtube-dl.py</h2>
|
||||
<h1>Running youtube-dl.py</h1>
|
||||
|
||||
<p>If the <a href="http://www.python.org/">Python</a> interpreter is not installed in your system, install it now. There is a download section in the previous webpage that lets you download a Windows installer to run Python programs. Remember you have to get version 2.x, with x being at least 4.</p>
|
||||
|
||||
|
@ -43,11 +47,11 @@
|
|||
|
||||
<p>Now let's suppose I want to download a video to my Windows Desktop. Piece of cake: go to <em>Start</em> > <em>Run</em>, type <tt>cmd</tt> and press the enter key. Type the command <tt>cd desktop</tt> and then type the command <tt>youtube-dl.py "<url>"</tt>, where <tt><url></tt> is a YouTube video URL you can copy from your web browser program address bar, and paste it to the command line interpreter window by right clicking and choosing <em>Paste</em>, for example. Remember commands are always followed by pressing the enter key in the command line interpreter.</p>
|
||||
|
||||
<h2>One final tip</h2>
|
||||
<h1>One final tip</h1>
|
||||
|
||||
<p>If you are going to store all your videos in a fixed folder, some people find it handy to create a shortcut to <em>cmd</em> that starts with the current working directory set to that folder, so as to avoid typing a <em>cd</em> command each time they launch <em>cmd</em>. To do this, right click on an empty space in your Desktop and choose to create a new shortcut. The program you want to launch is <em>cmd</em> and you can give the shortcut any name you want. After it's created, right click on it, choose <em>Properties</em> and, in the <tt>Shortcut</tt> tab, which should be the one selected by default, there's an option called <tt>Start in:</tt>. Put something like <tt>%USERPROFILE%\Desktop</tt> or <tt>%USERPROFILE%\My Documents</tt> in it. Some people also prefer to put that shortcut in the quickstart bar to the right of the <em>Start</em> button. Whatever floats your boat.</p>
|
||||
|
||||
<h2>Conclusions</h2>
|
||||
<h1>Conclusions</h1>
|
||||
|
||||
<p>The hardest part is preparing the Windows system to run user command line programs, as it's not initially prepared to do that. Linux, MacOSX and other systems are, in my humble opinion, better prepared, out of the box, for downloading and running your own command line programs easily.</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user