TechnologyMultimedia framework

FFmpeg

Free and open-source suite of libraries and command-line tools for recording, converting, streaming and processing audio and video.

FFmpeg is a free and open-source software project for recording, converting, streaming and processing audio and video. It provides a set of libraries, including libavcodec for encoding and decoding, libavformat for reading and writing container formats and libavfilter for processing, along with command-line tools: ffmpeg for conversion, ffprobe for inspecting files and ffplay for playback. It supports a very wide range of codecs, containers and streaming protocols, from obscure legacy formats to widely used standards such as Opus and AV1.

Fabrice Bellard started FFmpeg in 2000, and Michael Niedermayer later led it for many years. Developers use the command-line tool to transcode files, extract audio, resize and trim video, combine streams and apply filters, often in scripts and automated pipelines. In 2011 a group of developers split off to form a fork called Libav after disputes over project governance; most distributions later returned to FFmpeg, which had absorbed much of Libav's work. The libraries are licensed under the LGPL, with some optional components under the GPL, and are written mainly in C with hand-optimized assembly.

FFmpeg is one of the most widely embedded pieces of open-source software. Media players such as VLC, streaming and editing tools such as OBS Studio and Kdenlive, web browsers and large video platforms rely on its libraries, often invisibly. Its breadth makes it a frequent subject of security research, since parsing untrusted media files is a common source of vulnerabilities, and it has been cited in debates about how volunteer-maintained infrastructure that large companies depend on should be funded.

Key points

  • FFmpeg converts, records, streams and filters audio and video across a very wide range of formats.
  • Its libavcodec and libavformat libraries are embedded in countless players, editors and services.
  • Fabrice Bellard started the project in 2000.
  • Parsing untrusted media makes security maintenance an ongoing concern for such widely used code.

Related entries

Glossary term

Audio Codec

AudioProgramming

Algorithm or software that encodes audio into a compressed or structured digital format and decodes it back for playback, such as MP3, AAC or FLAC.

Technology

Free and open-source cross-platform media player from VideoLAN that plays most audio and video formats, discs and network streams.

Technology

OBS Studio

FOSSAudio

Free and open-source software for video recording and live streaming that composes scenes from screens, cameras, audio and other sources.

Technology

Free and open-source non-linear video editor from the KDE community, offering a multitrack timeline, effects and proxy editing.

Technology

Opus

AudioFOSS

Open, royalty-free audio codec standardized by the IETF in 2012 that handles both speech and music with very low delay.

Technology

FLAC

AudioFOSS

Open, royalty-free audio format that compresses digital audio without losing any information, widely used for music archiving.

Technology

MP3

AudioIdeas and Culture

Lossy audio format developed largely at Germany's Fraunhofer institute that made music small enough to share and carry as computer files.

Glossary term

Command-Line Interface

ProgrammingFOSS

Text-based interface in which users interact with a computer by typing commands and reading text output rather than using graphical menus.

Featured in guides

Referenced by

Other entries that discuss or point to FFmpeg.