What is FFmpeg

Jan 24, 2025

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:

ComponentDescription
ffmpegCommand-line tool for converting audio and video
ffprobeCommand-line tool for analyzing multimedia streams
ffplaySimple media player based on SDL
libavcodecLibrary containing encoders and decoders
libavformatLibrary for muxing and demuxing
libavfilterLibrary 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.avi

Extract 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.aac

Compress 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.mp4

Create GIF

Convert video clip to animated GIF:

ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1" output.gif

Why 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 ffmpeg

Verify the installation:

ffmpeg -version

Learn More

FFHub provides a collection of practical FFmpeg commands and recipes. Explore our FFmpeg Cookbook to find solutions for common media processing tasks.

FFHub

FFHub

What is FFmpeg | FFHub