|
|
|
@ -333,10 +333,12 @@ To save available streams to disk, you can use the `runOnReady` parameter and _F |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
all: |
|
|
|
all: |
|
|
|
original: |
|
|
|
original: |
|
|
|
runOnReady: 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 |
|
|
|
runOnReady: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c copy -f segment -strftime 1 -segment_time 60 -segment_format mpegts saved_%Y-%m-%d_%H-%M-%S.ts |
|
|
|
runOnReadyRestart: yes |
|
|
|
runOnReadyRestart: yes |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In the example configuration, streams are saved into TS files, that can be read even if the system crashes, while MP4 files can't. |
|
|
|
|
|
|
|
|
|
|
|
### On-demand publishing |
|
|
|
### On-demand publishing |
|
|
|
|
|
|
|
|
|
|
|
Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content: |
|
|
|
Edit `rtsp-simple-server.yml` and replace everything inside section `paths` with the following content: |
|
|
|
|