Combine multiple segment detection results into a unified list. Use when you need to merge segments from different detectors, prepare removal lists for video processing, or consolidate detection outputs.
Combines multiple segment JSON files into a single unified segments file for video processing.
python3 /root/.claude/skills/segment-combiner/scripts/combine_segments.py \
--segments /path/to/segments1.json /path/to/segments2.json \
--output /path/to/all_segments.json
--segments: One or more segment JSON files to combine--output: Path to output combined segments JSONEach input file should have a segments array:
{
"segments": [
{"start": 0, "end": 120, "duration": 120},
{"start": 300, "end": 305, "duration": 5}
]
}
{
"segments": [
{"start": 0, "end": 120, "duration": 120},
{"start": 300, "end": 305, "duration": 5}
],
"total_segments": 2,
"total_duration_seconds": 125
}
# Combine segments from multiple detectors
python3 /root/.claude/skills/segment-combiner/scripts/combine_segments.py \
--segments initial_silence.json pauses.json \
--output all_segments.json
segments array