RTMPDUMP(1)
rtmpdump ๐ โ the RTMP streaming media client, straight out of the General Commands Manual, section 1 (RTMPDUMP(1)). bestie, if you've ever needed to yank a stream off an RTMP server, this is the girl. ok so let's get into it ๐
๐ธ NAME ๐ธ
rtmpdump โ RTMP streaming media client. that's literally the whole vibe. she dumps media streamed over RTMP. periodt. โจ
๐ SYNOPSIS ๐
rtmpdump -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] [-Y] [-v] [-d subscription] [-e] [-k skip]
[-A start] [-B stop] [-b buffer] [-m timeout] [-T key] [-j JSON]
[-w swfHash] [-x swfSize] [-W swfUrl] [-X swfAge] [-o output] [-#] [-q]
[-V] [-z]
rtmpdump -h
๐ฆ DESCRIPTION ๐ฆ
rtmpdump is a tool for dumping media content streamed over RTMP. no cap, that's the whole personality.
So here's what she does: she makes a connection to the RTMP server you point her at, and plays the media specified by the url you give her. that url should look like this:
rtmp[t][e]://hostname[:port][/app[/playpath]]
and the range?? plain rtmp, tunneled sessions, AND encrypted sessions โ all supported. she's flexible like that ๐ซถ
๐ OPTIONS ๐
๐ Network Parameters
these options define how to connect to the media server. the "who am i knocking on the door of" section, basically.
--rtmp,-rurl โ URL of the server and media content. the main character of the whole command, fr.--host,-nhostname โ Overrides the hostname in the RTMP URL. like, "no bestie, we're going here actually."--port,-cport โ Overrides the port number in the RTMP URL.--protocol,-lnumber โ Overrides the protocol in the RTMP URL. the numbers are:
0 = rtmp
1 = rtmpt
2 = rtmpe
3 = rtmpte
4 = rtmps
5 = rtmpts
--socks,-Shost:port โ Use the specified SOCKS4 proxy. sneaking through the side door, iconic.
๐ Connection Parameters
these options define the content of the RTMP Connect request packet. and bestie, listen โ if correct values are not provided, the media server will reject the connection attempt. she will simply not let you in. ๐
--app,-aapp โ Name of application to connect to on the RTMP server. Overrides the app in the RTMP URL. Sometimes thertmpdumpURL parser cannot determine the app name automatically, so it must be given explicitly using this option. the parser is doing her best, ok, sometimes you gotta help her out.--tcUrl,-turl โ URL of the target stream. Defaults tortmp[e]://host[:port]/app/playpath.--pageUrl,-purl โ URL of the web page in which the media was embedded. By default no value will be sent. silence. mystery. ๐--swfUrl,-surl โ URL of the SWF player for the media. By default no value will be sent.--flashVer,-fversion โ Version of the Flash plugin used to run the SWF player. The default is"LNX 10,0,32,18".--auth,-ustring โ 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--connoption should be used instead.
ngl, skip this one if you can. she's old. use --conn. it's giving legacy behaviour ๐
--conn,-Ctype:data โ Append arbitrary AMF data to the Connect message. The type must beBfor Boolean,Nfor number,Sfor string,Ofor object, orZfor null. For Booleans the data must be either0or1for FALSE or TRUE, respectively. Likewise for Objects the data must be0or1to 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
like, stack them, chain them, build your little AMF tower. slay โจ
โฏ๏ธ Session Parameters
these options take effect after the Connect request has succeeded. we got in, now what.
--playpath,-ypath โ Overrides the playpath parsed from the RTMP URL. Sometimes thertmpdumpURL parser cannot determine the correct playpath automatically, so it must be given explicitly using this option. again โ parser tries her best, you fill in the gaps ๐ซถ--playlist,-Yโ Issue aset_playlistcommand before sending theplaycommand. The playlist will just contain the current playpath.--live,-vโ Specify that the media is a live stream. No resuming or seeking in live streams is possible. it's happening now, bestie, you can't rewind the moment ๐ญ--subscribe,-dstream โ Name of live stream to subscribe to. Defaults to playpath.--realtime,-Rโ Download approximately in realtime, without attempting to speed up via Pause/Unpause commands ("the BUFX hack"). Useful for servers that jump backwards in time at the Unpause command. Resuming and seeking in realtime streams is still possible. so yes, you can still seek here. iconic. โญ--resume,-eโ Resume an incomplete RTMP download. we finish what we started ๐--skip,-knum โ Skipnumkeyframes when looking for the last keyframe from which to resume. This may be useful if a regular attempt to resume fails. The default is0.--start,-Anum โ Start atnumseconds into the stream. Not valid for live streams.--stop,-Bnum โ Stop atnumseconds into the stream.--buffer,-bnum โ Set buffer time tonummilliseconds. The default is36000000. yeah, that's a lot of milliseconds. she's not shy.--timeout,-mnum โ Timeout the session afternumseconds without receiving any data from the server. The default is120.
๐ Security Parameters
these options handle additional authentication requests from the server. the "prove you're allowed to be here" section.
--token,-Tkey โ Key for SecureToken response, used if the server requires SecureToken authentication.--jtv,-jJSON โ JSON token used by legacy Justin.tv servers. InvokesNetStream.Authenticate.UsherToken. (legacy servers, we love a throwback ๐)--swfhash,-whexstring โ SHA256 hash of the decompressed SWF file. This option may be needed if the server uses SWF Verification, but see the--swfVfyoption below. The hash is 32 bytes, and must be given in hexadecimal. The--swfsizeoption must always be used with this option.--swfsize,-xnum โ Size of the decompressed SWF file. This option may be needed if the server uses SWF Verification, but see the--swfVfyoption below. The--swfhashoption must always be used with this option.
these two are a package deal, bestie. they do not go anywhere without each other. ๐
--swfVfy,-Wurl โ URL of the SWF player for this media. This option replaces all three of the--swfUrl,--swfhash, and--swfsizeoptions. 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.swfinfofile in the user's home directory, so that it doesn't need to be retrieved and recalculated every timertmpdumpis run. The.swfinfofile 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 for30days before re-checking. she remembers things so you don't have to, queen behaviour ๐--swfAge,-Xdays โ Specify how many days to use the cached SWF info before re-checking. Use0to 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
the extras. the little sprinkles on top. ๐
--flv,-ooutput โ Specify the output file name. If the name is-or is omitted, the stream is written tostdout. pipe it, redirect it, live your truth.--hashes,-#โ Display streaming progress with a hash mark for each 1% of progress, instead of a byte counter.--quiet,-qโ Suppress all command output. shhh. ๐คซ--verbose,-Vโ Verbose command output.--debug,-zโ Debug level output. Extremely verbose, including hex dumps of all packet data. like, extremely. hex dumps of literally all of it. ๐--help,-hโ Print a summary of command options.
๐ช EXIT STATUS ๐ช
the "how did it go" report card:
0โ Successful program execution. ate and left no crumbs ๐1โ Unrecoverable error. ๐ญ2โ Incomplete transfer, resuming may get further. so close bestie, try--resume
๐ ENVIRONMENT ๐
HOMEโ The value of$HOMEis used as the location for the.swfinfofile.
๐ FILES ๐
$HOME/.swfinfoโ Cache of SWF Verification information.
๐ SEE ALSO ๐
๐ AUTHORS ๐
Andrej Stepanchuk, Howard Chu, The Flvstreamer Team <http://rtmpdump.mplayerhq.hu>
okay that's the whole page, bestie, you're fully caught up. this was RTMPDump v2.4, dated 2012-07-24, and yeah โ she's been iconic since way before you got here ๐ฆโจ thank you for coming to my ted talk, mwah ๐
๐ฆ where this page comes from
- alpine 3.22: rtmpdump-doc 2.4_git20190330-r5 ยท GPL-2.0-or-later
- alpine 3.23: rtmpdump-doc 2.4_git20190330-r5 ยท GPL-2.0-or-later
- alpine 3.24: rtmpdump-doc 2.4_git20190330-r5 ยท GPL-2.0-or-later
- debian bookworm: rtmpdump 2.4+20151223.gitfa8646d.1-2+b2
- debian trixie: rtmpdump 2.4+20151223.gitfa8646d.1-2+b5
- fedora 44: rtmpdump 2.6-4.fc44 ยท GPL-2.0-or-later
- nixos 26.05: rtmpdump 2.6
- ubuntu jammy: rtmpdump 2.4+20151223.gitfa8646d.1-2build4
- ubuntu noble: rtmpdump 2.4+20151223.gitfa8646d.1-2build7
- ubuntu questing: rtmpdump 2.4+20151223.gitfa8646d.1-2build8
- ubuntu resolute: rtmpdump 2.4+20151223.gitfa8646d.1-3 ยท GPL-2.0-or-later
- ubuntu stonking: rtmpdump 2.6-1 ยท GPL-2.0-or-later
- Copyright 2011 Howard Chu
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms