You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration can be changed dinamically when the server is running (hot reloading) by editing the configuration file, Changes are detected and applied without disconnecting existing clients, whenever is possible.
87
87
88
-
89
88
### RTSP proxy mode
90
89
91
90
_rtsp-simple-server_ is also a RTSP proxy, that is usually deployed in one of these scenarios:
92
91
* when there are multiple users that are receiving a stream and the bandwidth is limited; the proxy is used to receive the stream once. Users can then connect to the proxy instead of the original source.
93
92
* when there's a NAT / firewall between a stream and the users; the proxy is installed on the NAT and makes the stream available to the outside world.
94
93
95
94
Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content:
96
-
```yaml
95
+
```yml
97
96
paths:
98
97
proxied:
99
98
# url of the source stream, in the format rtsp://user:pass@host:port/path
@@ -102,10 +101,18 @@ paths:
102
101
103
102
After starting the server, users can connect to `rtsp://localhost:8554/proxied`, instead of connecting to the original url. The server supports any number of source streams, it's enough to add additional entries to the `paths` section.
104
103
104
+
It's possible to save bandwidth by enabling the on-demand mode: the stream will be pulled only when at least a client is connected:
105
+
```yml
106
+
paths:
107
+
proxied:
108
+
source: rtsp://original-url
109
+
sourceOnDemand: yes
110
+
```
111
+
105
112
### Serve a webcam
106
113
107
114
Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content:
@@ -148,19 +155,38 @@ The command inserted into `runOnDemand` will start only when a client requests t
148
155
149
156
### Remuxing, re-encoding, compression
150
157
151
-
To change the format, codec or compression of a stream, you can use _FFmpeg_ or _Gstreamer_ together with _rtsp-simple-server_. For instance, to re-encode an existing stream, that is available in the `/original` path, and publish the resulting stream in the `/compressed` path, edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content:
152
-
```yaml
158
+
To change the format, codec or compression of a stream, use _FFmpeg_ or _Gstreamer_ together with _rtsp-simple-server_. For instance, to re-encode an existing stream, that is available in the `/original` path, and publish the resulting stream in the `/compressed` path, edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content:
0 commit comments