From 722f380d835c7be8d49bb48de43a3e95f056ff9d Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 30 Sep 2021 13:18:53 +0200 Subject: [PATCH] update readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26c459b6..664b806c 100644 --- a/README.md +++ b/README.md @@ -361,7 +361,7 @@ Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with ```yml paths: cam: - runOnInit: ffmpeg -f v4l2 -i /dev/video0 -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH + runOnInit: ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -preset ultrafast -tune zerolatency -b:v 600k -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH runOnInitRestart: yes ``` @@ -370,11 +370,12 @@ If the platform is Windows: ```yml paths: cam: - runOnInit: ffmpeg -f dshow -i video="USB2.0 HD UVC WebCam" -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH + runOnInit: ffmpeg -f dshow -i video="USB2.0 HD UVC WebCam" -c:v libx264 -preset ultrafast -tune zerolatency -b:v 600k -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH runOnInitRestart: yes ``` Where `USB2.0 HD UVC WebCam` is the name of your webcam, that can be obtained with: + ``` ffmpeg -list_devices true -f dshow -i dummy ```