Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2011
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.99 KB | None | 0 0
  1. YOUTUBE-DL(1) User Contributed Perl Documentation YOUTUBE-DL(1)
  2.  
  3.  
  4.  
  5. NAME
  6. youtube-dl - download videos from youtube.com
  7.  
  8. SYNOPSIS
  9. youtube-dl [options] url ...
  10.  
  11. DESCRIPTION
  12. youtube-dl is a script to download videos from youtube.com.
  13.  
  14. Once it is installed in your system, you should be able to call it from the command line. Usage instructions are easy.
  15. Use youtube-dl followed by a video URL or identifier. As an example, consider:
  16.  
  17. youtube-dl "http://www.youtube.com/watch?v=foobar"
  18.  
  19. The video will be saved to the file "foobar.flv" in that example. Many YouTube.com videos are in Flash Video format
  20. and their extension would be "flv". Other videos are encoded in H.264 and these usually have the extension "mp4". In
  21. Linux and other unices, video players using a recent version of ffmpeg can play them. That includes MPlayer, VLC,
  22. xine, among others.
  23.  
  24. OPTIONS
  25. youtube-dl accepts options in the following categories
  26.  
  27. -h, --help
  28. Print help text and exit.
  29.  
  30. -v, --version
  31. Print program version and exit.
  32.  
  33. -U, --update
  34. Update this program to the latest stable version.
  35.  
  36. -i, --ignore-errors
  37. Ignore errors during download and continue processing.
  38.  
  39. -r L, --rate-limit=L
  40. Limit the download speed to the specified maximum L (e.g., 50k or 44.6m).
  41.  
  42. -R R, --retries=R
  43. Number R of retries for a given download (default is 10).
  44.  
  45. --playlist-start=N
  46. The number N of the video in a playlist where we should start downlading (default is 1).
  47.  
  48. --playlist-end=N
  49. The number N of the video in a playlist where we should stop downloading (default is -1, which stands for the last
  50. video in the playlist).
  51.  
  52. --dump-user-agent
  53. Display how youtube-dl will identify itself (the User-Agent string) to the remote server.
  54.  
  55. -u UN, --username=UN
  56. Specify the youtube account username UN. Some videos require an account to be downloaded, mostly because they're
  57. flagged as mature content.
  58.  
  59. -p PW, --password=PW
  60. Like the username, specifies the account password to be PW.
  61.  
  62. -n, --netrc
  63. Get authentication data from the standard unix .netrc file on the user's home directory. The machine name is
  64. youtube regarding this usage.
  65.  
  66. -f FMT, --format=FMT
  67. Specify the video format (quality) in which to download the video.
  68.  
  69. For youtube.com, in particular, the meaning of the format codes is given as:
  70.  
  71. WebM video at 480p: 43
  72. WebM video at 720p: 45
  73. H264 video in MP4 container at 480p: 18
  74. H264 video in MP4 container at 720p: 22
  75. H264 video in MP4 container at 1080p: 37
  76. H264 video in FLV container at 360p: 34
  77. H264 video in FLV container at 480p: 35
  78. H263 video at 240p: 5
  79. 3GP video: 17
  80.  
  81. Note that not all videos are available in all formats and that other sites supported by youtube-dl may have
  82. different conventions for their video formats.
  83.  
  84. --all-formats
  85. Downloads all formats for which a video may be available.
  86.  
  87. --max-quality=FMT
  88. Limit the maximum quality of the videos to downloads to FMT.
  89.  
  90. -q, --quiet
  91. Activates quiet mode, avoiding many messages being written to the terminal.
  92.  
  93. -s, --simulate
  94. Simulate the operation, but do not download the video. Useful for testing.
  95.  
  96. -g, --get-url
  97. Simulate the operation, like quiet mode, but show the URL that would be used to download the video. Can be used
  98. with other download tools like wget or aria2c.
  99.  
  100. -e, --get-title
  101. Simulate the operation, like quiet mode, but show the title of the video that would be downloaded.
  102.  
  103. --get-thumbnail
  104. Simulate the operation, like quiet mode, but print the URL of of the video's thumbnail.
  105.  
  106. --get-description
  107. Simulate the operation, like quiet mode, but print the description of the video.
  108.  
  109. --get-filename
  110. Simulate the operation, like quiet mode, but print the output filename.
  111.  
  112. --no-progress
  113. Do not print the progress bar during downloads.
  114.  
  115. --console-title
  116. If possible, set the title of the console window with the progress of the download.
  117.  
  118. -t, --title
  119. Use the title of the video in the file name used to download the video.
  120.  
  121. -l, --literal
  122. Use the literal title of the video in file name used to download the video. Can contain "weird" characters that
  123. are not filtered like with the -t option.
  124.  
  125. -A, --auto-number
  126. When downloading multiple videos from a playlist, automatically number them, in sequence, starting from 00000.
  127.  
  128. -o TPL, --output=TPL
  129. Specify a template TPL for the names of the files to be created when they are downloaded. The default filename is
  130. video_id.flv. But you can also use the video title in the filename with the "-t" or "--title" option, or preserve
  131. the literal title in the filename with the "-l" or "--literal" option.
  132.  
  133. -a F, --batch-file=F
  134. Specify the name of a file containing URLs of videos to download from youtube in batch mode. The file must contain
  135. one URL per line.
  136.  
  137. -w, --no-overwrites
  138. Do no overwrite already existing files.
  139.  
  140. -c, --continue
  141. Resume partially downloaded files.
  142.  
  143. --cookies=F
  144. Store the received cookies to file F (the "cookie jar").
  145.  
  146. --no-part
  147. Do not append the .part suffix do files that have not yet been completed.
  148.  
  149. --no-mtime
  150. Do not use the Last-modified header to set the file modification time.
  151.  
  152. --extract-audio
  153. Create an audio-only file extracted from the video downloaded. Requires that ffmpeg and ffprobe be installed.
  154.  
  155. --audio-format=FORMAT
  156. Set the audio format to be used for the extraction. Possible values are best, aac, mp3, with best being the
  157. default.
  158.  
  159. OUTPUT TEMPLATE
  160. The -o option allows users to indicate a template for the output file names. The basic usage is not to set any
  161. template arguments when downloading a single file, like in youtube-dl -o funny_video.flv "http://some/video". However,
  162. it may contain special sequences that will be replaced when downloading each video.
  163.  
  164. The special sequences have the format "%(NAME)s". To clarify, that's a percent symbol followed by a name in
  165. parenthesis, followed by a lowercase S. Allowed names are:
  166.  
  167. id The sequence will be replaced by the video identifier.
  168.  
  169. url The sequence will be replaced by the video URL.
  170.  
  171. uploader
  172. The sequence will be replaced by the nickname of the person who uploaded the video.
  173.  
  174. title
  175. The sequence will be replaced by the literal video title.
  176.  
  177. stitle
  178. The sequence will be replaced by a simplified video title, restricted to alphanumeric characters and dashes.
  179.  
  180. ext The sequence will be replaced by the appropriate extension (like "flv" or "mp4").
  181.  
  182. epoch
  183. The sequence will be replaced by the Unix epoch when creating the file.
  184.  
  185. As you may have guessed, the default template is "%(id)s.%(ext)s". When some command line options are used, it's
  186. replaced by other templates like "%(title)s-%(id)s.%(ext)s". You can specify your own.
  187.  
  188. AUTHOR
  189. youtube-dl was written by Ricardo Garcia Gonzalez and many contributors from all around the internet. This manpage
  190. was written by Rogerio Brito <rbrito@users.sf.net>.
  191.  
  192.  
  193.  
  194. perl v5.12.4 2011-08-05 YOUTUBE-DL(1)
  195.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement