From 75138e460cac434ef763d7126a76f17c79a28009 Mon Sep 17 00:00:00 2001 From: deflax Date: Wed, 3 Jan 2024 02:44:43 +0000 Subject: [PATCH] move the mtx_segment on recordsegmentcomplete --- config/recorder/mediamtx.yml.dist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/recorder/mediamtx.yml.dist b/config/recorder/mediamtx.yml.dist index 2d82614..83d5b26 100644 --- a/config/recorder/mediamtx.yml.dist +++ b/config/recorder/mediamtx.yml.dist @@ -299,7 +299,7 @@ pathDefaults: # Path of recording segments. # Extension is added automatically. # Available variables are %path (path name), %Y %m %d %H %M %S %f %s (time in strftime format) - recordPath: ./records/%path/%Y-%m-%d_%H-%M-%S-%f + recordPath: ./recordings/%path/%Y-%m-%d_%H-%M-%S-%f # Format of recorded segments. # Available formats are "fmp4" (fragmented MP4) and "mpegts" (MPEG-TS). recordFormat: fmp4 @@ -556,8 +556,8 @@ paths: live: record: yes recordDeleteAfter: 0s - recordPath: ./records/%path/%Y-%m-%d_%H-%M-%S-%f - runOnRecordSegmentComplete: echo $MTX_SEGMENT_PATH + recordPath: ./recordings/%path/%Y-%m-%d_%H-%M-%S-%f + runOnRecordSegmentComplete: mv $MTX_SEGMENT_PATH ./recordings/vod # Settings under path "all_others" are applied to all paths that # do not match another entry.