[rtmpdump] r294 - in trunk: rtmpdump.1 rtmpgw.8

hyc subversion at mplayerhq.hu
Thu Mar 4 18:07:22 CET 2010

Author: hyc
Date: Thu Mar  4 18:07:21 2010
New Revision: 294

Manpage for rtmpgw


Modified: trunk/rtmpdump.1
--- trunk/rtmpdump.1	Thu Mar  4 18:04:17 2010	(r293)
+++ trunk/rtmpdump.1	Thu Mar  4 18:07:21 2010	(r294)
@@ -1,4 +1,4 @@
-.TH RTMPDUMP 1 "2010-03-03" "RTMPDump v2.2"
+.TH RTMPDUMP 1 "2010-03-04" "RTMPDump v2.2"
 rtmpdump \- RTMP streaming media client
@@ -280,5 +280,7 @@ file.
 .I $HOME/.swfinfo
 Cache of SWF Verification information
+.BR rtmpgw (8)
 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team

Added: trunk/rtmpgw.8
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/rtmpgw.8	Thu Mar  4 18:07:21 2010	(r294)
@@ -0,0 +1,272 @@
+.TH RTMPGW 1 "2010-03-04" "RTMPDump v2.2"
+rtmpgw \- RTMP streaming media gateway
+.B rtmpgw
+.BI \-r \ url\fR]
+.BI \-n \ hostname\fR]
+.BI \-c \ port\fR]
+.BI \-l \ protocol\fR]
+.BI \-S \ host:port\fR]
+.BI \-a \ app\fR]
+.BI \-t \ tcUrl\fR]
+.BI \-p \ pageUrl\fR]
+.BI \-s \ swfUrl\fR]
+.BI \-f \ flashVer\fR]
+.BI \-u \ auth\fR]
+.BI \-C \ conndata\fR]
+.BI \-y \ playpath\fR]
+.BR \-v ]
+.BI \-d \ subscription\fR]
+.BR \-e ]
+.BI \-k \ skip\fR]
+.BI \-A \ start\fR]
+.BI \-B \ stop\fR]
+.BI \-b \ buffer\fR]
+.BI \-m \ timeout\fR]
+.BI \-T \ key\fR]
+.BI \-w \ swfHash\fR]
+.BI \-x \ swfSize\fR]
+.BI \-W \ swfUrl\fR]
+.BI \-X \ swfAge\fR]
+.BI \-D \ address\fR]
+.BI \-g \ port\fR]
+.BR \-q ]
+.BR \-V ]
+.BR \-z ]
+.B rtmpgw \-h
+.B rtmpgw
+is a server for streaming media content from RTMP out to HTTP.
+.B rtmpgw
+listens for HTTP requests that specify RTMP stream parameters and
+then returns the RTMP data in the HTTP response. The only valid
+HTTP request is "GET /" but additional options can be provided
+in URL-encoded fashion. Options specified on the command line will
+be used as defaults, which can be overridden by options in the HTTP
+.SS "Network Parameters"
+These options define how to connect to the media server.
+\fB\-\-rtmp		\-r\fP\ \fIurl\fP
+URL of the server and media content.
+\fB\-\-host		\-n\fP\ \fIhostname\fP
+Overrides the hostname in the RTMP URL.
+\fB\-\-port		\-c\fP\ \fIport\fP
+Overrides the port number in the RTMP URL.
+\fB\-\-protocol	\-l\fP\ \fInumber\fP
+Overrides the protocol in the RTMP URL. 0 = rtmp, 3 = rtmpe
+\fB\-\-socks		\-S\fP\ \fIhost:port\fP
+Use the specified SOCKS4 proxy.
+.SS "Connection Parameters"
+These options define the content of the RTMP Connect request packet.
+If correct values are not provided, the media server will reject the
+connection attempt.
+\fB\-\-app		\-a\fP\ \fIapp\fP
+Name of application to connect to on the RTMP server. Overrides
+the app in the RTMP URL. Sometimes the rtmpdump URL parser cannot
+determine the app name automatically, so it must be given explicitly
+using this option.
+\fB\-\-tcUrl		\-t\fP\ \fIurl\fP
+URL of the target stream. Defaults to rtmp[e]://host[:port]/app/playpath.
+\fB\-\-pageUrl		\-p\fP\ \fIurl\fP
+URL of the web page in which the media was embedded. By default no
+value will be sent.
+\fB\-\-swfUrl		\-s\fP\ \fIurl\fP
+URL of the SWF player for the media. By default no value will be sent.
+\fB\-\-flashVer	\-f\fP\ \fIversion\fP
+Version of the Flash plugin used to run the SWF player. The
+default is "LNX 10,0,22,87".
+\fB\-\-auth		\-a\fP\ \fIstring\fP
+An authentication string to be appended to the Connect message. Using
+this option will append a Boolean TRUE and then the specified string.
+This option is only used by some particular servers and is
+deprecated. The more general
+.B \-\-conn
+option should be used instead.
+\fB\-\-conn		\-C\fP\ \fItype:data\fP
+Append arbitrary AMF data to the Connect message. The type
+must be B for Boolean, N for number, S for string, O for object, or Z
+for null. For Booleans the data must be either 0 or 1 for FALSE or TRUE,
+respectively. Likewise for Objects the data must be 0 or 1 to end or
+begin an object, respectively. Data items in subobjects may be named, by
+prefixing the type with 'N' and specifying the name before the value, e.g.
+NB:myFlag:1. This option may be used multiple times to construct arbitrary
+AMF sequences. E.g.
+  -C B:1 -C S:authMe -C O:1 -C NN:code:1.23 -C NS:flag:ok -C O:0
+.SS "Session Parameters"
+These options take effect after the Connect request has succeeded.
+\fB\-\-playpath	\-y\fP\ \fIpath\fP
+Overrides the playpath parsed from the RTMP URL. Sometimes the
+rtmpdump URL parser cannot determine the correct playpath
+automatically, so it must be given explicitly using this option.
+.B \-\-live		\-v
+Specify that the media is a live stream. No resuming or seeking in
+live streams is possible.
+\fB\-\-subscribe	\-d\fP\ \fIstream\fP
+Name of live stream to subscribe to. Defaults to
+.IR playpath .
+\fB\-\-start		\-A\fP\ \fInum\fP
+Start at
+.I num
+seconds into the stream. Not valid for live streams.
+\fB\-\-stop		\-B\fP\ \fInum\fP
+Stop at
+.I num
+seconds into the stream.
+\fB\-\-buffer		\-b\fP\ \fInum\fP
+Set buffer time to
+.I num
+milliseconds. The default is 20000.
+\fB\-\-timeout		\-m\fP\ \fInum\fP
+Timeout the session after
+.I num
+seconds without receiving any data from the server. The default is 120.
+.SS "Security Parameters"
+These options handle additional authentication requests from the server.
+\fB\-\-token		\-T\fP\ \fIkey\fP
+Key for SecureToken response, used if the server requires SecureToken
+\fB\-\-swfhash		\-w\fP\ \fIhexstring\fP
+SHA256 hash of the decompressed SWF file. This option may be needed if
+the server uses SWF Verification, but see the
+.B \-\-swfVfy
+option below. The hash is 32 bytes, and must be
+given in hexadecimal. The
+.B \-\-swfsize
+option must always be used with this option.
+\fB\-\-swfsize		\-x\fP\ \fInum\fP
+Size of the decompressed SWF file. This option may be needed if the
+server uses SWF Verification, but see the
+.B \-\-swfVfy
+option below. The
+.B \-\-swfhash
+option must always be used with this option.
+\fB\-\-swfVfy		\-W\fP\ \fIurl\fP
+URL of the SWF player for this media. This option replaces all three
+of the
+.BR \-\-swfUrl ,
+.BR \-\-swfhash ,
+.B \-\-swfsize
+options. When this option is used, the SWF player is retrieved from the
+specified URL and the hash and size are computed automatically. Also
+the information is cached in a
+.I .swfinfo
+file in the user's home directory, so that it doesn't need to be retrieved
+and recalculated every time rtmpdump is run. The .swfinfo file records
+the URL, the time it was fetched, the modification timestamp of the SWF
+file, its size, and its hash. By default, the cached info will be used
+for 30 days before re-checking.
+\fB\-\-swfAge		\-X\fP\ \fIdays\fP
+Specify how many days to use the cached SWF info before re-checking. Use
+0 to always check the SWF URL. Note that if the check shows that the
+SWF file has the same modification timestamp as before, it will not be
+retrieved again.
+.SS Miscellaneous
+\fB\-\-device		\-D\fP\ \fIaddress\fP
+Listener IP address. The default is, i.e., any IP address.
+\fB\-\-sport		\-g\fP\ \fIport\fP
+Listener port. The default is 80.
+.B \-\-quiet		\-q
+Suppress all command output.
+.B \-\-verbose		\-V
+Verbose command output.
+.B \-\-debug		\-z
+Debug level output. Extremely verbose, including hex dumps of all packet data.
+.B \-\-help		\-h
+Print a summary of command options.
+The HTTP request
+	GET /?r=rtmp:%2f%2fserver%2fmyapp&y=somefile HTTP/1.0
+is equivalent to the
+.BR rtrmpdump (1)
+	rtmpdump -r rtmp://server/myapp -y somefile
+Note that only the shortform (single letter) options are supported.
+The value of
+is used as the location for the
+.I .swfinfo
+.I $HOME/.swfinfo
+Cache of SWF Verification information
+.BR rtmpdump (1)
+Andrej Stepanchuk, Howard Chu, The Flvstreamer Team

More information about the rtmpdump mailing list