You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
6.6 KiB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
  7. <title>youtube-dl: Download videos from YouTube.com</title>
  8. <style type="text/css"><!--
  9. body {
  10. font-family: sans-serif;
  11. font-size: small;
  12. }
  13. h1 {
  14. text-align: center;
  15. text-decoration: underline;
  16. color: #006699;
  17. }
  18. h2 {
  19. color: #006699;
  20. }
  21. p {
  22. text-align: justify;
  23. margin-left: 5%;
  24. margin-right: 5%;
  25. }
  26. ul {
  27. margin-left: 5%;
  28. margin-right: 5%;
  29. list-style-type: square;
  30. }
  31. li {
  32. margin-bottom: 0.5ex;
  33. }
  34. #copyright {
  35. font-size: x-small;
  36. text-align: center;
  37. }
  38. --></style>
  39. </head>
  40. <body>
  41. <h1>youtube-dl: Download videos from YouTube.com</h1>
  42. <h2>What is it?</h2>
  43. <p><em>youtube-dl</em> is a small command-line program to download videos
  44. from YouTube.com. It requires the <a href="http://www.python.org/">Python
  45. interpreter</a>, version 2.4 or later, and it's not platform specific.
  46. It should work in your Unix box, in Windows or in Mac OS X. The latest version
  47. is <strong>@PROGRAM_VERSION@</strong>. It's licensed under the MIT License, which
  48. means you can modify it, redistribute it or use it however you like
  49. complying with a few simple conditions.</p>
  50. <p>I'll try to keep it updated if YouTube.com changes the way you access
  51. their videos. After all, it's a simple and short program. However, I can't
  52. guarantee anything. If you detect it stops working, check for new versions
  53. and/or inform me about the problem, indicating the program version you
  54. are using. If the program stops working and I can't solve the problem but
  55. you have a solution, I'd like to know it. If that happens and you feel you
  56. can maintain the program yourself, tell me. My contact information is
  57. at <a href="http://freshmeat.net/~rg3/">freshmeat.net</a>.</p>
  58. <p>Thanks for all the feedback received so far. I'm glad people find my
  59. program useful.</p>
  60. <p><strong>Related projects</strong>:
  61. <a href="../metacafe-dl/">metacafe-dl</a>
  62. <a href="../pornotube-dl/">pornotube-dl</a>
  63. </p>
  64. <h2>Usage instructions</h2>
  65. <p>In Windows, once you have installed the Python interpreter, save the
  66. program with the <em>.py</em> extension and put it somewhere in the PATH.
  67. Try to follow the
  68. <a href="http://rg03.wordpress.com/youtube-dl-under-windows-xp/">guide to
  69. install youtube-dl under Windows XP</a>.</p>
  70. <p>In Unix, download it, give it execution permission and copy it to one
  71. of the PATH directories (typically, <em>/usr/local/bin</em>).</p>
  72. <p>After that, you should be able to call it from the command line as
  73. <em>youtube-dl</em> or <em>youtube-dl.py</em>. I will use <em>youtube-dl</em>
  74. in the following examples. Usage instructions are easy. Use <em>youtube-dl</em>
  75. followed by a video URL or identifier. Example: <em>youtube-dl
  76. "http://www.youtube.com/watch?v=foobar"</em>. The video will be saved
  77. to the file <em>foobar.flv</em> in that example. As YouTube.com
  78. videos are in Flash Video format, their extension should be <em>flv</em>.
  79. In Linux and other unices, video players using a recent version of
  80. <em>ffmpeg</em> can play them. That includes MPlayer, VLC, etc. Those two
  81. work under Windows and other platforms, but you could also get a
  82. specific FLV player of your taste.</p>
  83. <p>If you try to run the program and you receive an error message containing the
  84. keyword <em>SyntaxError</em> near the end, it means your Python interpreter
  85. is too old.</p>
  86. <h2>More usage tips</h2>
  87. <ul>
  88. <li>You can change the file name of the video using the -o option, like in
  89. <em>youtube-dl -o vid.flv "http://www.youtube.com/watch?v=foobar"</em>.</li>
  90. <li>Some videos require an account to be downloaded, mostly because they're
  91. flagged as mature content. You can pass the program a username and password
  92. for a YouTube.com account with the -u and -p options, like <em>youtube-dl
  93. -u myusername -p mypassword "http://www.youtube.com/watch?v=foobar"</em>.</li>
  94. <li>The account data can also be read from the user .netrc file by indicating
  95. the -n or --netrc option. The machine name is <em>youtube</em> in that
  96. case.</li>
  97. <li>The <em>simulate mode</em> (activated with -s or --simulate) can be used
  98. to just get the real video URL and use it with a download manager if you
  99. prefer that option.</li>
  100. <li>The <em>quiet mode</em> (activated with -q or --quiet) can be used to
  101. supress all output messages. This allows, in systems featuring /dev/stdout
  102. and other similar special files, outputting the video data to standard output
  103. in order to pipe it to another program without interferences.</li>
  104. <li>The program can be told to simply print the final video URL to standard
  105. output using the -g or --get-url option.</li>
  106. <li>Combined with the above option, the -2 or --title-too option tells the
  107. program to print the video title too.</li>
  108. <li>The default filename is <em>video_id.flv</em>. But you can also use the
  109. video title in the filename with the -t or --title option, or preserve the
  110. literal title in the filename with the -l or --literal option.</li>
  111. <li>You can make the program append <em>&amp;fmt=something</em> to the URL
  112. by using the -f or --format option. This makes it possible to download high
  113. quality versions of the videos when available.</li>
  114. <li><em>youtube-dl</em> can attempt to download the best quality version of
  115. a video by using the -b or --best-quality option.</li>
  116. <li><em>youtube-dl</em> honors the <em>http_proxy</em> environment variable
  117. if you want to use a proxy. Set it to something like
  118. <em>http://proxy.example.com:8080</em>, and do not leave the <em>http://</em>
  119. prefix out.</li>
  120. <li>You can get the program version by calling it as <em>youtube-dl
  121. -v</em> or <em>youtube-dl --version</em>.</li>
  122. <li>For usage instructions, use <em>youtube-dl -h</em> or <em>youtube-dl
  123. --help.</em></li>
  124. <li>You can cancel the program at any time pressing Ctrl+C. It may print
  125. some error lines saying something about <em>KeyboardInterrupt</em>.
  126. That's ok.</li>
  127. </ul>
  128. <h2>Download it</h2>
  129. <p>Note that if you directly click on these hyperlinks, your web browser will
  130. most likely display the program contents. It's usually better to
  131. right-click on it and choose the appropriate option, normally called <em>Save
  132. Target As</em> or <em>Save Link As</em>, depending on the web browser you
  133. are using.</p>
  134. <p><a href="youtube-dl">@PROGRAM_VERSION@</a></p>
  135. <ul>
  136. <li><strong>MD5</strong>: @PROGRAM_MD5SUM@</li>
  137. <li><strong>SHA1</strong>: @PROGRAM_SHA1SUM@</li>
  138. <li><strong>SHA256</strong>: @PROGRAM_SHA256SUM@</li>
  139. </ul>
  140. <p id="copyright">Copyright &copy; 2006-2007 Ricardo Garcia Gonzalez</p>
  141. </body>
  142. </html>