diff --git a/docs/2-usage/12-extract-screenshots.md b/docs/2-usage/12-extract-screenshots.md deleted file mode 100644 index 50f06049..00000000 --- a/docs/2-usage/12-extract-screenshots.md +++ /dev/null @@ -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. diff --git a/docs/2-usage/12-extract-snapshots.md b/docs/2-usage/12-extract-snapshots.md new file mode 100644 index 00000000..3532d980 --- /dev/null +++ b/docs/2-usage/12-extract-snapshots.md @@ -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.