semantic-video-clipper
Semantic Video Clipper
Overview
Segment a long video into clips by having AI analyze subtitle semantics and identify natural topic boundaries. The lightweight Python script handles parsing, timing calculation, and FFmpeg clipping based on AI-provided segment indices. Output clips and matching subtitles with filenames basename_<index>.* in same directory as the source video.
Workflow
Step 1: AI Analysis
- Read full subtitle content (.vtt or .srt)
- Understand semantic flow and topic transitions
- Identify natural split points that:
- Align with complete sentence endings
- Occur at topic shifts (new concepts, examples, recaps)
- Fit within duration constraints (typically 25-60 seconds)
- Return segment ranges as cue index pairs:
[(0, 12), (12, 25), (25, 40), ...]
Step 2: Python Script Execution
- Parse subtitles into Cue objects with timing
More from seefreed/skills
en-to-zh-translator
Translate English text files (.txt, .md) to Chinese for language learning and translation practice. Use when the user asks to translate a text file to Chinese, create a Chinese version of an English document, or generate bilingual materials for translation training. The translation preserves sentence structure and combines broken sentences into complete lines.
188en-zh-bilingual-json
Convert English .txt articles into a JSON array of sentence-level English/Chinese (zh) pairs. Translate English into Chinese and generating bilingual {en, zh} entries via the model (no external translation API), then saving to a JSON file.
11youtube-chapter-clipper
Generate chapter clips from YouTube videos with yt-dlp and ffmpeg. Use when asked to download YouTube videos/subtitles, generate fine-grained chapters, cut precise clips, or generate per-chapter English SRTs.
11transcript-reflow
Clean and reorganize transcript .txt files for clearer English grammar, punctuation, and paragraph flow. Use when asked to fix line breaks, merge fragments into sentences, normalize punctuation, or produce a reflowed transcript saved as a new file.
6youtube-smart-edit
Create a YouTube smart clipping workflow with yt-dlp and ffmpeg. Use when asked to download YouTube videos/subtitles, generate fine-grained chapters, cut precise clips, or generate per-chapter English SRTs.
1