RTMPGW(8)
π rtmpgw β the RTMP streaming media gateway π
okay bestie, gather round, because this is rtmpgw(8) from the System Manager's Manual, and she is serving π
β¨ NAME β¨
rtmpgw β RTMP streaming media gateway. yes queen, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
rtmpgw [-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] [-j JSON]
[-w swfHash] [-x swfSize] [-W swfUrl] [-X swfAge] [-D address] [-g port]
[-q] [-V] [-z]
rtmpgw -h
π DESCRIPTION π
So like. rtmpgw is a server. She takes media content coming at her in RTMP and streams it out as HTTP. it's giving gateway energy, it's giving middle-man-but-make-it-fashion π
Here's the tea: rtmpgw sits there listening for HTTP requests that specify RTMP stream parameters, and then she hands you back the RTMP data inside the HTTP response. literally just passing the aux cord π«Ά
The only valid HTTP request is "GET /" β that's it, that's the one β but you can sneak extra options in, URL-encoded style. Options you put on the command line act as defaults, and anything in the HTTP request can override them. so the CLI is like the baseline fit and the request is the accessories β¨
π OPTIONS π
π Network Parameters
These ones define how to connect to the media server. the "who are you texting and how" section π±
--rtmp,-rurl β URL of the server and media content. the main character of the URL world.--host,-nhostname β overrides the hostname in the RTMP URL. not me just swapping the host like it's nothing π--port,-cport β overrides the port number in the RTMP URL.--protocol,-lnumber β overrides the protocol in the RTMP URL. pick your fighter:0=rtmp1=rtmpt2=rtmpe3=rtmpte4=rtmps5=rtmpts
--socks,-Shost:port β use the specified SOCKS4 proxy. going through a friend of a friend, lowkey πΆοΈ
π Connection Parameters
These define what goes inside the RTMP Connect request packet. and fr fr, if you don't give correct values here, the media server will reject the connection attempt. no cap. she's picky and honestly? valid.
--app,-aapp β name of the application to connect to on the RTMP server. Overrides the app in the RTMP URL. Sometimes thertmpdumpURL parser can't figure out the app name on its own, so you have to hand it over explicitly with this option. the parser is doing her best okay π--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. she's shy like that π--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". vintage, iconic, no notes β¨--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. yeah bestie, it's old, use--connπ--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
π¦ Session Parameters
These ones kick in after the Connect request has succeeded. the post-connection glow-up πΈ
--playpath,-ypath β overrides the playpath parsed from the RTMP URL. Sometimes thertmpdumpURL parser can't determine the correct playpath automatically, so it must be given explicitly using this option.--live,-vβ specify that the media is a live stream. No resuming or seeking in live streams is possible. you get what you get, live is live, periodt π--subscribe,-dstream β name of live stream to subscribe to. Defaults to playpath.--start,-Anum β start at num seconds into the stream. Not valid for live streams. don't try it bestie.--stop,-Bnum β stop at num seconds into the stream.--buffer,-bnum β set buffer time to num milliseconds. The default is20000.--timeout,-mnum β timeout the session after num seconds without receiving any data from the server. The default is120. if she ghosts you for two minutes, you're out βοΈ
π Security Parameters
These handle the extra authentication requests the server throws at you. the "prove it" era π΅οΈ
--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. old-school but make it work π°οΈ--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. they're a package deal, they come as a set π--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. see? told you. matching set π--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 for 30 days before re-checking. she remembers so you don't have to π§ β¨--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. no double-dipping on downloads, we're efficient here π
π Miscellaneous
--device,-Daddress β listener IP address. The default is0.0.0.0, i.e., any IP address. she's open to everyone, main character energy π--sport,-gport β listener port. The default is80.--quiet,-qβ suppress all command output. silent but deadly π€«--verbose,-Vβ verbose command output. tell me EVERYTHING.--debug,-zβ debug level output. Extremely verbose, including hex dumps of all packet data. like, hex dumps of everything. it's giving unhinged and we love her for it π--help,-hβ print a summary of command options.
π EXAMPLES π
okay so the HTTP request:
GET /?r=rtmp:%2f%2fserver%2fmyapp&y=somefile HTTP/1.0
is equivalent to the rtrmpdump(1) invocation:
rtmpdump -r rtmp://server/myapp -y somefile
Note: only the shortform (single letter) options are supported. long options, bestie? not here. short and sweet only π
π§ ENVIRONMENT π§
HOMEβ the value of$HOMEis used as the location for the.swfinfofile. she knows where you live π π
π FILES π
$HOME/.swfinfoβ cache of SWF Verification information.
π SEE ALSO π
π AUTHORS π
Andrej Stepanchuk, Howard Chu, The Flvstreamer Team <http://rtmpdump.mplayerhq.hu>
and that's the whole page bestie, you ate, no crumbs left π β¨
This was RTMPDump v2.4, dated 2011-07-20, and she's the RTMPGW(8) page from the System Manager's Manual β stan forever, drink water, and don't forget your --swfsize when you use --swfhash π«Άπ
π¦ 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