camsnap
Use camsnap to grab snapshots, clips, or motion events from configured cameras.
Setup
- - Config file: INLINECODE1
- Add camera: INLINECODE2
Common commands
- - Discover: INLINECODE3
- Snapshot: INLINECODE4
- Clip: INLINECODE5
- Motion watch: INLINECODE6
- Doctor: INLINECODE7
Notes
- - Requires
ffmpeg on PATH. - Prefer a short test capture before longer clips.
camsnap
使用 camsnap 从已配置的摄像头中抓取快照、片段或运动事件。
设置
- - 配置文件:~/.config/camsnap/config.yaml
- 添加摄像头:camsnap add --name kitchen --host 192.168.0.10 --user user --pass pass
常用命令
- - 发现:camsnap discover --info
- 快照:camsnap snap kitchen --out shot.jpg
- 片段:camsnap clip kitchen --dur 5s --out clip.mp4
- 运动监控:camsnap watch kitchen --threshold 0.2 --action ...
- 诊断:camsnap doctor --probe
注意事项
- - 需要在 PATH 中包含 ffmpeg。
- 在录制较长片段前,建议先进行短时间测试录制。