← 返回 Skills 市场
liudu2326526

Donson Intelligent Editing

作者 DonsonAI · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2492
总下载
3
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install ffmpeg-master
功能描述
Use when performing video/audio processing tasks including transcoding, filtering, streaming, metadata manipulation, or complex filtergraph operations with FFmpeg.
使用说明 (SKILL.md)

FFmpeg Master

Comprehensive guide for professional video and audio manipulation using FFmpeg and FFprobe.

Core Concepts

FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play almost anything that humans and machines have created. It is a command-line tool that processes streams through a complex pipeline of demuxers, decoders, filters, encoders, and muxers.

Common Operations

# Basic Transcoding (MP4 to MKV)
ffmpeg -i input.mp4 output.mkv

# Change Video Codec (to H.265/HEVC)
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a copy output.mp4

# Extract Audio (No Video)
ffmpeg -i input.mp4 -vn -c:a libmp3lame -q:a 2 output.mp3

# Resize/Scale Video
ffmpeg -i input.mp4 -vf "scale=1280:720" output.mp4

# Cut Video (Start at 10s, Duration 30s)
ffmpeg -i input.mp4 -ss 00:00:10 -t 00:00:30 -c copy output.mp4

# Fast Precise Cut (Re-encoding only the cut points is complex, so standard re-encoding is safer for precision)
ffmpeg -ss 00:00:10 -i input.mp4 -to 00:00:40 -c:v libx264 -crf 23 -c:a aac output.mp4

# Concatenate Files (using demuxer)
# Create filelist.txt: file 'part1.mp4' \
 file 'part2.mp4'
ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4

# Speed Up/Slow Down Video (2x speed)
ffmpeg -i input.mp4 -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" output.mp4

Processing Categories & When to Use

Codecs & Quality

Option Use When
-c:v libx264 Standard H.264 encoding (best compatibility)
-c:v libx265 H.265/HEVC encoding (best compression/quality)
-crf [0-51] Constant Rate Factor (lower is higher quality, 18-28 recommended)
-preset Encoding speed vs compression (ultrafast, medium, veryslow)
-c:a copy Pass-through audio without re-encoding (saves time/quality)

Filters & Manipulation

Filter Use When
scale Changing resolution (e.g., scale=1920:-1 for 1080p width)
crop Removing edges (e.g., crop=w:h:x:y)
transpose Rotating video (1=90deg CW, 2=90deg CCW)
fps Changing frame rate (e.g., fps=30)
drawtext Adding text overlays/watermarks
overlay Picture-in-picture or adding image watermarks
fade Adding fade-in/out effects (e.g., fade=in:0:30 for first 30 frames)
volume Adjusting audio levels (e.g., volume=1.5 for 150% volume)
setpts Changing video speed (e.g., setpts=0.5*PTS for double speed)
atempo Changing audio speed without pitch shift (0.5 to 2.0)

Inspection & Metadata

Tool/Option Use When
ffprobe -v error -show_format -show_streams Getting detailed technical info of a file
-metadata title="Name" Setting global metadata tags
-map Selecting specific streams (e.g., -map 0:v:0 -map 0:a:1)

Advanced: Complex Filtergraphs

Use filter_complex when you need to process multiple inputs or create non-linear filter chains.

# Example: Adding a watermark at the bottom right
ffmpeg -i input.mp4 -i watermark.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" output.mp4

# Example: Vertical Stack (2 videos)
ffmpeg -i top.mp4 -i bottom.mp4 -filter_complex "vstack=inputs=2" output.mp4

# Example: Side-by-Side (2 videos)
ffmpeg -i left.mp4 -i right.mp4 -filter_complex "hstack=inputs=2" output.mp4

# Example: Grid (4 videos 2x2)
ffmpeg -i v1.mp4 -i v2.mp4 -i v3.mp4 -i v4.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[top];[2:v][3:v]hstack=inputs=2[bottom];[top][bottom]vstack=inputs=2" output.mp4

# Example: Fade Transition (Simple crossfade between two clips)
# Requires manual offset calculation, using xfade is better
ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex "xfade=transition=fade:duration=1:offset=9" output.mp4

Hardware Acceleration

Platform Codec Command
NVIDIA (NVENC) H.264 -c:v h264_nvenc
Intel (QSV) H.264 -c:v h264_qsv
Apple (VideoToolbox) H.265 -c:v hevc_videotoolbox

Constraints & Error Handling

  • Stream Mapping: Always use -map for complex files to ensure you get the right audio/subtitle tracks.
  • Seeking: Put -ss before -i for fast seeking (input seeking), or after -i for accurate seeking (output seeking).
  • Format Support: Ensure the output container (extension) supports the codecs you've chosen.
安全使用建议
This skill is a coherent FFmpeg command guide and does not itself install software or request secrets. Before using: ensure ffmpeg/ffprobe are installed on the host; review any generated shell commands before running them (they can overwrite files or run heavy CPU/GPU work); be cautious with hardware-acceleration flags (they assume drivers are present); if you do not want the model to autonomously run or generate executable commands, consider disabling model invocation or requiring explicit user confirmation for command execution.
功能分析
Type: OpenClaw Skill Name: ffmpeg-master Version: 1.0.0 The skill bundle provides a comprehensive guide for using FFmpeg and FFprobe for video and audio processing. All commands and instructions are standard operations for multimedia manipulation, focusing on local file inputs and outputs. There is no evidence of prompt injection attempts against the AI agent, malicious execution, data exfiltration, persistence mechanisms, or obfuscation. The content is clearly aligned with the stated purpose of a video/audio processing skill.
能力评估
Purpose & Capability
Name, description, triggers and the content of SKILL.md all focus on FFmpeg/FFprobe usage (transcoding, filters, hardware accel, metadata). The skill does not request unrelated binaries, credentials, or system access.
Instruction Scope
The SKILL.md provides concrete ffmpeg/ffprobe command examples and recommends producing shell commands. This is appropriate for a CLI helper, but it means the agent will generate commands that—if executed—can read/write files and consume CPU/GPU. The instructions do not ask the agent to read unrelated system files or exfiltrate data.
Install Mechanism
No install spec is present (instruction-only). No downloads or archives are requested, so nothing is written to disk by an installer.
Credentials
The skill declares no required environment variables, credentials, or config paths. Hardware-acceleration flags are suggested but do not require secrets—this is proportionate to the purpose.
Persistence & Privilege
The skill does not set always:true. It also does not declare disable-model-invocation, so model invocation may be allowed by the platform defaults; that is normal for a helper skill but worth noting if you want to prevent autonomous execution of commands.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ffmpeg-master
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ffmpeg-master 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Comprehensive FFmpeg and FFprobe skill for advanced video/audio processing tasks. - Covers common FFmpeg operations: transcoding, codec conversion, extraction, cutting, concat, speed change, and more. - Detailed tables for codecs, filters, metadata, and inspection commands. - Advanced filtergraph usage with real-world examples (watermark, stacking, transitions). - Includes hardware acceleration options for NVIDIA, Intel, and Apple. - Provides best practices for stream mapping, seeking modes, and container/codec compatibility.
元数据
Slug ffmpeg-master
版本 1.0.0
许可证
累计安装 8
当前安装数 6
历史版本数 1
常见问题

Donson Intelligent Editing 是什么?

Use when performing video/audio processing tasks including transcoding, filtering, streaming, metadata manipulation, or complex filtergraph operations with FFmpeg. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2492 次。

如何安装 Donson Intelligent Editing?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ffmpeg-master」即可一键安装,无需额外配置。

Donson Intelligent Editing 是免费的吗?

是的,Donson Intelligent Editing 完全免费(开源免费),可自由下载、安装和使用。

Donson Intelligent Editing 支持哪些平台?

Donson Intelligent Editing 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Donson Intelligent Editing?

由 DonsonAI(@liudu2326526)开发并维护,当前版本 v1.0.0。

💬 留言讨论