ffmpeg-video-editing
Video editing with ffmpeg including cutting, trimming, concatenating segments, and re-encoding
Install / Use
npx skills add benchflow-ai/skillsbench --skill ffmpeg-video-editingInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of ffmpeg-video-editing
ffmpeg-video-editing scores 82/100 on our quality scale, 3250th of 4,698 Development & Engineering skills we index.
Its SKILL.md is 3.7 KB long, well organised into 17 sections with 7 code examples: a solid amount of guidance for an agent.
With 1,813 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-11-07 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 98/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
ffmpeg-video-editing compared with similar skills
All 4 of these similar skills score higher than ffmpeg-video-editing; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ffmpeg-video-editing (this skill)by benchflow-ai | 82 | 1.8k | 4mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.3k | 2d ago | CLAUDE.md |
| lobehubby lobehub | 100 | 85.6k | today | MCP Server |
Frequently asked questions
- How do I install ffmpeg-video-editing?
- Run
npx skills add benchflow-ai/skillsbench --skill ffmpeg-video-editing. The install tabs above show the steps for each supported agent. - Which AI agents does ffmpeg-video-editing work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is ffmpeg-video-editing safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 98/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ffmpeg-video-editing still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubname: ffmpeg-video-editing description: "Video editing with ffmpeg including cutting, trimming, concatenating segments, and re-encoding. Use when working with video files (.mp4, .mkv, .avi) for: removing segments, joining clips, extracting portions, or any video manipulation task."
FFmpeg Video Editing
Cutting Video Segments
Extract a portion (keep segment)
# Extract from start_time to end_time
ffmpeg -i input.mp4 -ss START -to END -c copy output.mp4
# With re-encoding for frame-accurate cuts
ffmpeg -i input.mp4 -ss START -to END -c:v libx264 -c:a aac output.mp4
Remove a segment (cut out middle)
To remove a segment, split into parts and concatenate:
# 1. Extract before the cut
ffmpeg -i input.mp4 -to CUT_START -c copy part1.mp4
# 2. Extract after the cut
ffmpeg -i input.mp4 -ss CUT_END -c copy part2.mp4
# 3. Concatenate
ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
Concatenating Multiple Segments
Using concat demuxer (recommended for same-codec files)
Create a file list (segments.txt):
file 'segment1.mp4'
file 'segment2.mp4'
file 'segment3.mp4'
Then concatenate:
ffmpeg -f concat -safe 0 -i segments.txt -c copy output.mp4
Using filter_complex (for re-encoding)
ffmpeg -i seg1.mp4 -i seg2.mp4 -i seg3.mp4 \
-filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a]concat=n=3:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" output.mp4
Removing Multiple Segments (Batch)
For removing many short segments (like filler words), the efficient approach:
- Calculate the "keep" segments (inverse of remove segments)
- Extract each keep segment
- Concatenate all keep segments
import subprocess
import os
def remove_segments(input_file, segments_to_remove, output_file):
"""
segments_to_remove: list of (start, end) tuples in seconds
"""
# Get video duration
result = subprocess.run([
'ffprobe', '-v', 'error', '-show_entries', 'format=duration',
'-of', 'default=noprint_wrappers=1:nokey=1', input_file
], capture_output=True, text=True)
duration = float(result.stdout.strip())
# Sort segments and merge overlapping
segments = sorted(segments_to_remove)
# Calculate keep segments (gaps between remove segments)
keep_segments = []
current_pos = 0.0
for start, end in segments:
if start > current_pos:
keep_segments.append((current_pos, start))
current_pos = max(current_pos, end)
if current_pos < duration:
keep_segments.append((current_pos, duration))
# Extract each keep segment
temp_files = []
for i, (start, end) in enumerate(keep_segments):
temp_file = f'/tmp/seg_{i:04d}.mp4'
subprocess.run([
'ffmpeg', '-y', '-i', input_file,
'-ss', str(start), '-to', str(end),
'-c', 'copy', temp_file
], check=True)
temp_files.append(temp_file)
# Create concat list
list_file = '/tmp/concat_list.txt'
with open(list_file, 'w') as f:
for temp_file in temp_files:
f.write(f"file '{temp_file}'\n")
# Concatenate
subprocess.run([
'ffmpeg', '-y', '-f', 'concat', '-safe', '0',
'-i', list_file, '-c', 'copy', output_file
], check=True)
# Cleanup
for f in temp_files:
os.remove(f)
os.remove(list_file)
Common Issues
Audio/Video sync problems
- Use
-c copyonly when cutting at keyframes - For precise cuts, re-encode:
-c:v libx264 -c:a aac
Gaps or glitches at cut points
- Ensure segments don't overlap
- Small buffer (0.01s) between segments can help
Getting video duration
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
72.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.3kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
lobehub
85.6k🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
