diff --git a/squashkiwi-streaming/config/mediamtx.yml b/squashkiwi-streaming/config/mediamtx.yml index d6e31cb..eb8ef6c 100644 --- a/squashkiwi-streaming/config/mediamtx.yml +++ b/squashkiwi-streaming/config/mediamtx.yml @@ -16,8 +16,6 @@ metricsAddress: :9998 rtsp: yes rtspAddress: :8554 rtspTransports: [tcp, udp] -readTimeout: 10s -writeTimeout: 10s # HLS Server hls: yes @@ -38,16 +36,15 @@ paths: court_main: # Source URL is provided via environment variable MTX_PATHS_COURT_MAIN_SOURCE # from docker-compose.yml - sourceProtocol: tcp # Recording record: yes - recordPath: /recordings/%path_%Y%m%d_%H%M%S.mp4 + recordPath: /recordings/%path/%Y-%m-%d_%H-%M-%S-%f.mp4 + recordFormat: fmp4 recordSegmentDuration: 1h - recordDeleteAfter: 720h + recordDeleteAfter: 24h # Sub-stream for lower bandwidth court_sub: # Source URL is provided via environment variable MTX_PATHS_COURT_SUB_SOURCE - # from docker-compose.yml - sourceProtocol: tcp \ No newline at end of file + # from docker-compose.yml \ No newline at end of file diff --git a/squashkiwi-streaming/install.sh b/squashkiwi-streaming/install.sh index be7ccbd..ed44bc7 100755 --- a/squashkiwi-streaming/install.sh +++ b/squashkiwi-streaming/install.sh @@ -8,7 +8,8 @@ _check_required_env_vars "PROJECT_NAME" "LOCAL_DATA_FOLDER" "CAMERA_IP" "COURT_I # Create directories # shellcheck disable=SC2046 create_items $(get_squashkiwi_streaming_paths) || _die "Failed to create directories" -mkdir -p "${RECORDINGS_FOLDER}" +mkdir -p "${RECORDINGS_FOLDER}/court_main" +mkdir -p "${RECORDINGS_FOLDER}/court_sub" mkdir -p "${LOCAL_DATA_FOLDER}/config" mkdir -p "${LOCAL_DATA_FOLDER}/config/overlay" mkdir -p "${LOCAL_DATA_FOLDER}/config/web"