From dbe7c0192532788c9869c14b21cc59816e2565d6 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 14 Oct 2020 00:05:10 +0200 Subject: [PATCH] update readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 61a13ed5..1be062a6 100644 --- a/README.md +++ b/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] -``` - -and passing it to the container: +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: ``` -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: