1 .TH RTMPDUMP 1 "2011-07-20" "RTMPDump v2.4"
2 .\" Copyright 2011 Howard Chu.
3 .\" Copying permitted according to the GNU General Public License V2.
5 rtmpdump \- RTMP streaming media client
10 .BI \-n \ hostname\fR]
14 .BI \-l \ protocol\fR]
16 .BI \-S \ host:port\fR]
26 .BI \-f \ flashVer\fR]
30 .BI \-C \ conndata\fR]
32 .BI \-y \ playpath\fR]
38 .BI \-d \ subscription\fR]
77 is a tool for dumping media content streamed over RTMP.
80 makes a connection to the specified RTMP server and plays the media
81 specified by the given
83 The url should be of the form
85 rtmp[t][e]://hostname[:port][/app[/playpath]]
88 Plain rtmp, as well as tunneled and encrypted sessions are supported.
90 .SS "Network Parameters"
91 These options define how to connect to the media server.
93 \fB\-\-rtmp \-r\fP\ \fIurl\fP
94 URL of the server and media content.
96 \fB\-\-host \-n\fP\ \fIhostname\fP
97 Overrides the hostname in the RTMP URL.
99 \fB\-\-port \-c\fP\ \fIport\fP
100 Overrides the port number in the RTMP URL.
102 \fB\-\-protocol \-l\fP\ \fInumber\fP
103 Overrides the protocol in the RTMP URL.
113 \fB\-\-socks \-S\fP\ \fIhost:port\fP
114 Use the specified SOCKS4 proxy.
115 .SS "Connection Parameters"
116 These options define the content of the RTMP Connect request packet.
117 If correct values are not provided, the media server will reject the
120 \fB\-\-app \-a\fP\ \fIapp\fP
121 Name of application to connect to on the RTMP server. Overrides
122 the app in the RTMP URL. Sometimes the rtmpdump URL parser cannot
123 determine the app name automatically, so it must be given explicitly
126 \fB\-\-tcUrl \-t\fP\ \fIurl\fP
127 URL of the target stream. Defaults to rtmp[e]://host[:port]/app/playpath.
129 \fB\-\-pageUrl \-p\fP\ \fIurl\fP
130 URL of the web page in which the media was embedded. By default no
133 \fB\-\-swfUrl \-s\fP\ \fIurl\fP
134 URL of the SWF player for the media. By default no value will be sent.
136 \fB\-\-flashVer \-f\fP\ \fIversion\fP
137 Version of the Flash plugin used to run the SWF player. The
138 default is "LNX 10,0,32,18".
140 \fB\-\-auth \-u\fP\ \fIstring\fP
141 An authentication string to be appended to the Connect message. Using
142 this option will append a Boolean TRUE and then the specified string.
143 This option is only used by some particular servers and is
144 deprecated. The more general
146 option should be used instead.
148 \fB\-\-conn \-C\fP\ \fItype:data\fP
149 Append arbitrary AMF data to the Connect message. The type
150 must be B for Boolean, N for number, S for string, O for object, or Z
151 for null. For Booleans the data must be either 0 or 1 for FALSE or TRUE,
152 respectively. Likewise for Objects the data must be 0 or 1 to end or
153 begin an object, respectively. Data items in subobjects may be named, by
154 prefixing the type with 'N' and specifying the name before the value, e.g.
155 NB:myFlag:1. This option may be used multiple times to construct arbitrary
158 \-C B:1 \-C S:authMe \-C O:1 \-C NN:code:1.23 \-C NS:flag:ok \-C O:0
160 .SS "Session Parameters"
161 These options take effect after the Connect request has succeeded.
163 \fB\-\-playpath \-y\fP\ \fIpath\fP
164 Overrides the playpath parsed from the RTMP URL. Sometimes the
165 rtmpdump URL parser cannot determine the correct playpath
166 automatically, so it must be given explicitly using this option.
169 Issue a set_playlist command before sending the play command. The
170 playlist will just contain the current playpath.
173 Specify that the media is a live stream. No resuming or seeking in
174 live streams is possible.
176 \fB\-\-subscribe \-d\fP\ \fIstream\fP
177 Name of live stream to subscribe to. Defaults to
181 Resume an incomplete RTMP download.
183 \fB\-\-skip \-k\fP\ \fInum\fP
186 keyframes when looking for the last keyframe from which to resume. This
187 may be useful if a regular attempt to resume fails. The default is 0.
189 \fB\-\-start \-A\fP\ \fInum\fP
192 seconds into the stream. Not valid for live streams.
194 \fB\-\-stop \-B\fP\ \fInum\fP
197 seconds into the stream.
199 \fB\-\-buffer \-b\fP\ \fInum\fP
202 milliseconds. The default is 36000000.
204 \fB\-\-timeout \-m\fP\ \fInum\fP
205 Timeout the session after
207 seconds without receiving any data from the server. The default is 120.
208 .SS "Security Parameters"
209 These options handle additional authentication requests from the server.
211 \fB\-\-token \-T\fP\ \fIkey\fP
212 Key for SecureToken response, used if the server requires SecureToken
215 \fB\-\-jtv \-j\fP\ \fIJSON\fP
216 JSON token used by legacy Justin.tv servers. Invokes NetStream.Authenticate.UsherToken
218 \fB\-\-swfhash \-w\fP\ \fIhexstring\fP
219 SHA256 hash of the decompressed SWF file. This option may be needed if
220 the server uses SWF Verification, but see the
222 option below. The hash is 32 bytes, and must be
223 given in hexadecimal. The
225 option must always be used with this option.
227 \fB\-\-swfsize \-x\fP\ \fInum\fP
228 Size of the decompressed SWF file. This option may be needed if the
229 server uses SWF Verification, but see the
233 option must always be used with this option.
235 \fB\-\-swfVfy \-W\fP\ \fIurl\fP
236 URL of the SWF player for this media. This option replaces all three
242 options. When this option is used, the SWF player is retrieved from the
243 specified URL and the hash and size are computed automatically. Also
244 the information is cached in a
246 file in the user's home directory, so that it doesn't need to be retrieved
247 and recalculated every time rtmpdump is run. The .swfinfo file records
248 the URL, the time it was fetched, the modification timestamp of the SWF
249 file, its size, and its hash. By default, the cached info will be used
250 for 30 days before re-checking.
252 \fB\-\-swfAge \-X\fP\ \fIdays\fP
253 Specify how many days to use the cached SWF info before re-checking. Use
254 0 to always check the SWF URL. Note that if the check shows that the
255 SWF file has the same modification timestamp as before, it will not be
259 \fB\-\-flv \-o\fP\ \fIoutput\fP
260 Specify the output file name. If the name is \- or is omitted, the
261 stream is written to stdout.
264 Display streaming progress with a hash mark for each 1% of progress, instead
268 Suppress all command output.
271 Verbose command output.
274 Debug level output. Extremely verbose, including hex dumps of all packet data.
277 Print a summary of command options.
281 Successful program execution.
287 Incomplete transfer, resuming may get further.
293 is used as the location for the
299 Cache of SWF Verification information
303 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team
305 <http://rtmpdump.mplayerhq.hu>