ShaRT accepts the following command line arguments:
- listen for incoming SRT broadcasts on port
PORT
.
-
set SRT encryption passphrase for published streams to STRING.
-
Broadcasters will have to set the
passphrase
option to STRING. -
Example: If
ShaRT
was started with--srt-publish-port 9991
and--srt-publish-passphase a_good_password
, to broadcast to the server from the computer on which it is running, you would set the stream URL tosrt://127.0.0.1:9991?streamid=stream_name&passphrase=a_good_password
- listen for incoming SRT stream watchers on port
PORT
.
- The same as
--srt-publish-passphrase
except it applies to connections that are watching a stream rather than broadcasting it.
- Listen for incoming HTTP connections on port
PORT
.
- Allow at most
NUMBER
stream(s) to be published at once. Set this value to0
for no limit.
- Allow at most
NUMBER
watchers of any given stream. Set this value to0
for no limit.
- Allow at most
NUMBER
incoming connections at once. Set this value to0
for no limit.
-
Command to execute to authenticate connections. (If you just want to set a password for broadcasting streams, see
--str-publish-passphrase
) -
COMMAND
will be called as such:COMMAND TYPE ADDRESS NAME
whereCOMMAND
is the command to run,TYPE
is eitherPUBLISH
orSUBSCRIBE
depending on the type of connection,ADDRESS
is the IP address of the incoming connection andNAME
is the name of the stream requested. -
If
COMMAND
exits with status0
, the connection is accepted. If it exits with status1
, it is rejected. -
If the command writes anything to standard output, that output will replace whatever the initial stream name was. For example, if
COMMAND
wasecho -n foo && exit 0
, no matter what the name of the requested stream is, it will be set tofoo
by the server. -
IMPORTANT: When using this feature, be aware that newline characters are not removed from the end of the output of
COMMAND
.
- If
y
is passed, the server will read the value of theX-Real-IP
header on HTTP requests and use that as the effective IP address of incoming connections. - Use this if you are running behind a proxy and still want to use IP addresses
with
--auth-command
.