A complete, cross-platform solution to record, convert and stream audio and video
open sourceLGPL-2.1-or-laterself-hostablefree
FFmpeg is the leading open source multimedia framework: it decodes, encodes, transcodes, muxes, demuxes, streams, filters and plays almost any audio and video format, from obscure old ones to the newest codecs. It ships the ffmpeg command-line converter, the ffplay player and the ffprobe stream analyzer, and the libraries behind them (libavcodec, libavformat, libavfilter, libavdevice, libswscale, libswresample, libavutil), which many other media applications are built on. It is licensed under the LGPL 2.1 or later, with optional parts under the GPL, and the project distributes source code only, pointing to third-party builds for Linux, Windows and macOS.
Ways to install
Package managers
Problems it solves
- convert a MOV from my phone to an MP4 that plays everywhere
- transcode uploaded videos to H.264 or AV1 at several resolutions on my server
- pull the audio track out of a video file as an MP3
- cut a clip out of a long recording without re-encoding the whole file
- find out which codec, bitrate and resolution a media file uses from a script
- turn a folder of images into a timelapse video
- stream a webcam or screen recording to an RTMP or HLS endpoint
- burn subtitles into a video or change the container without losing quality
- resample, remix or normalise audio files in a batch job
- decode and encode audio and video inside my own application with a C library
- grab frames from a video as thumbnails at set intervals
- play a weird old video format nothing else will open
Features
- ffmpeg: convert multimedia files between formats
- ffplay: simple media player based on SDL and the FFmpeg libraries
- ffprobe: multimedia stream analyzer
- libavcodec: audio and video decoders and encoders
- libavformat: muxers and demuxers for container formats
- libavfilter: media filters
- libavdevice: capture and output devices such as Video4Linux2 and ALSA
- libswscale: image scaling and colour space conversion
- libswresample: audio resampling, rematrixing and sample format conversion
- decode, encode, transcode, mux, demux, stream, filter and play
View 1 more
- FATE automated testing across platforms and architectures
Limitations
- Not available under a proprietary or commercial licence: FFmpeg is LGPL-2.1-or-later only, with optional GPL parts, not even in exchange for payment3
- No official binaries: the FFmpeg project provides source code only and links to third-party builds4
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what FFmpeg does.