mirror of
https://github.com/doct0r0710/obs-motion.git
synced 2026-02-19 21:17:06 +01:00
Detects motion on OBS source and saves replay buffer using OBS Websockets.
- JavaScript 100%
| .gitignore | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
obs-motion
Detects motion on OBS source and saves replay buffer using OBS Websockets.
Usage
OBS
- Make sure you have at least one Source added.
- Make sure Replay Buffer is enabled.
- Make sure WebSocket Server is enabled.
- Make sure Replay Buffer is started.
index.js
- Change necessary OBS settings between lines 7 and 12.
- Start the project with
npm startornode index.js - Fine-tune settings between lines 13 and 15, if necessary.
- Increase
motionLimitif too sensitive, decrease if not sensitive enough. - Increase
imageIntervalif performance is too slow, decrease to catch faster motion. - Increase
avgSizeif the scene is too noisy, decrease to catch smaller movement.
- Increase
- Disable
debugon line 17 if necessary.
Check out my blog post for some examples and explanations of how it works.