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.
```
./rtsp-simple-server
```
Users can then 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.
#### Convert a webcam into a RTSP server
#### Convert a webcam into a RTSP server
Start the server:
Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content:
The last command works only on Linux; for Windows and Mac equivalents, read the [ffmpeg wiki](https://trac.ffmpeg.org/wiki/Capture/Webcam).
After starting the server, the webcam can be opened with `rtsp://localhost:8554/webcam`. The ffmpeg command works only on Linux; for Windows and Mac equivalents, read the [ffmpeg wiki](https://trac.ffmpeg.org/wiki/Capture/Webcam).
#### On-demand publishing
#### On-demand publishing
@ -141,11 +133,6 @@ paths:
publishPass: mypassword
publishPass: mypassword
```
```
Start the server:
```
./rtsp-simple-server
```
Only publishers that provide both username and password will be able to proceed:
Only publishers that provide both username and password will be able to proceed: