video-edit
Conversational video editing workflow for cuts, transcript-based edits, overlays, captions, subtitle burn-in, and render planning with ffmpeg. Use when the user asks to edit video by instruction, cut silence or words, add subtitles, add overlays, transcribe video, or render a final clip.
- License 许可
- Apache-2.0
- 所属仓库
- bravew/Neumar
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 4
01 前言 Front Matter
- name
- video-edit
- description
- Conversational video editing workflow for cuts, transcript-based edits, overlays, captions, subtitle burn-in, and render planning with ffmpeg. Use when the user asks to edit video by instruction, cut silence or words, add subtitles, add overlays, transcribe video, or render a final clip.
03 SKILL.md 正文
Video Edit
Use this skill for conversational video edits that combine transcription, cut planning, overlays, captions, and final rendering.
Hard Rules
- Subtitles are applied last, after cuts, overlays, scaling, and audio processing.
- Prefer per-segment lossless extraction with
-c copyand concat when no filters are needed. - Add short 30 ms audio fades at edit joins unless the user explicitly wants hard cuts.
- For overlays and delayed media, use
setpts=PTS-STARTPTS+T/TBso timestamps are reset and shifted deliberately. - Never cut inside a word. Snap edit boundaries to word-level transcript timestamps.
- Preserve 30-200 ms of context around speech boundaries unless the user requests frame-tight cuts.
- Use verbatim ASR text for captions. Do not rewrite captions unless asked.
- Cache transcripts by source hash so repeated edits do not re-transcribe unchanged media.
- Produce a plain-English edit plan before any destructive or long render.
- Ask for approval before final rendering when the requested edit changes timing, removes content, or burns permanent subtitles.
- Keep intermediate files in a workspace edit/cache directory and final renders in a workspace edit/output directory.
- Never write generated video outputs into source-controlled project paths unless the user explicitly chooses that destination.
Workflow
- Inspect media first with the existing ffmpeg/media tools. Record duration, streams, codec, resolution, frame rate, and audio layout.
- Transcribe when timing matters. Request word timestamps and reuse any cached transcript for the same source hash.
- Build an edit plan with source path, exact segment windows in seconds, intended joins, overlays, subtitle inputs, output path, and expected duration.
- For transcript cuts, snap segment starts and ends to word boundaries, then add context padding inside valid media bounds.
- Render in passes only when needed:
- Cuts/concat first.
- Overlays, scaling, crop, color, and audio filters next.
- Subtitle burn-in last.
- Verify output with probe metadata after rendering. Compare expected vs actual duration and confirm the output path is inside the workspace edit/output directory.
Command Patterns
Lossless segment:
ffmpeg -ss START -to END -i input.mp4 -c copy segment_001.mp4
Lossless concat:
ffmpeg -f concat -safe 0 -i concat.txt -c copy cut.mp4
Audio crossfade-safe filtered segment:
ffmpeg -ss START -to END -i input.mp4 -af "afade=t=in:st=0:d=0.03,afade=t=out:st=DURATION_MINUS_0_03:d=0.03" -c:v copy segment_001.mp4
Subtitle burn-in final pass:
ffmpeg -i edited.mp4 -vf "subtitles=subtitles.srt" -c:a copy final.mp4
Response Discipline
When proposing an edit, include only the useful plan: source, cuts, overlays/captions, output path, and validation checks. Do not describe ffmpeg basics unless the user asks.
04 同仓库更多 Skills
yt-dlp
A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.
weather
Get current weather and forecasts (no API key required).
video-editing
Video Mode editing guidance for agentic storyboard, timeline, caption, audio, render, and publish work through video_* MCP tools.
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
ship
Full shipping workflow: test, review, version, changelog, and PR creation. Use when: preparing to ship code, creating releases, merging PRs.
security-audit
Application security audit covering OWASP Top 10, STRIDE threat modeling, and secrets archaeology. Use when: security review, pre-launch audit, dependency scanning.