Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ffmpeg

БесплатноБез исполняемых скриптовНе проверен

Video and audio processing using FFmpeg inside a secure Docker container

kubiyabotот kubiyabot★ 19 звёзд на GitHub

Об этом скилле

FFmpeg Skill

Process video and audio files using FFmpeg running inside a Docker container. Convert formats, extract audio, resize videos, create thumbnails, compress media, and more - all without installing FFmpeg locally.

Overview

This skill provides access to FFmpeg's powerful media processing capabilities through a containerized runtime. All processing happens inside an isolated Docker container with resource limits and no network access, ensuring security while maintaining full FFmpeg functionality.

When to Use This Skill

Use this skill when you need to:

  • Convert video/audio between formats (MP4, WebM, AVI, MKV, MP3, WAV, etc.)
  • Extract audio from video files
  • Resize or scale videos to different resolutions
  • Compress videos to reduce file size
  • Create thumbnails from videos
  • Trim or cut video clips
  • Convert videos to animated GIFs
  • Merge multiple video files
  • Add or extract subtitles
  • Adjust video bitrate and quality

Prerequisites

Docker

FFmpeg runs inside a Docker container, so Docker must be installed:

# macOS (using Homebrew)
brew install --cask docker

# Or download from: https://www.docker.com/products/docker-desktop

# Linux (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install docker.io

# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker

Verify Docker Installation

docker --version
docker ps  # Should list running containers

Configuration

Add to your .skill-engine.toml:

[skills.ffmpeg]
source = "docker:linuxserver/ffmpeg:latest"
runtime = "docker"
description = "FFmpeg video/audio processing"

[skills.ffmpeg.docker]
image = "linuxserver/ffmpeg:latest"
entrypoint = "ffmpeg"
volumes = ["${PWD}:/workdir"]
working_dir = "/workdir"
memory = "2g"
cpus = "4"
network = "none"
rm = true

Configuration Explained

  • image: linuxserver/ffmpeg:latest - Official FFmpeg Docker image (~200MB)
  • entrypoint: ffmpeg - Directly runs FFmpeg command
  • volumes: ${PWD}:/workdir - Mounts current directory as /workdir in container
  • working_dir: /workdir - Sets container working directory
  • memory: 2g - Limits container to 2GB RAM
  • cpus: 4 - Limits to 4 CPU cores
  • network: none - Disables network access (processes local files only)
  • rm: true - Automatically removes container after execution

Usage

FFmpeg skill uses pass-through syntax - all arguments after -- are passed directly to FFmpeg:

skill run ffmpeg -- [ffmpeg arguments]

All file paths are relative to your current directory, which is mounted as /workdir in the container.

Common Operations

Format Conversion

# MP4 to WebM
skill run ffmpeg -- -i input.mp4 output.webm

# AVI to MP4
skill run ffmpeg -- -i input.avi output.mp4

# MOV to MKV
skill run ffmpeg -- -i input.mov output.mkv

# Video to MP3 audio only
skill run ffmpeg -- -i video.mp4 -vn -acodec mp3 audio.mp3

Audio Operations

# Extract audio from video
skill run ffmpeg -- -i video.mp4 -vn audio.mp3

# Convert audio format
skill run ffmpeg -- -i audio.wav audio.mp3

# Adjust audio bitrate
skill run ffmpeg -- -i input.mp3 -b:a 192k output.mp3

# Merge audio and video
skill run ffmpeg -- -i video.mp4 -i audio.mp3 -c copy output.mp4

Video Resizing

# Resize to 1280x720 (720p)
skill run ffmpeg -- -i input.mp4 -vf scale=1280:720 output.mp4

# Resize to 1920x1080 (1080p)
skill run ffmpeg -- -i input.mp4 -vf scale=1920:1080 output.mp4

# Resize width to 640, maintain aspect ratio
skill run ffmpeg -- -i input.mp4 -vf scale=640:-1 output.mp4

# Resize height to 480, maintain aspect ratio
skill run ffmpeg -- -i input.mp4 -vf scale=-1:480 output.mp4

Video Compression

# Compress with CRF (Constant Rate Factor) - lower is higher quality
# CRF range: 0 (lossless) to 51 (worst), 23 is default, 18 is visually lossless
skill run ffmpeg -- -i input.mp4 -crf 28 output.mp4

# Compress with target bitrate
skill run ffmpeg -- -i input.mp4 -b:v 1M output.mp4

# Two-pass encoding for better quality at target size
skill run ffmpeg -- -i input.mp4 -b:v 1M -pass 1 -f mp4 /dev/null
skill run ffmpeg -- -i input.mp4 -b:v 1M -pass 2 output.mp4

Thumbnails & Images

# Extract single frame at 5 seconds
skill run ffmpeg -- -i video.mp4 -ss 00:00:05 -vframes 1 thumb.jpg

# Extract frame at specific time
skill run ffmpeg -- -i video.mp4 -ss 00:01:30 -vframes 1 frame.png

# Create thumbnail at 1/4 size
skill run ffmpeg -- -i video.mp4 -ss 00:00:05 -vf scale=iw/4:ih/4 -vframes 1 thumb.jpg

# Generate thumbnail every 10 seconds
skill run ffmpeg -- -i video.mp4 -vf fps=1/10 thumb%04d.jpg

GIF Creation

# Convert video to GIF
skill run ffmpeg -- -i input.mp4 output.gif

# High quality GIF with palette optimization
skill run ffmpeg -- -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif

# Simple GI
Полный SKILL.md на GitHub

Установить ffmpeg в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdmanifest.toml

FAQ

Что делает скилл ffmpeg?

Video and audio processing using FFmpeg inside a secure Docker container

Как установить скилл ffmpeg?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ffmpeg запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ffmpeg с