ENV | YAML | Meaning | Example |
---|---|---|---|
CLIENT_ADDR | client.addr | rtsp url to client stream | "rtsp://192.168.1.66:8554/live" |
CLIENT_RECONNECT_PAUSE | client.reconnect-pause | Max timeout to client reconnection process in ms | 20000 |
CLIENT_RECONNECT_INTERVAL | client.reconnect-interval | Time between reconnect attempts in ms | 1000 |
SERVER_TCP_PORT | server.tcp-port | Server tcp port for rtsp streaming | [DEFAULT] :8554 |
SERVER_UDP_PORT | server.udp-port | Server udp port for rtsp streaming | [DEFAULT] None |
SERVER_UDP_RTCP_PORT | server.udp-rtcp-port | Server udp port for rtcp streaming | [DEFAULT] None |
The only required properties are CLIENT_ADDR and CLIENT_RECONNECT_PAUSE, if you don't specify server values the defaults are used
Note that the ports are specified with :
prefix
If you need to use TCP transport, specify only SERVER_TCP_PORT, otherwise for UDP you need both SERVER_UDP_PORT and SERVER_UDP_RTCP_PORT
- Run
make build
to compilestrmr
executable file - Put config file to
configs/conf.yaml
relative to executable file path or specify with flag--config
- Run executable
./strmr --config your-conf.yaml