mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-11 17:28:55 +00:00
update readme
This commit is contained in:
parent
df4c268813
commit
83b3ec0c71
13
README.md
13
README.md
@ -52,6 +52,7 @@ Plus:
|
|||||||
* [Publish a webcam](#publish-a-webcam)
|
* [Publish a webcam](#publish-a-webcam)
|
||||||
* [Publish a Raspberry Pi Camera](#publish-a-raspberry-pi-camera)
|
* [Publish a Raspberry Pi Camera](#publish-a-raspberry-pi-camera)
|
||||||
* [Remuxing, re-encoding, compression](#remuxing-re-encoding-compression)
|
* [Remuxing, re-encoding, compression](#remuxing-re-encoding-compression)
|
||||||
|
* [Save published videos to disk](#save-published-videos-to-disk)
|
||||||
* [On-demand publishing](#on-demand-publishing)
|
* [On-demand publishing](#on-demand-publishing)
|
||||||
* [Redirect to another server](#redirect-to-another-server)
|
* [Redirect to another server](#redirect-to-another-server)
|
||||||
* [Fallback stream](#fallback-stream)
|
* [Fallback stream](#fallback-stream)
|
||||||
@ -413,6 +414,18 @@ paths:
|
|||||||
runOnPublishRestart: yes
|
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
|
### 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user