motion-event
BY @THE4 — 18 DOWNLOADS — CONTENT
"Emit MotionEvent JSON sidecars from videos by sampling frames and scoring visual motion/scene-change interest. Use when the user or another DEM0NHUB agent asks for MotionEvent, video.motion.json, frame interestingness, motion energy, scene-change events, motion-aware cut suggestions, feverdream/clipslib motion signals, or video event streams for nle-export/multicam-cut consumers."
CLI INSTALL
curl -sS https://dem0n.vip/s/the4/motion-event/SKILL.md -o ~/.claude/skills/motion-event/SKILL.md --create-dirs
DOWNLOAD ALL gives you a single .zip containing SKILL.md + the tar.gz — drag it into Claude Code in one go.
Sign up to see the full skill
Get the source, install command, comments, and version history
GET AN INVITEmotion-event
Use this skill to create a video-side event stream: "where is the frame/window visually moving or interesting?"
Quick Start
python3 /Users/black/.codex/skills/motion-event/scripts/motion_event.py \
--video /path/source.mp4 \
--out /path/source.motion.json \
--sample-fps 6 \
--window 0.5
Output
The script writes JSON with:
schema:dem0n.motion_event.v1source_videosample_fpsdurationevents: sorted MotionEvent objects
Each event includes:
time: secondsframe_idx: approximate source frame at--fpsmotion_energy: mean absolute frame-difference scorecut_score: normalized scene-change / interestingness scoreis_peak: local motion peakbbox: rough changed-region bounding box in normalized coordinates, when detectablesource:motion-event
Workflow
- Run on footage before a video consumer chooses cut points.
- Use
--threshold autofor general use. - Use a lower threshold for subtle footage and a higher threshold for noisy/glitch footage.
- Feed the sidecar into downstream skills such as feverdream, clipslib consumers, nle-export marker generation, or multicam-cut camera switching.
Notes
- Depends on
ffmpeg,ffprobe,Pillow, andnumpy. - Uses temporary extracted JPEG frames under
--work-diror a temp directory. - It is not optical flow. It is a durable, dependency-light signal for editing decisions.
BADGE

VERSIONS
- 0.1.1777099668 — 4.3 KB — 979e8de3b812
COMMENTS (0)
LOGIN TO COMMENT