From 83b3ec0c71a363a0a71c8c610f166c9fc53f9599 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 5 Sep 2021 18:11:02 +0200 Subject: [PATCH] update readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 424ae2c2..f23a1121 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Plus: * [Publish a webcam](#publish-a-webcam) * [Publish a Raspberry Pi Camera](#publish-a-raspberry-pi-camera) * [Remuxing, re-encoding, compression](#remuxing-re-encoding-compression) + * [Save published videos to disk](#save-published-videos-to-disk) * [On-demand publishing](#on-demand-publishing) * [Redirect to another server](#redirect-to-another-server) * [Fallback stream](#fallback-stream) @@ -413,6 +414,18 @@ paths: runOnPublishRestart: yes ``` +### Save published videos to disk + +To Save published videos to disk, it's enough to put _FFmpeg_ inside `runOnPublish`: + +```yml +paths: + all: + original: + runOnPublish: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c copy -f segment -strftime 1 -segment_time 60 -segment_format mp4 saved_%Y-%m-%d_%H-%M-%S.mp4 + runOnPublishRestart: yes +``` + ### On-demand publishing Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content: