Source Media Analyze
Use When
- A longform source file needs local metadata before selecting,
clipping, or reframing highlights.
- You need duration, dimensions, orientation, fps, and stream presence
without uploading the media anywhere.
- Highlight scoring should incorporate source-level audio energy,
silence, or scene-change signals.
Invocation
cat .content-machine/skills/source-media-analyze/examples/request.json | \
node ./node_modules/@45ck/content-machine/agent/run-tool.mjs source-media-analyze
Output Contract
- Reads the local source media file.
- Writes
source-media-analysis.v1.json. - Uses local
ffprobe/ffmpegor bundled static binaries when
available.
- Measures scene-change timestamps, silence gaps, audio RMS/peak, and
compact normalized source scores on a best-effort basis.
Validation Checklist
hasVideo,hasAudio, dimensions, duration, fps, and orientation
are present when ffprobe can read them.
- Missing streams are warnings, not silent defaults.
- Missing ffmpeg measurement support is a warning; ffprobe metadata
should still be written when possible.
- No network calls are made.