]> Raphaël G. Git Repositories - youtubedl/blob - youtube-dl.1
Imported Upstream version 2013.12.23
[youtubedl] / youtube-dl.1
1 .TH YOUTUBE\-DL 1 ""
2 .SH NAME
3 .PP
4 youtube\-dl \- download videos from youtube.com or other video platforms
5 .SH SYNOPSIS
6 .PP
7 \f[B]youtube\-dl\f[] OPTIONS (#options) URL [URL...]
8 .SH DESCRIPTION
9 .PP
10 \f[B]youtube\-dl\f[] is a small command\-line program to download videos
11 from YouTube.com and a few more sites.
12 It requires the Python interpreter, version 2.6, 2.7, or 3.3+, and it is
13 not platform specific.
14 It should work on your Unix box, on Windows or on Mac OS X.
15 It is released to the public domain, which means you can modify it,
16 redistribute it or use it however you like.
17 .SH OPTIONS
18 .IP
19 .nf
20 \f[C]
21 \-h,\ \-\-help\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ print\ this\ help\ text\ and\ exit
22 \-\-version\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ print\ program\ version\ and\ exit
23 \-U,\ \-\-update\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ update\ this\ program\ to\ latest\ version.\ Make\ sure
24 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ that\ you\ have\ sufficient\ permissions\ (run\ with
25 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sudo\ if\ needed)
26 \-i,\ \-\-ignore\-errors\ \ \ \ \ \ \ \ continue\ on\ download\ errors,\ for\ example\ to\ to
27 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ skip\ unavailable\ videos\ in\ a\ playlist
28 \-\-abort\-on\-error\ \ \ \ \ \ \ \ \ \ \ Abort\ downloading\ of\ further\ videos\ (in\ the
29 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ playlist\ or\ the\ command\ line)\ if\ an\ error\ occurs
30 \-\-dump\-user\-agent\ \ \ \ \ \ \ \ \ \ display\ the\ current\ browser\ identification
31 \-\-user\-agent\ UA\ \ \ \ \ \ \ \ \ \ \ \ specify\ a\ custom\ user\ agent
32 \-\-referer\ REF\ \ \ \ \ \ \ \ \ \ \ \ \ \ specify\ a\ custom\ referer,\ use\ if\ the\ video\ access
33 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ is\ restricted\ to\ one\ domain
34 \-\-list\-extractors\ \ \ \ \ \ \ \ \ \ List\ all\ supported\ extractors\ and\ the\ URLs\ they
35 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ would\ handle
36 \-\-extractor\-descriptions\ \ \ Output\ descriptions\ of\ all\ supported\ extractors
37 \-\-proxy\ URL\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Use\ the\ specified\ HTTP/HTTPS\ proxy.\ Pass\ in\ an
38 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ empty\ string\ (\-\-proxy\ "")\ for\ direct\ connection
39 \-\-no\-check\-certificate\ \ \ \ \ Suppress\ HTTPS\ certificate\ validation.
40 \-\-cache\-dir\ DIR\ \ \ \ \ \ \ \ \ \ \ \ Location\ in\ the\ filesystem\ where\ youtube\-dl\ can
41 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ store\ downloaded\ information\ permanently.\ By
42 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ default\ $XDG_CACHE_HOME/youtube\-dl\ or\ ~/.cache
43 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ /youtube\-dl\ .
44 \-\-no\-cache\-dir\ \ \ \ \ \ \ \ \ \ \ \ \ Disable\ filesystem\ caching
45 \-\-bidi\-workaround\ \ \ \ \ \ \ \ \ \ Work\ around\ terminals\ that\ lack\ bidirectional
46 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ text\ support.\ Requires\ fribidi\ executable\ in\ PATH
47 \f[]
48 .fi
49 .SS Video Selection:
50 .IP
51 .nf
52 \f[C]
53 \-\-playlist\-start\ NUMBER\ \ \ \ playlist\ video\ to\ start\ at\ (default\ is\ 1)
54 \-\-playlist\-end\ NUMBER\ \ \ \ \ \ playlist\ video\ to\ end\ at\ (default\ is\ last)
55 \-\-match\-title\ REGEX\ \ \ \ \ \ \ \ download\ only\ matching\ titles\ (regex\ or\ caseless
56 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sub\-string)
57 \-\-reject\-title\ REGEX\ \ \ \ \ \ \ skip\ download\ for\ matching\ titles\ (regex\ or
58 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ caseless\ sub\-string)
59 \-\-max\-downloads\ NUMBER\ \ \ \ \ Abort\ after\ downloading\ NUMBER\ files
60 \-\-min\-filesize\ SIZE\ \ \ \ \ \ \ \ Do\ not\ download\ any\ videos\ smaller\ than\ SIZE
61 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (e.g.\ 50k\ or\ 44.6m)
62 \-\-max\-filesize\ SIZE\ \ \ \ \ \ \ \ Do\ not\ download\ any\ videos\ larger\ than\ SIZE\ (e.g.
63 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 50k\ or\ 44.6m)
64 \-\-date\ DATE\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ download\ only\ videos\ uploaded\ in\ this\ date
65 \-\-datebefore\ DATE\ \ \ \ \ \ \ \ \ \ download\ only\ videos\ uploaded\ before\ this\ date
66 \-\-dateafter\ DATE\ \ \ \ \ \ \ \ \ \ \ download\ only\ videos\ uploaded\ after\ this\ date
67 \-\-min\-views\ COUNT\ \ \ \ \ \ \ \ \ \ Do\ not\ download\ any\ videos\ with\ less\ than\ COUNT
68 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ views
69 \-\-max\-views\ COUNT\ \ \ \ \ \ \ \ \ \ Do\ not\ download\ any\ videos\ with\ more\ than\ COUNT
70 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ views
71 \-\-no\-playlist\ \ \ \ \ \ \ \ \ \ \ \ \ \ download\ only\ the\ currently\ playing\ video
72 \-\-age\-limit\ YEARS\ \ \ \ \ \ \ \ \ \ download\ only\ videos\ suitable\ for\ the\ given\ age
73 \-\-download\-archive\ FILE\ \ \ \ Download\ only\ videos\ not\ listed\ in\ the\ archive
74 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ file.\ Record\ the\ IDs\ of\ all\ downloaded\ videos\ in
75 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ it.
76 \f[]
77 .fi
78 .SS Download Options:
79 .IP
80 .nf
81 \f[C]
82 \-r,\ \-\-rate\-limit\ LIMIT\ \ \ \ \ maximum\ download\ rate\ in\ bytes\ per\ second\ (e.g.
83 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 50K\ or\ 4.2M)
84 \-R,\ \-\-retries\ RETRIES\ \ \ \ \ \ number\ of\ retries\ (default\ is\ 10)
85 \-\-buffer\-size\ SIZE\ \ \ \ \ \ \ \ \ size\ of\ download\ buffer\ (e.g.\ 1024\ or\ 16K)
86 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (default\ is\ 1024)
87 \-\-no\-resize\-buffer\ \ \ \ \ \ \ \ \ do\ not\ automatically\ adjust\ the\ buffer\ size.\ By
88 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ default,\ the\ buffer\ size\ is\ automatically\ resized
89 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ from\ an\ initial\ value\ of\ SIZE.
90 \f[]
91 .fi
92 .SS Filesystem Options:
93 .IP
94 .nf
95 \f[C]
96 \-t,\ \-\-title\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ use\ title\ in\ file\ name\ (default)
97 \-\-id\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ use\ only\ video\ ID\ in\ file\ name
98 \-l,\ \-\-literal\ \ \ \ \ \ \ \ \ \ \ \ \ \ [deprecated]\ alias\ of\ \-\-title
99 \-A,\ \-\-auto\-number\ \ \ \ \ \ \ \ \ \ number\ downloaded\ files\ starting\ from\ 00000
100 \-o,\ \-\-output\ TEMPLATE\ \ \ \ \ \ output\ filename\ template.\ Use\ %(title)s\ to\ get
101 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ the\ title,\ %(uploader)s\ for\ the\ uploader\ name,
102 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ %(uploader_id)s\ for\ the\ uploader\ nickname\ if
103 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ different,\ %(autonumber)s\ to\ get\ an\ automatically
104 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ incremented\ number,\ %(ext)s\ for\ the\ filename
105 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ extension,\ %(format)s\ for\ the\ format\ description
106 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (like\ "22\ \-\ 1280x720"\ or\ "HD"),%(format_id)s\ for
107 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ the\ unique\ id\ of\ the\ format\ (like\ Youtube\[aq]s
108 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ itags:\ "137"),%(upload_date)s\ for\ the\ upload\ date
109 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (YYYYMMDD),\ %(extractor)s\ for\ the\ provider
110 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (youtube,\ metacafe,\ etc),\ %(id)s\ for\ the\ video\ id
111 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ,\ %(playlist)s\ for\ the\ playlist\ the\ video\ is\ in,
112 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ %(playlist_index)s\ for\ the\ position\ in\ the
113 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ playlist\ and\ %%\ for\ a\ literal\ percent.\ Use\ \-\ to
114 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ output\ to\ stdout.\ Can\ also\ be\ used\ to\ download\ to
115 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ a\ different\ directory,\ for\ example\ with\ \-o\ \[aq]/my/d
116 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ownloads/%(uploader)s/%(title)s\-%(id)s.%(ext)s\[aq]\ .
117 \-\-autonumber\-size\ NUMBER\ \ \ Specifies\ the\ number\ of\ digits\ in\ %(autonumber)s
118 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ when\ it\ is\ present\ in\ output\ filename\ template\ or
119 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \-\-auto\-number\ option\ is\ given
120 \-\-restrict\-filenames\ \ \ \ \ \ \ Restrict\ filenames\ to\ only\ ASCII\ characters,\ and
121 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ avoid\ "&"\ and\ spaces\ in\ filenames
122 \-a,\ \-\-batch\-file\ FILE\ \ \ \ \ \ file\ containing\ URLs\ to\ download\ (\[aq]\-\[aq]\ for\ stdin)
123 \-\-load\-info\ FILE\ \ \ \ \ \ \ \ \ \ \ json\ file\ containing\ the\ video\ information
124 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (created\ with\ the\ "\-\-write\-json"\ option
125 \-w,\ \-\-no\-overwrites\ \ \ \ \ \ \ \ do\ not\ overwrite\ files
126 \-c,\ \-\-continue\ \ \ \ \ \ \ \ \ \ \ \ \ force\ resume\ of\ partially\ downloaded\ files.\ By
127 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ default,\ youtube\-dl\ will\ resume\ downloads\ if
128 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ possible.
129 \-\-no\-continue\ \ \ \ \ \ \ \ \ \ \ \ \ \ do\ not\ resume\ partially\ downloaded\ files\ (restart
130 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ from\ beginning)
131 \-\-cookies\ FILE\ \ \ \ \ \ \ \ \ \ \ \ \ file\ to\ read\ cookies\ from\ and\ dump\ cookie\ jar\ in
132 \-\-no\-part\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ do\ not\ use\ .part\ files
133 \-\-no\-mtime\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ do\ not\ use\ the\ Last\-modified\ header\ to\ set\ the
134 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ file\ modification\ time
135 \-\-write\-description\ \ \ \ \ \ \ \ write\ video\ description\ to\ a\ .description\ file
136 \-\-write\-info\-json\ \ \ \ \ \ \ \ \ \ write\ video\ metadata\ to\ a\ .info.json\ file
137 \-\-write\-annotations\ \ \ \ \ \ \ \ write\ video\ annotations\ to\ a\ .annotation\ file
138 \-\-write\-thumbnail\ \ \ \ \ \ \ \ \ \ write\ thumbnail\ image\ to\ disk
139 \f[]
140 .fi
141 .SS Verbosity / Simulation Options:
142 .IP
143 .nf
144 \f[C]
145 \-q,\ \-\-quiet\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ activates\ quiet\ mode
146 \-s,\ \-\-simulate\ \ \ \ \ \ \ \ \ \ \ \ \ do\ not\ download\ the\ video\ and\ do\ not\ write
147 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ anything\ to\ disk
148 \-\-skip\-download\ \ \ \ \ \ \ \ \ \ \ \ do\ not\ download\ the\ video
149 \-g,\ \-\-get\-url\ \ \ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ URL
150 \-e,\ \-\-get\-title\ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ title
151 \-\-get\-id\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ id
152 \-\-get\-thumbnail\ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ thumbnail\ URL
153 \-\-get\-description\ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ video\ description
154 \-\-get\-duration\ \ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ video\ length
155 \-\-get\-filename\ \ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ output\ filename
156 \-\-get\-format\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ output\ format
157 \-j,\ \-\-dump\-json\ \ \ \ \ \ \ \ \ \ \ \ simulate,\ quiet\ but\ print\ JSON\ information
158 \-\-newline\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ output\ progress\ bar\ as\ new\ lines
159 \-\-no\-progress\ \ \ \ \ \ \ \ \ \ \ \ \ \ do\ not\ print\ progress\ bar
160 \-\-console\-title\ \ \ \ \ \ \ \ \ \ \ \ display\ progress\ in\ console\ titlebar
161 \-v,\ \-\-verbose\ \ \ \ \ \ \ \ \ \ \ \ \ \ print\ various\ debugging\ information
162 \-\-dump\-intermediate\-pages\ \ print\ downloaded\ pages\ to\ debug\ problems(very
163 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ verbose)
164 \-\-write\-pages\ \ \ \ \ \ \ \ \ \ \ \ \ \ Write\ downloaded\ intermediary\ pages\ to\ files\ in
165 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ the\ current\ directory\ to\ debug\ problems
166 \f[]
167 .fi
168 .SS Video Format Options:
169 .IP
170 .nf
171 \f[C]
172 \-f,\ \-\-format\ FORMAT\ \ \ \ \ \ \ \ video\ format\ code,\ specify\ the\ order\ of
173 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ preference\ using\ slashes:\ "\-f\ 22/17/18".\ "\-f\ mp4"
174 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ and\ "\-f\ flv"\ are\ also\ supported
175 \-\-all\-formats\ \ \ \ \ \ \ \ \ \ \ \ \ \ download\ all\ available\ video\ formats
176 \-\-prefer\-free\-formats\ \ \ \ \ \ prefer\ free\ video\ formats\ unless\ a\ specific\ one
177 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ is\ requested
178 \-\-max\-quality\ FORMAT\ \ \ \ \ \ \ highest\ quality\ format\ to\ download
179 \-F,\ \-\-list\-formats\ \ \ \ \ \ \ \ \ list\ all\ available\ formats\ (currently\ youtube
180 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ only)
181 \f[]
182 .fi
183 .SS Subtitle Options:
184 .IP
185 .nf
186 \f[C]
187 \-\-write\-sub\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ write\ subtitle\ file
188 \-\-write\-auto\-sub\ \ \ \ \ \ \ \ \ \ \ write\ automatic\ subtitle\ file\ (youtube\ only)
189 \-\-all\-subs\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ downloads\ all\ the\ available\ subtitles\ of\ the
190 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ video
191 \-\-list\-subs\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ lists\ all\ available\ subtitles\ for\ the\ video
192 \-\-sub\-format\ FORMAT\ \ \ \ \ \ \ \ subtitle\ format\ (default=srt)\ ([sbv/vtt]\ youtube
193 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ only)
194 \-\-sub\-lang\ LANGS\ \ \ \ \ \ \ \ \ \ \ languages\ of\ the\ subtitles\ to\ download\ (optional)
195 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ separated\ by\ commas,\ use\ IETF\ language\ tags\ like
196 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \[aq]en,pt\[aq]
197 \f[]
198 .fi
199 .SS Authentication Options:
200 .IP
201 .nf
202 \f[C]
203 \-u,\ \-\-username\ USERNAME\ \ \ \ account\ username
204 \-p,\ \-\-password\ PASSWORD\ \ \ \ account\ password
205 \-n,\ \-\-netrc\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ use\ .netrc\ authentication\ data
206 \-\-video\-password\ PASSWORD\ \ video\ password\ (vimeo\ only)
207 \f[]
208 .fi
209 .SS Post\-processing Options:
210 .IP
211 .nf
212 \f[C]
213 \-x,\ \-\-extract\-audio\ \ \ \ \ \ \ \ convert\ video\ files\ to\ audio\-only\ files\ (requires
214 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ffmpeg\ or\ avconv\ and\ ffprobe\ or\ avprobe)
215 \-\-audio\-format\ FORMAT\ \ \ \ \ \ "best",\ "aac",\ "vorbis",\ "mp3",\ "m4a",\ "opus",\ or
216 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "wav";\ best\ by\ default
217 \-\-audio\-quality\ QUALITY\ \ \ \ ffmpeg/avconv\ audio\ quality\ specification,\ insert
218 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ a\ value\ between\ 0\ (better)\ and\ 9\ (worse)\ for\ VBR
219 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ or\ a\ specific\ bitrate\ like\ 128K\ (default\ 5)
220 \-\-recode\-video\ FORMAT\ \ \ \ \ \ Encode\ the\ video\ to\ another\ format\ if\ necessary
221 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (currently\ supported:\ mp4|flv|ogg|webm)
222 \-k,\ \-\-keep\-video\ \ \ \ \ \ \ \ \ \ \ keeps\ the\ video\ file\ on\ disk\ after\ the\ post\-
223 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ processing;\ the\ video\ is\ erased\ by\ default
224 \-\-no\-post\-overwrites\ \ \ \ \ \ \ do\ not\ overwrite\ post\-processed\ files;\ the\ post\-
225 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ processed\ files\ are\ overwritten\ by\ default
226 \-\-embed\-subs\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ embed\ subtitles\ in\ the\ video\ (only\ for\ mp4
227 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ videos)
228 \-\-add\-metadata\ \ \ \ \ \ \ \ \ \ \ \ \ add\ metadata\ to\ the\ files
229 \f[]
230 .fi
231 .SH CONFIGURATION
232 .PP
233 You can configure youtube\-dl by placing default arguments (such as
234 \f[C]\-\-extract\-audio\ \-\-no\-mtime\f[] to always extract the audio
235 and not copy the mtime) into \f[C]/etc/youtube\-dl.conf\f[] and/or
236 \f[C]~/.config/youtube\-dl.conf\f[].
237 On Windows, the configuration file locations are
238 \f[C]%APPDATA%\\youtube\-dl\\config.txt\f[] and
239 \f[C]C:\\Users\\<Yourname>\\youtube\-dl.conf\f[].
240 .SH OUTPUT TEMPLATE
241 .PP
242 The \f[C]\-o\f[] option allows users to indicate a template for the
243 output file names.
244 The basic usage is not to set any template arguments when downloading a
245 single file, like in
246 \f[C]youtube\-dl\ \-o\ funny_video.flv\ "http://some/video"\f[].
247 However, it may contain special sequences that will be replaced when
248 downloading each video.
249 The special sequences have the format \f[C]%(NAME)s\f[].
250 To clarify, that is a percent symbol followed by a name in parenthesis,
251 followed by a lowercase S.
252 Allowed names are:
253 .IP \[bu] 2
254 \f[C]id\f[]: The sequence will be replaced by the video identifier.
255 .IP \[bu] 2
256 \f[C]url\f[]: The sequence will be replaced by the video URL.
257 .IP \[bu] 2
258 \f[C]uploader\f[]: The sequence will be replaced by the nickname of the
259 person who uploaded the video.
260 .IP \[bu] 2
261 \f[C]upload_date\f[]: The sequence will be replaced by the upload date
262 in YYYYMMDD format.
263 .IP \[bu] 2
264 \f[C]title\f[]: The sequence will be replaced by the video title.
265 .IP \[bu] 2
266 \f[C]ext\f[]: The sequence will be replaced by the appropriate extension
267 (like flv or mp4).
268 .IP \[bu] 2
269 \f[C]epoch\f[]: The sequence will be replaced by the Unix epoch when
270 creating the file.
271 .IP \[bu] 2
272 \f[C]autonumber\f[]: The sequence will be replaced by a five\-digit
273 number that will be increased with each download, starting at zero.
274 .IP \[bu] 2
275 \f[C]playlist\f[]: The name or the id of the playlist that contains the
276 video.
277 .IP \[bu] 2
278 \f[C]playlist_index\f[]: The index of the video in the playlist, a
279 five\-digit number.
280 .PP
281 The current default template is \f[C]%(title)s\-%(id)s.%(ext)s\f[].
282 .PP
283 In some cases, you don\[aq]t want special characters such as 中, spaces,
284 or &, such as when transferring the downloaded filename to a Windows
285 system or the filename through an 8bit\-unsafe channel.
286 In these cases, add the \f[C]\-\-restrict\-filenames\f[] flag to get a
287 shorter title:
288 .IP
289 .nf
290 \f[C]
291 $\ youtube\-dl\ \-\-get\-filename\ \-o\ "%(title)s.%(ext)s"\ BaW_jenozKc
292 youtube\-dl\ test\ video\ \[aq]\[aq]_ä↭𝕐.mp4\ \ \ \ #\ All\ kinds\ of\ weird\ characters
293 $\ youtube\-dl\ \-\-get\-filename\ \-o\ "%(title)s.%(ext)s"\ BaW_jenozKc\ \-\-restrict\-filenames
294 youtube\-dl_test_video_.mp4\ \ \ \ \ \ \ \ \ \ #\ A\ simple\ file\ name
295 \f[]
296 .fi
297 .SH VIDEO SELECTION
298 .PP
299 Videos can be filtered by their upload date using the options
300 \f[C]\-\-date\f[], \f[C]\-\-datebefore\f[] or \f[C]\-\-dateafter\f[],
301 they accept dates in two formats:
302 .IP \[bu] 2
303 Absolute dates: Dates in the format \f[C]YYYYMMDD\f[].
304 .IP \[bu] 2
305 Relative dates: Dates in the format
306 \f[C](now|today)[+\-][0\-9](day|week|month|year)(s)?\f[]
307 .PP
308 Examples:
309 .IP
310 .nf
311 \f[C]
312 $\ youtube\-dl\ \-\-dateafter\ now\-6months\ #will\ only\ download\ the\ videos\ uploaded\ in\ the\ last\ 6\ months
313 $\ youtube\-dl\ \-\-date\ 19700101\ #will\ only\ download\ the\ videos\ uploaded\ in\ January\ 1,\ 1970
314 $\ youtube\-dl\ \-\-dateafter\ 20000101\ \-\-datebefore\ 20100101\ #will\ only\ download\ the\ videos\ uploaded\ between\ 2000\ and\ 2010
315 \f[]
316 .fi
317 .SH FAQ
318 .SS Can you please put the \-b option back?
319 .PP
320 Most people asking this question are not aware that youtube\-dl now
321 defaults to downloading the highest available quality as reported by
322 YouTube, which will be 1080p or 720p in some cases, so you no longer
323 need the \f[C]\-b\f[] option.
324 For some specific videos, maybe YouTube does not report them to be
325 available in a specific high quality format you\[aq]re interested in.
326 In that case, simply request it with the \f[C]\-f\f[] option and
327 youtube\-dl will try to download it.
328 .SS I get HTTP error 402 when trying to download a video. What\[aq]s
329 this?
330 .PP
331 Apparently YouTube requires you to pass a CAPTCHA test if you download
332 too much.
333 We\[aq]re considering to provide a way to let you solve the
334 CAPTCHA (https://github.com/rg3/youtube-dl/issues/154), but at the
335 moment, your best course of action is pointing a webbrowser to the
336 youtube URL, solving the CAPTCHA, and restart youtube\-dl.
337 .SS I have downloaded a video but how can I play it?
338 .PP
339 Once the video is fully downloaded, use any video player, such as
340 vlc (http://www.videolan.org) or mplayer (http://www.mplayerhq.hu/).
341 .SS The links provided by youtube\-dl \-g are not working anymore
342 .PP
343 The URLs youtube\-dl outputs require the downloader to have the correct
344 cookies.
345 Use the \f[C]\-\-cookies\f[] option to write the required cookies into a
346 file, and advise your downloader to read cookies from that file.
347 Some sites also require a common user agent to be used, use
348 \f[C]\-\-dump\-user\-agent\f[] to see the one in use by youtube\-dl.
349 .SS ERROR: no fmt_url_map or conn information found in video info
350 .PP
351 youtube has switched to a new video info format in July 2011 which is
352 not supported by old versions of youtube\-dl.
353 You can update youtube\-dl with \f[C]sudo\ youtube\-dl\ \-\-update\f[].
354 .SS ERROR: unable to download video
355 .PP
356 youtube requires an additional signature since September 2012 which is
357 not supported by old versions of youtube\-dl.
358 You can update youtube\-dl with \f[C]sudo\ youtube\-dl\ \-\-update\f[].
359 .SS SyntaxError: Non\-ASCII character
360 .PP
361 The error
362 .IP
363 .nf
364 \f[C]
365 File\ "youtube\-dl",\ line\ 2
366 SyntaxError:\ Non\-ASCII\ character\ \[aq]\\x93\[aq]\ ...
367 \f[]
368 .fi
369 .PP
370 means you\[aq]re using an outdated version of Python.
371 Please update to Python 2.6 or 2.7.
372 .SS What is this binary file? Where has the code gone?
373 .PP
374 Since June 2012 (#342) youtube\-dl is packed as an executable zipfile,
375 simply unzip it (might need renaming to \f[C]youtube\-dl.zip\f[] first
376 on some systems) or clone the git repository, as laid out above.
377 If you modify the code, you can run it by executing the
378 \f[C]__main__.py\f[] file.
379 To recompile the executable, run \f[C]make\ youtube\-dl\f[].
380 .SS The exe throws a \f[I]Runtime error from Visual C++\f[]
381 .PP
382 To run the exe you need to install first the Microsoft Visual C++ 2008
383 Redistributable
384 Package (http://www.microsoft.com/en-us/download/details.aspx?id=29).
385 .SH COPYRIGHT
386 .PP
387 youtube\-dl is released into the public domain by the copyright holders.
388 .PP
389 This README file was originally written by Daniel Bolton
390 (<https://github.com/dbbolton>) and is likewise released into the public
391 domain.
392 .SH BUGS
393 .PP
394 Bugs and suggestions should be reported at:
395 <https://github.com/rg3/youtube-dl/issues> .
396 Unless you were prompted so or there is another pertinent reason (e.g.
397 GitHub fails to accept the bug report), please do not send bug reports
398 via personal email.
399 .PP
400 Please include the full output of the command when run with
401 \f[C]\-\-verbose\f[].
402 The output (including the first lines) contain important debugging
403 information.
404 Issues without the full output are often not reproducible and therefore
405 do not get solved in short order, if ever.
406 .PP
407 For discussions, join us in the irc channel #youtube\-dl on freenode.
408 .PP
409 When you submit a request, please re\-read it once to avoid a couple of
410 mistakes (you can and should use this as a checklist):
411 .SS Is the description of the issue itself sufficient?
412 .PP
413 We often get issue reports that we cannot really decipher.
414 While in most cases we eventually get the required information after
415 asking back multiple times, this poses an unnecessary drain on our
416 resources.
417 Many contributors, including myself, are also not native speakers, so we
418 may misread some parts.
419 .PP
420 So please elaborate on what feature you are requesting, or what bug you
421 want to be fixed.
422 Make sure that it\[aq]s obvious
423 .IP \[bu] 2
424 What the problem is
425 .IP \[bu] 2
426 How it could be fixed
427 .IP \[bu] 2
428 How your proposed solution would look like
429 .PP
430 If your report is shorter than two lines, it is almost certainly missing
431 some of these, which makes it hard for us to respond to it.
432 We\[aq]re often too polite to close the issue outright, but the missing
433 info makes misinterpretation likely.
434 As a commiter myself, I often get frustrated by these issues, since the
435 only possible way for me to move forward on them is to ask for
436 clarification over and over.
437 .PP
438 For bug reports, this means that your report should contain the
439 \f[I]complete\f[] output of youtube\-dl when called with the \-v flag.
440 The error message you get for (most) bugs even says so, but you would
441 not believe how many of our bug reports do not contain this information.
442 .PP
443 Site support requests must contain an example URL.
444 An example URL is a URL you might want to download, like
445 http://www.youtube.com/watch?v=BaW_jenozKc .
446 There should be an obvious video present.
447 Except under very special circumstances, the main page of a video
448 service (e.g.
449 http://www.youtube.com/ ) is \f[I]not\f[] an example URL.
450 .SS Are you using the latest version?
451 .PP
452 Before reporting any issue, type youtube\-dl \-U.
453 This should report that you\[aq]re up\-to\-date.
454 Ábout 20% of the reports we receive are already fixed, but people are
455 using outdated versions.
456 This goes for feature requests as well.
457 .SS Is the issue already documented?
458 .PP
459 Make sure that someone has not already opened the issue you\[aq]re
460 trying to open.
461 Search at the top of the window or at
462 https://github.com/rg3/youtube\-dl/search?type=Issues .
463 If there is an issue, feel free to write something along the lines of
464 "This affects me as well, with version 2015.01.01.
465 Here is some more information on the issue: ...".
466 While some issues may be old, a new post into them often spurs rapid
467 activity.
468 .SS Why are existing options not enough?
469 .PP
470 Before requesting a new feature, please have a quick peek at the list of
471 supported
472 options (https://github.com/rg3/youtube-dl/blob/master/README.md#synopsis).
473 Many feature requests are for features that actually exist already!
474 Please, absolutely do show off your work in the issue report and detail
475 how the existing similar options do \f[I]not\f[] solve your problem.
476 .SS Is there enough context in your bug report?
477 .PP
478 People want to solve problems, and often think they do us a favor by
479 breaking down their larger problems (e.g.
480 wanting to skip already downloaded files) to a specific request (e.g.
481 requesting us to look whether the file exists before downloading the
482 info page).
483 However, what often happens is that they break down the problem into two
484 steps: One simple, and one impossible (or extremely complicated one).
485 .PP
486 We are then presented with a very complicated request when the original
487 problem could be solved far easier, e.g.
488 by recording the downloaded video IDs in a separate file.
489 To avoid this, you must include the greater context where it is
490 non\-obvious.
491 In particular, every feature request that does not consist of adding
492 support for a new site should contain a use case scenario that explains
493 in what situation the missing feature would be useful.
494 .SS Does the issue involve one problem, and one problem only?
495 .PP
496 Some of our users seem to think there is a limit of issues they can or
497 should open.
498 There is no limit of issues they can or should open.
499 While it may seem appealing to be able to dump all your issues into one
500 ticket, that means that someone who solves one of your issues cannot
501 mark the issue as closed.
502 Typically, reporting a bunch of issues leads to the ticket lingering
503 since nobody wants to attack that behemoth, until someone mercifully
504 splits the issue into multiple ones.
505 .PP
506 In particular, every site support request issue should only pertain to
507 services at one site (generally under a common domain, but always using
508 the same backend technology).
509 Do not request support for vimeo user videos, Whitehouse podcasts, and
510 Google Plus pages in the same issue.
511 Also, make sure that you don\[aq]t post bug reports alongside feature
512 requests.
513 As a rule of thumb, a feature request does not include outputs of
514 youtube\-dl that are not immediately related to the feature at hand.
515 Do not post reports of a network error alongside the request for a new
516 video service.
517 .SS Is anyone going to need the feature?
518 .PP
519 Only post features that you (or an incapicated friend you can personally
520 talk to) require.
521 Do not post features because they seem like a good idea.
522 If they are really useful, they will be requested by someone who
523 requires them.