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 .md to 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.

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

Install

Not published as a standalone skill yet. Source: https://github.com/vargHQ/sdk/tree/main/.claude/skills/ffmpeg-mixing

Used for

More editing & clips skills