Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

video-editor视频编辑器

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

1,497

周安装

63

GitHub Stars

5

下载量

524
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:video-editor(视频编辑器)
来源仓库:https://github.com/ckorhonen/claude-skills
仓库路径:skills/video-editor
安装命令:
npx skills add https://github.com/ckorhonen/claude-skills --skill video-editor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ckorhonen/claude-skills --skill video-editor

简介

提供视频处理与编码的专业指导,基于 FFmpeg 工作流。

  • 支持格式转换、码率优化、字幕硬嵌及色彩空间处理。
  • 适用于视频制作、平台适配或质量提升等生产环节需求。
  • 使用外部素材或商业发布前应核对版权许可和内容合规要求。
  • video-editor 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Video Editor - FFmpeg & Encoding Expert

Expert guidance for video editing, encoding, and processing with ffmpeg. This skill covers container formats, codecs, encoding best practices, and quality optimization for video production workflows.

When to Use This Skill

Use this skill when:

  • Encoding or transcoding video files
  • Converting between container formats (MKV, MP4, etc.)
  • Optimizing encoding settings for quality or file size
  • Troubleshooting video quality issues
  • Working with color spaces and color matrices
  • Hardsubbing or softsubbing videos
  • Preparing videos for specific platforms or devices
  • Understanding why a video looks wrong after processing

Core Concepts

Container vs. Codec

This distinction is critical. File extensions like .mkv or .mp4 are container formats that package already-compressed streams. The actual compression happens through codecs like H.264, H.265, VP9, or AV1.

ConceptWhat It IsExamples
ContainerWrapper that holds video/audio/subtitle streamsMKV, MP4, AVI, MOV, WebM
CodecAlgorithm that compresses/decompresses videoH.264, H.265/HEVC, VP9, AV1
EncoderSoftware that implements a codecx264, x265, libvpx, NVENC

Remuxing vs. Reencoding

OperationWhat It DoesQuality ImpactSpeed
RemuxingMoves streams between containers without re-compressionNone (lossless)Very fast
ReencodingDecodes and re-encodes video with new settingsAlways loses qualitySlow

Rule of thumb: If you only need to change the container format, remux. Only reencode when absolutely necessary.

Quality Principles

What "Quality" Actually Means

Video quality measures how closely the output resembles the source. Every processing step moves the video further from the original. There is no way to add quality - only preserve or lose it.

Common Misconceptions

MythReality
Higher resolution = better qualityResolution is just dimensions; a 720p video can look better than a 4K one
Higher bitrate = better qualityEncoder efficiency matters more; same quality at different sizes is possible
H.265 is always 50% smallerDepends on encoder settings; poorly-configured H.265 can be worse than H.264
Hardware encoding is fine for qualityHardware encoders (NVENC, QuickSync) sacrifice quality for speed
AI upscaling improves qualityUpscaling adds artificial detail that wasn't in the source

The Encoding Quality Hierarchy

From most to least important:

  1. Encoder settings (CRF, preset, tuning)
  2. Encoder choice (x264/x265 vs. hardware encoders)
  3. Codec (H.265 vs. H.264 vs. VP9)

Quick Reference: FFmpeg Commands

Remux (Change Container, No Quality Loss)

# MKV to MP4 (preserves all streams)
ffmpeg -i input.mkv -c copy output.mp4

# MP4 to MKV
ffmpeg -i input.mp4 -c copy output.mkv

Basic Encoding

# Encode with x264, copy audio
ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset slower -crf 20 output.mkv

# Encode with x265
ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 22 output.mkv

Quality-Focused Encoding

# High-quality x264 for animation
ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset slower -crf 18 \
  -x264-params bframes=8 output.mkv

# High-quality x265
ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 20 \
  -x265-params bframes=8 output.mkv

Encoding Settings Deep Dive

CRF (Constant Rate Factor)

CRF controls quality vs. file size tradeoff. Lower = higher quality, larger file.

CRF RangeQuality LevelTypical Use
0LosslessArchival, intermediate
15-18Visually losslessHigh-quality archival
19-23High qualityGeneral use, streaming
24-28Medium qualityWeb, mobile
29+Low qualityPreviews, thumbnails

Note: CRF values aren't directly comparable between encoders. x265 CRF 22 ≈ x264 CRF 20.

Preset

Presets control encoding speed vs. compression efficiency.

PresetSpeedFile SizeUse When
ultrafastFastestLargestLive streaming
fastFastLargeQuick transcodes
mediumModerateModerateDefault
slowSlowSmallerQuality-focused
slowerVery slowEven smallerRecommended for quality
veryslowExtremely slowSmallestMaximum compression

Recommendation: Use slower for quality-focused encoding. The difference between slower and veryslow is minimal for significant time cost.

Tune Options

TuneBest For
filmLive-action with film grain
animationCartoons, anime, flat areas
grainPreserve film grain
stillimageSlideshow, static content
fastdecodePlayback on weak devices
# Animation tuning
ffmpeg -i input.mkv -c:v libx264 -preset slower -crf 20 -tune animation output.mkv

Container-Specific Considerations

MKV (Matroska)

Pros:

  • Supports virtually any codec
  • Multiple audio/subtitle tracks
  • Chapter markers
  • Variable frame rate support

Cons:

  • Less compatible with some devices/software
  • Some streaming services don't accept it

MP4

Pros:

  • Universal compatibility
  • Web-friendly
  • Hardware decoder support everywhere

Cons:

  • Limited subtitle format support
  • Stricter codec requirements
  • Constant frame rate expected

Converting MKV to MP4 for Editing Software

Some editing software requires constant frame rate MP4. Use this two-pass approach:

# Step 1: Initial remux with timescale adjustment
ffmpeg -i input.mkv -c copy -video_track_timescale 24000 intermediate.mp4

# Step 2: Fix timestamps
ffmpeg -i intermediate.mp4 -c copy \
  -bsf:v "setts=dts=1001*round(DTS/1001):pts=1001*round(PTS/1001)" output.mp4

Color Space & Color Management

Understanding Color Metadata

Videos store colors in YCbCr format with metadata specifying:

  • Color matrix: How to convert YCbCr to RGB (BT.709, BT.601)
  • Color range: Limited (16-235) vs. Full (0-255)
  • Chroma location: Where color samples are positioned

Common Issues

SymptomLikely Cause
Washed out colorsWrong color range (Limited treated as Full)
Crushed blacks/blown whitesWrong color range (Full treated as Limited)
Greenish/pinkish tintWrong color matrix
Colors look "off" after encodeMismatched color metadata

Preserving Color Information

# Explicitly preserve color metadata
ffmpeg -i input.mkv -c:v libx264 -preset slower -crf 20 \
  -colorspace bt709 -color_primaries bt709 -color_trc bt709 output.mkv

Hardsubbing (Burning In Subtitles)

Using FFmpeg

# Hardsub from external subtitle file
ffmpeg -i input.mkv -vf "subtitles=subs.ass" -c:v libx264 -preset slower -crf 20 output.mkv

# Hardsub from embedded subtitle track
ffmpeg -i input.mkv -vf "subtitles=input.mkv:si=0" -c:v libx264 -preset slower -crf 20 output.mkv

Using mpv (Better for Complex Subtitles)

mpv handles complex ASS subtitles (styling, positioning) more accurately:

mpv --no-config input.mkv -o output.mkv \
  --audio=no \
  --ovc=libx264 \
  --ovcopts=preset=slower,crf=20,bframes=8

What to Avoid

Tools

ToolProblem
HandbrakeUnpredictable settings, hides important options
Online convertersQuality loss, privacy concerns
"AI upscalers"Add fake detail, move further from source
Windows built-in toolsPoor quality, limited options

Practices

PracticeWhy It's Bad
Unnecessary sharpeningAdds artifacts, moves from source
Upscaling to higher resolutionDoesn't add real detail
Multiple reencodesQuality loss compounds
Using NVENC for qualityHardware encoders prioritize speed over quality
Frame rate interpolationAdds fake frames with artifacts

Recommended Tools

Essential

ToolPurpose
ffmpegSwiss army knife for video processing
MediaInfoInspect video properties and metadata
mpvSuperior media player, encoding support
MKVToolNixGUI for MKV muxing operations

Specialized

ToolPurpose
AegisubSubtitle editing
HandBrakeSimple transcoding (use with caution)
yt-dlpDownload online videos

Troubleshooting

Video Won't Play

  1. Check codec support on target device
  2. Try remuxing to different container
  3. Verify file isn't corrupted: ffmpeg -v error -i file.mkv -f null -

Colors Look Wrong After Encoding

  1. Compare color metadata: mediainfo input.mkv vs. mediainfo output.mkv
  2. Check color range (Limited vs. Full)
  3. Check color matrix (BT.709 vs. BT.601)
  4. Explicitly set color parameters in ffmpeg command

File Size Too Large

  1. Increase CRF (e.g., 20 → 23)
  2. Use slower preset for better compression
  3. Consider x265 for better efficiency
  4. Check if you're unnecessarily encoding (remux instead)

Encoding Takes Forever

  1. Use faster preset (but accept larger file)
  2. Check if hardware encoding is acceptable for your use case
  3. Ensure source isn't being decoded unnecessarily

Audio/Video Out of Sync

  1. Check source file for sync issues first
  2. Use -async 1 for audio sync correction
  3. Try remuxing instead of reencoding

Examples

Archive a Blu-ray Rip

ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 18 \
  -x265-params bframes=8 output.mkv

Prepare for YouTube Upload

ffmpeg -i input.mkv -c:a aac -b:a 384k -c:v libx264 -preset slower -crf 18 \
  -profile:v high -level 4.2 -pix_fmt yuv420p output.mp4

Quick Preview/Proxy

ffmpeg -i input.mkv -c:a aac -b:a 128k -c:v libx264 -preset fast -crf 28 \
  -vf scale=640:-2 output.mp4

Extract Audio Only

# Copy audio stream (no re-encoding)
ffmpeg -i input.mkv -vn -c:a copy output.mka

# Convert to MP3
ffmpeg -i input.mkv -vn -c:a libmp3lame -b:a 320k output.mp3

Trim Without Re-encoding

# Trim from 1:00 to 2:30
ffmpeg -i input.mkv -ss 00:01:00 -to 00:02:30 -c copy output.mkv

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.51%
按下载量换算181

Claude

28.3%
按下载量换算148

Cursor

19.56%
按下载量换算102

Gemini CLI

8.35%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills