FFmpeg is a powerful open-source multimedia framework that can decode, encode, transcode, mux, demux, stream, filter and play almost any media format. It is one of the most important tools in the audio and video processing field.
Core Components
FFmpeg consists of several core components:
| Component | Description |
|---|---|
| ffmpeg | Command-line tool for converting audio and video |
| ffprobe | Command-line tool for analyzing multimedia streams |
| ffplay | Simple media player based on SDL |
| libavcodec | Library containing encoders and decoders |
| libavformat | Library for muxing and demuxing |
| libavfilter | Library for filtering audio and video |
Common Use Cases
Format Conversion
Convert video from one format to another (see our complete format conversion guide for advanced options):
ffmpeg -i input.mp4 output.aviExtract Audio
Extract audio track from a video file (learn more in how to extract audio from video):
ffmpeg -i input.mp4 -vn -acodec copy output.aacCompress Video
Reduce video file size with re-encoding (for detailed techniques, read how to compress video with FFmpeg):
ffmpeg -i input.mp4 -crf 28 output.mp4Create GIF
Convert video clip to animated GIF:
ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1" output.gifWhy FFmpeg
- Universal Format Support: Handles virtually any audio/video format
- Cross-Platform: Works on Windows, macOS, Linux and more
- High Performance: Optimized for speed and efficiency
- Completely Free: Open source under LGPL/GPL license
- Extensive Documentation: Large community and rich resources
Getting Started
Install FFmpeg on your system:
# macOS
brew install ffmpeg
# Ubuntu/Debian
apt install ffmpeg
# Windows (using Chocolatey)
choco install ffmpegVerify the installation:
ffmpeg -versionLearn More
FFHub provides a collection of practical FFmpeg commands and recipes. Explore our FFmpeg Cookbook to find solutions for common media processing tasks.
Related Articles
- What is FFHub - Run FFmpeg commands in the cloud via a simple REST API, no server management needed
- How to Compress Video with FFmpeg - Practical guide to reducing video file size using CRF, presets, and codec selection
- How to Convert Video Format with FFmpeg - Complete guide to converting between MP4, WebM, MKV, MOV, and more

