muvid.footage.scoring.segment¶
Shot boundaries (PySceneDetect) + the per-clip coverage mask.
coverage_maskis dependency-free: the boolean of song-grid frames a clip actually covers (from its offset + duration). It is the base mask every metric ANDs with, and the authority for “does this clip exist at song time t”.shot_boundariesreturns song-times of within-clip scene cuts (PySceneDetect, BSD-3). Consumed by the selector ONLY whenboundary_mode="beats+shots"(they become inter-clip cut candidates at shot-boundary times — a within-clip jump cut is unrepresentable in the single-offset EDL model). Optional dep: absent →[]and the mode silently degrades to beats-only.
Functions
|
Grid frames (bool[n]) the clip covers — using its clamped |
|
Song-times of within-clip scene cuts (PySceneDetect ContentDetector), or |
- muvid.footage.scoring.segment.coverage_mask(*, offset_s, duration_s, coverage, t0, hop_s, n)[source]¶
Grid frames (bool[n]) the clip covers — using its clamped
coveragespan.- Return type:
ndarray