docs: fix typo (#4921)

This commit is contained in:
Alessandro Ros
2025-08-31 16:23:33 +02:00
committed by GitHub
parent a3926f732a
commit 3ed918bfca
2 changed files with 16 additions and 16 deletions

View File

@@ -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.

View 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.