mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-12-24 11:51:18 +08:00
docs: fix typo (#4921)
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
# Extract screenshots
|
||||
|
||||
You can periodically extract screenshots from available streams by using FFmpeg inside the `runOnReady` hook:
|
||||
|
||||
```yml
|
||||
pathDefaults:
|
||||
runOnReady: |
|
||||
bash -c "
|
||||
while true; do
|
||||
mkdir -p $(dirname screenshots/$MTX_PATH)
|
||||
ffmpeg -i rtsp://localhost:8554/$MTX_PATH -frames:v 1 -update true -y screenshots/$MTX_PATH.jpg
|
||||
sleep 10
|
||||
done"
|
||||
```
|
||||
|
||||
Where `10` is the interval between screenshots.
|
||||
16
docs/2-usage/12-extract-snapshots.md
Normal file
16
docs/2-usage/12-extract-snapshots.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Extract snapshots
|
||||
|
||||
You can periodically extract snapshots from available streams by using FFmpeg inside the `runOnReady` hook:
|
||||
|
||||
```yml
|
||||
pathDefaults:
|
||||
runOnReady: |
|
||||
bash -c "
|
||||
while true; do
|
||||
mkdir -p $(dirname snapshots/$MTX_PATH)
|
||||
ffmpeg -i rtsp://localhost:8554/$MTX_PATH -frames:v 1 -update true -y snapshots/$MTX_PATH.jpg
|
||||
sleep 10
|
||||
done"
|
||||
```
|
||||
|
||||
Where `10` is the interval between snapshots.
|
||||
Reference in New Issue
Block a user