ffmpeg

Automate video and audio processing with FFmpeg command-line guidance.

1|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/skinred78/neuro-db-2 --skill ffmpeg-skinred78
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ffmpeg
Source: https://github.com/skinred78/neuro-db-2/tree/main/.claude/skills/ffmpeg
Command: npx skills add https://github.com/skinred78/neuro-db-2 --skill ffmpeg-skinred78

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you automate video/audio encoding, conversion, filtering, streaming, and batch processing with FFmpeg.

Core Features & Use Cases

  • Format conversion: Convert between MP4, MKV, WebM, AVI, etc.
  • Quality-based encoding: Use CRF and presets for desired balance of speed and quality.
  • Batch processing: Apply operations to multiple files efficiently.
  • Media analysis: Extract metadata with ffprobe to guide processing.

Quick Start

Convert input.mp4 to output.mkv using H.264 video and AAC audio.

Frequently Asked Questions about ffmpeg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert video between different formats like MP4, MKV, and WebM?

Video format conversion with FFmpeg involves specifying input and output containers while selecting compatible codecs. FFmpeg automatically handles the encoding; you control quality through CRF values (0–51, lower is better) and presets (ultrafast to veryslow) to balance file size and speed. Common workflows convert MP4 to MKV or WebM by selecting the target container and codec pair.

What's the best way to batch process multiple media files with the same encoding settings?

Batch processing applies identical FFmpeg commands across multiple files using shell loops or scripting. Define your encoding parameters once—codec, CRF, bitrate mode, preset—then iterate over input files, outputting to a destination directory. This scales audio extraction, format conversion, and filtering across entire directories efficiently.

Can I extract audio from video files and convert it to different formats?

Audio extraction with FFmpeg isolates the audio stream from video containers using codec copy or re-encoding. You can extract to MP3, AAC, Opus, or FLAC by selecting the target codec and bitrate. FFmpeg handles container demuxing and audio codec conversion in a single pass.

How do I use ffprobe to analyze media metadata before processing?

ffprobe inspects video and audio files to extract metadata—duration, codec, bitrate, resolution, frame rate—without decoding. Query this metadata programmatically to guide conditional encoding: for example, skip re-encoding if source already matches target specifications, or adjust CRF based on detected bitrate.

What codecs and containers does FFmpeg support for streaming and storage?

FFmpeg supports H.264/AVC, H.265/HEVC, VP9, and AV1 video codecs with AAC, MP3, Opus, and FLAC audio across MP4, MKV, WebM, MOV, and AVI containers. Codec and container compatibility varies; H.264 + AAC in MP4 is widely compatible, while WebM requires VP9 or AV1 video with Opus audio.

Does FFmpeg handle video scaling, trimming, and filtering in a single command?

FFmpeg's filter graph chains multiple operations—scaling, trimming, deinterlacing, color correction—in sequence before encoding. Apply filters using the -filter or -vf flag to stack operations; this reduces file I/O and re-encoding overhead compared to separate passes and produces final output in one command.