Browse Source

update readme

pull/169/head
aler9 5 years ago
parent
commit
dbe7c01925
  1. 14
      README.md

14
README.md

@ -59,14 +59,9 @@ Download and launch the image:
docker run --rm -it --network=host aler9/rtsp-simple-server docker run --rm -it --network=host aler9/rtsp-simple-server
``` ```
The `--network=host` argument is mandatory since Docker can change the source port of UDP packets for routing reasons, and this makes RTSP routing impossible. To avoid the option, disable UDP and expose the RTSP port, by creating a file named `rtsp-simple-server.yml` with the following content: The `--network=host` argument is mandatory since Docker can change the source port of UDP packets for routing reasons, and this makes RTSP routing impossible. This option can be avoided by disabling UDP and exposing the RTSP port:
```yaml
protocols: [tcp]
```
and passing it to the container:
``` ```
docker run --rm -it -v $PWD/rtsp-simple-server.yml:/rtsp-simple-server.yml -p 8554:8554 aler9/rtsp-simple-server docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 aler9/rtsp-simple-server
``` ```
### Configuration ### Configuration
@ -78,6 +73,11 @@ The configuration can be overridden with environment variables in the format `RT
RTSP_RTSPPORT=8555 ./rtsp-simple-server RTSP_RTSPPORT=8555 ./rtsp-simple-server
``` ```
Parameters in dicts/maps can be overridden by using underscores, in the following way:
```
RTSP_PATHS_TEST_SOURCE=rtsp://myurl ./rtsp-simple-server
```
### RTSP proxy mode ### RTSP proxy mode
`rtsp-simple-server` is also an RTSP proxy, that is usually deployed in one of these scenarios: `rtsp-simple-server` is also an RTSP proxy, that is usually deployed in one of these scenarios:

Loading…
Cancel
Save