Files
FishServer/start_recording.sh
2026-04-16 16:28:33 +08:00

15 lines
578 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 独立运行:与 fish_api/uvicorn 的启动、停止无关。调用 ZED 录制 CLI本地前台录制Ctrl+C 停),或传 --remote 仅请求已运行的 fish_api。
# 用法(在仓库根目录):
# ./start_recording.sh
# ./start_recording.sh --remote
# ./start_recording.sh --segment-sec 30
# 依赖fish_api 已 python3 -m pip install -e .;直连相机时需 pyzed。
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT/fish_api"
PY="${PYTHON:-python3.8}"
exec "$PY" -m app.zed_record_cli start "$@"