mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-18 21:10:54 +00:00
update readme
This commit is contained in:
parent
52019ac75e
commit
dbe7c01925
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
|
||||
```
|
||||
|
||||
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:
|
||||
```yaml
|
||||
protocols: [tcp]
|
||||
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:
|
||||
```
|
||||
|
||||
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
|
||||
@ -78,6 +73,11 @@ The configuration can be overridden with environment variables in the format `RT
|
||||
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-simple-server` is also an RTSP proxy, that is usually deployed in one of these scenarios:
|
||||
|
Loading…
Reference in New Issue
Block a user