FFmpeg Mixing — guide skill for editing & clips
For AI agents: find the right skill in one call —
curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the use-case page.
Splice generated clips into an original video with ffmpeg without A/V drift: absolute trims, one audio track.
- Type: Guide · Editing & clips
- Slug:
varg-ffmpeg-mixing - Status: beta
- Publisher: varg (varg, verified)
- License: MIT
- Source: https://github.com/vargHQ/sdk/tree/main/.claude/skills/ffmpeg-mixing
- Works in: Claude Code
- Requires: ffmpeg
- Cost: Free — runs locally, no varg credits.
What it does
A short lesson from the varg SDK on mixing clips with ffmpeg while keeping sound in sync. Pre-trimming an input with -ss/-t and then applying relative trims drifted (38 s out instead of 36 s); the fix is to trim every segment from the full original with absolute timestamps, reset with setpts=PTS-STARTPTS, scale before trimming, and cut the audio once with atrim so the video segments add up to the audio length. It ships a ready filter_complex for inserting a generated scene into an original video.
Use when
- Stitching generated clips into an original video
- Inserting scenes at timestamps
- Any ffmpeg filter_complex work that trims or concatenates clips against one continuous audio track
Install
Not published as a standalone skill yet. Source: https://github.com/vargHQ/sdk/tree/main/.claude/skills/ffmpeg-mixing
Used for
- Edit your own footage: Cut silences and flubs, reframe 16:9 to 9:16, add captions and b-roll to footage you shot.
- Voiceover and music for a video: A professional voiceover and a fitting music bed added to your video or screen recording.
- B-roll for your video: Cutaway footage for every mention in a voiceover or interview: generated clips, collage or stock-style shots, cut in on time.
More editing & clips skills
- Chengfeng Videocut: Chinese talking-head editing: word-level transcript, five-pass flub sweep, human review in a Studio, subtitles, export.
- Claude Code Video Toolkit: Open-source video workspace for Claude Code: script, voice, music, visuals and Remotion render on your own GPU account.
- Herk Edit Kit: Nate Herk's kit to edit talking-head videos, reels and Shorts: silence and flub cuts, storytelling, motion graphics.