
03-10-2010, 03:48 PM
|
RTMPdump team
|
|
Join Date: Dec 2009
Posts: 169
|
|
 Re: How do you use rtmp dump (rtmpdump tutorials)?
rtmpdump 2.2 now includes a formatted manual page...
RTMPDUMP(1) RTMPDUMP(1)
NAMErtmpdump - RTMP streaming media client SYNOPSISrtmpdump -r url [-n hostname] [-c port] [-l protocol] [-S host:port] [-a app] [-t tcUrl] [-p pageUrl] [-s swfUrl] [-f flashVer] [-u auth] [-C conndata] [-y playpath] [-v] [-d subscription] [-e] [-k skip] [-A start] [-B stop] [-b buffer] [-m timeout] [-T key] [-w swfHash] [-x swfSize] [-W swfUrl] [-X swfAge] [-o output] [-#] [-q] [-V] [-z]
rtmpdump -h
DESCRIPTIONrtmpdump is a tool for dumping media content streamed over RTMP.
rtmpdump makes a connection to the specified RTMP server and plays the media specified by the given url. The url should be of the formrtmp[t][e]://hostname[:port][/app[/playpath]] Plain rtmp, as well as tunneled and encrypted sessions are supported.
OPTIONS
Network ParametersThese options define how to connect to the media server.
--rtmp -r urlURL of the server and media content. --host -n hostnameOverrides the hostname in the RTMP URL. --port -c portOverrides the port number in the RTMP URL. --protocol -l numberOverrides the protocol in the RTMP URL.
0 = rtmp
1 = rtmpt
2 = rtmpe
3 = rtmpte
5 = rtmps
--socks -S host:portUse the specified SOCKS4 proxy. Connection ParametersThese options define the content of the RTMP Connect request packet. If correct values are not provided, the media server will reject the connection attempt.
--app -a appName 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. --tcUrl -t urlURL of the target stream. Defaults to rtmp[e]://host[:port]/app/playpath. --pageUrl -p urlURL of the web page in which the media was embedded. By default no value will be sent. --swfUrl -s urlURL of the SWF player for the media. By default no value will be sent. --flashVer -f versionVersion of the Flash plugin used to run the SWF player. The default is "LNX 10,0,32,18". --auth -a stringAn 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 --conn option should be used instead. --conn -C type:dataAppend 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
Session ParametersThese options take effect after the Connect request has succeeded.
--playpath -y pathOverrides 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. --live -vSpecify that the media is a live stream. No resuming or seeking in live streams is possible. --subscribe -d streamName of live stream to subscribe to. Defaults to playpath. --resume -eResume an incomplete RTMP download. --skip -k numSkip num keyframes when looking for the last keyframe from which to resume. This may be useful if a regular attempt to resume fails. The default is 0. --start -A numStart at num seconds into the stream. Not valid for live streams. --stop -B numStop at num seconds into the stream. --buffer -b numSet buffer time to num milliseconds. The default is 36000000. --timeout -m numTimeout the session after num seconds without receiving any data from the server. The default is 120. Security ParametersThese options handle additional authentication requests from the server.
--token -T keyKey for SecureToken response, used if the server requires SecureToken authentication. --swfhash -w hexstringSHA256 hash of the decompressed SWF file. This option may be needed if the server uses SWF Verification, but see the --swfVfy option below. The hash is 32 bytes, and must be given in hexadecimal. The --swfsize option must always be used with this option. --swfsize -x numSize of the decompressed SWF file. This option may be needed if the server uses SWF Verification, but see the --swfVfy option below. The --swfhash option must always be used with this option. --swfVfy -W urlURL of the SWF player for this media. This option replaces all three of the --swfUrl, --swfhash, and --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 .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. --swfAge -X daysSpecify 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. Miscellaneous
--flv -o outputSpecify the output file name. If the name is - or is omitted, the stream is written to stdout. --hashes -#Display streaming progress with a hash mark for each 1% of progress, instead of a byte counter. --quiet -qSuppress all command output. --verbose -VVerbose command output. --debug -zDebug level output. Extremely verbose, including hex dumps of all packet data. --help -hPrint a summary of command options. EXIT STATUS0Successful program execution. 1Unrecoverable error. 2Incomplete transfer, resuming may get further. ENVIRONMENTHOMEThe value of $HOME is used as the location for the .swfinfo file. FILES$HOME/.swfinfoCache of SWF Verification information SEE ALSOrtmpgw(8) AUTHORSAndrej Stepanchuk, Howard Chu, The Flvstreamer Team
<http://rtmpdump.mplayerhq.hu>
RTMPDump v2.2a 2010-03-10 RTMPDUMP(1)
|