update record interval;

This commit is contained in:
kevin
2026-04-16 16:28:33 +08:00
parent 34ecc33ee5
commit 616b53f0a6
3 changed files with 4 additions and 4 deletions

View File

@@ -313,9 +313,9 @@ class Settings(BaseSettings):
default=None,
validation_alias=AliasChoices("ZED_SVO_RECORD_DIR", "zed_svo_record_dir"),
)
#: 每段时长(秒),默认 3005 分钟)。**ZED_SVO_SEGMENT_SEC**
#: 每段时长(秒),默认 30。**ZED_SVO_SEGMENT_SEC**
zed_svo_segment_sec: float = Field(
default=300.0,
default=30.0,
ge=1.0,
validation_alias=AliasChoices("ZED_SVO_SEGMENT_SEC", "zed_svo_segment_sec"),
)

View File

@@ -5,7 +5,7 @@
# ./record.sh --remote # HTTP 请求已运行的 fish_api 启录
# ./record.sh --stop # HTTP 停止录制
# ./record.sh --status # HTTP 查询录制状态
# ./record.sh --segment-sec 300 # 自定义分段时长
# ./record.sh --segment-sec 30 # 自定义分段时长(默认见 .env ZED_SVO_SEGMENT_SEC
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

View File

@@ -3,7 +3,7 @@
# 用法(在仓库根目录):
# ./start_recording.sh
# ./start_recording.sh --remote
# ./start_recording.sh --segment-sec 300
# ./start_recording.sh --segment-sec 30
# 依赖fish_api 已 python3 -m pip install -e .;直连相机时需 pyzed。
set -euo pipefail