Library:FFmpeg
| Developer | The FFmpeg developers |
|---|---|
| Uses | Library:Zlib, Library:Libvorbis, Library:Libopus (optional external libraries) |
| Platforms | any (portable C with assembly); avcodec-61.dll, libavcodec-61.dll (MinGW), libavcodec.so.61, libavcodec.61.dylib, or static |
| Versions | 4.0 to 8.0 verified here; 9.0 in development (libavcodec 63) |
| License | LGPL-2.1-or-later by default; GPL-2.0-or-later or GPL-3.0 when built with --enable-gpl / --enable-version3; nonfree builds are not redistributable |
| Website | https://ffmpeg.org |
| On this wiki | Facts · Code · Notes · Topics |
The multimedia framework (C, LGPL-2.1+ or GPL-2+/3 depending on the build) behind most video players, editors, browsers and game video playback: libavutil, libavcodec, libavformat, libavfilter, libswscale, libswresample (and libavdevice, libpostproc), shipped as avcodec-NN.dll / libavcodec.so.NN or linked statically. The library major numbers, the Lavc/Lavf ident strings and the configuration string identify and date a build.
Overview
FFmpeg is a collection of libraries and the ffmpeg, ffplay and ffprobe tools. Applications link the libraries: libavutil (helpers, pixel and sample formats, av_version_info), libavcodec (encoders and decoders), libavformat (demuxers, muxers, protocols), libavfilter, libswscale (pixel format conversion and scaling), libswresample (audio resampling), libavdevice and, in older releases, libpostproc. Unverified: games, engines, browsers, Electron apps, OBS, VLC and mpv carry it, as DLLs/shared objects or statically; the fork Libav (2011-2020) used the same library names with micro versions below 100.
Identification
From most to least useful (all from the FFmpeg source at the commit below):
- Version info string:
libavutil/version.cdefinesav_util_ffversion[] = "FFmpeg version " FFMPEG_VERSIONandav_version_info()returnsFFMPEG_VERSION. ffbuild/version.sh (n7.0) sets the version to the content of a VERSION file if present (release tarballs; the RELEASE file at tag n7.0 reads7.0), otherwise togit describe --tags --match N(theN-<commits>-g<hash>form) or, without that tag,git describe --tags --always(for a checkout of a release tag this isn7.0). The literal textFFmpeg versionfollowed by it sits in every build that contains libavutil. - Library idents:
LIBAVCODEC_IDENTis"Lavc"+ the dotted version (libavcodec/version.h), likewise"Lavf"(libavformat) and"Lavu"(libavutil); e.g.Lavc63.20.101. Encoders and muxers write them into output: the AAC encoder (aacenc.c), DPX and JPEG 2000 encoders, the FLAC muxer vendor string (flacenc.c), libavformat's framehash. A program that encodes carries them even when stripped. - Library major numbers in the DLL names: the shared library file name carries the major number of that library (
SLIBNAME=$(SLIBPREF)$(FULLNAME)$(SLIBSUF);avcodec-61.dllon Windows,libavcodec.so.61on Linux). The majors map to releases (verified from the version headers at the release tags): see the table. - Micro version >= 100:
libavutil/version.cassertsLIBAVUTIL_VERSION_MICRO >= 100("micro version starts at 100"). A version like58.29.100is FFmpeg,58.7.0is Libav. - Configuration string:
avutil_configuration()and the same function in every library returnFFMPEG_CONFIGURATION, the exact./configurecommand line (e.g.--enable-gpl --enable-libx264). Theffmpegbanner prints<name> version <ver> Copyright (c) 2000-<year> the FFmpeg developers,built with <CC_IDENT>,configuration: <string>and one line per library (fftools/opt_common.c). - License string:
avcodec_license()etc. return the build licence thatconfigureselects:LGPL version 2.1 or later(default),LGPL version 3 or later,GPL version 2 or later,GPL version 3 or laterornonfree and unredistributable. The binary containslibavcodec license: <text>(the prefix is skipped in the returned pointer). - Exports:
av_version_info,avutil_version,avutil_configuration,avutil_license,avcodec_version,avcodec_configuration,avcodec_license,avformat_version.avcodec_version()returnsLIBAVCODEC_VERSION_INT(major<<16 | minor<<8 | micro, fromAV_VERSION_INT). Other common exports are the public API functionsavformat_open_input(avformat.h line 2247 at n7.0),av_read_frame(line 2348),avcodec_find_decoder,avcodec_send_packet,avcodec_receive_frame(avcodec.h),sws_scale(swscale.h line 224) andswr_convert(swresample.h line 314).
Versions
Major numbers verified from the version headers at the release tags:
| Release | avutil | avcodec |
|---|---|---|
| 4.0 (tag n4.0) | 56 | 58 |
| 5.0 | 57 | 59 |
| 6.0 | 58 | 60 |
| 7.0 | 59 | 61 |
| 8.0 | 60 | 62 |
| master in 2026 (9.0 development) | 61 | 63 |
Master in 2026 also has avformat 63, avfilter 12, swscale 10, swresample 7, avdevice 63. avformat has the same major as avcodec at every release in the table (58, 59, 60, 61, 62 for 4.0 to 8.0; version_major.h of each tag). At n7.0 (commit 083443d67cb159ce469e5d902346b8d0c2cd1c93) the others are avfilter 10, swscale 8, swresample 5, avdevice 61, postproc 58; at n6.0 they are avfilter 9, swscale 7, swresample 4, avdevice 60, postproc 57; at n8.0 avfilter 11, swscale 9, swresample 6, avdevice 62 (postproc has no version_major.h entry there).
Where it appears
Ogg Vorbis files written by FFmpeg carry Lavf<ver> as the vendor string: Fact:Ogg/identification/Ogg files muxed by FFmpeg. Inside an FFmpeg binary you also find the fingerprints of Library:Libvorbis, Library:Libopus and Library:Libjpeg tables; see those pages.
Pitfalls
- A static
ffmpeg.exeholds many third-party libraries (x264, x265, libvpx, libaom, dav1d...) whose strings do not mean the host application uses them; read theconfiguration:string. - Distribution builds can rename the DLLs or use MinGW prefixes (
libavcodec-61.dll); the number is still the major version. - Micro versions differ between release branches and git builds (master has avcodec 63.20.101 but avformat 63.11.100).
Code & repositories
Source: https://github.com/FFmpeg/FFmpeg. Version files: libavutil/version.h, libavcodec/version.h, libavcodec/version_major.h. configure writes config.h and libavutil/ffversion.h.
- https://github.com/FFmpeg/FFmpeg @
b60ab6c9a4583cd4bbdc010b412d598945919da8· license: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later (declared by the contributor; GitHub's detector did not recognize COPYING.GPLv2)
FFmpeg source: version.h files per library, libavutil/version.c (av_version_info), configure (licence and configuration strings)
Tested on: source read, not run: read the source · checked 2026-10-18; last activity 2026-10-18
Evidence & references
Read from the repository at commit b60ab6c9a4583cd4bbdc010b412d598945919da8: libavutil/version.c, libavutil/version.h, libavcodec/version.h, libavcodec/version.c, libavcodec/aacenc.c, libavformat/flacenc.c, fftools/opt_common.c, configure (licence selection), and the version headers at tags n4.0 to n8.0.