Libav Explained
Libav |
Developer: | Libav team |
Released: | [1] |
Discontinued: | yes |
Operating System: | Linux, BSD, macOS, Microsoft Windows, AmigaOS, MorphOS |
Platform: | IA-32, x86-64, PowerPC, ARM, DEC Alpha, SPARC, and MIPS[2] |
Programming Language: | C[3] |
Genre: | Multimedia framework |
License: | LGPL-2.1-or-later GPL-2.0-or-later[4] |
Libav is an abandoned[5] free software project, forked from FFmpeg in 2011, that contains libraries and programs for handling multimedia data.
History
Fork from FFmpeg
The Libav project was a fork of the FFmpeg project.[6] It was announced on March 13, 2011 by a group of FFmpeg developers.[7] [8] [9] The event was related to an issue in project management and different goals: FFmpeg supporters wanted to keep development velocity in favour of more features, while Libav supporters and developers wanted to improve the state of the code and take the time to design better APIs.[10] [11]
The maintainer of the FFmpeg packages for Debian[12] and Ubuntu,[13] being one of the group of developers who forked FFmpeg, switched the packages to this fork in 2011. Hence, most software on these systems that depended on FFmpeg automatically switched to Libav. On July 8, 2015, Debian announced it would return to FFmpeg[14] for various, technical reasons.[15] Several arguments justified this step. Firstly, FFmpeg had a better record of responding to vulnerabilities than Libav. Secondly, Mateusz "j00ru" Jurczyk, a security-oriented developer at Google, argued that all issues he found in FFmpeg were fixed in a timely manner, while Libav was still affected by various bugs.[16] Finally, FFmpeg supported a far wider variety of codecs and containers than Libav.
Libav is an abandoned software project, with Libav developers either returning to FFmpeg, moving to other multimedia projects like the AV1 video codec,[17] or leaving the multimedia field entirely.
Confusion
At the beginning of this fork, Libav and FFmpeg separately developed their own versions of the ffmpeg command. Libav then renamed their ffmpeg to avconv to distance themselves from the FFmpeg project. During the transition period, when a Libav user typed ffmpeg, there was a message telling the user that the ffmpeg command was deprecated and avconv has to be used instead. This confused some users into thinking that FFmpeg (the project) was dead.[18]
This message was removed upstream when ffmpeg was finally removed from the Libav sources. In June 2012, on Ubuntu 12.04, the message was re-worded, but that new "deprecated" message caused even more user confusion. Starting with Ubuntu 15.04 "Vivid", FFmpeg's ffmpeg is back in the repositories again.
To further complicate matters, Libav chose a name that was used by FFmpeg to refer to its libraries (libavcodec, libavformat, etc.). For example, the libav-user mailing list, for questions and discussions about using the FFmpeg libraries, is unrelated to the Libav project.[19] [20]
Software using Libav instead of FFmpeg
Debian followed Libav when it was announced, and announced it would return to FFmpeg for Debian Stretch (9.0).[21]
MPlayer2, a defunct fork of MPlayer, used Libav exclusively, but could be used with GStreamer with its public API. The MPV media player no longer supports Libav due to missing API changes.[22]
Legal aspects
Codecs
Libav contains more than 100 codecs.[23] Many codecs that compress information have been claimed by patent holders.[24] Such claims may be enforceable in countries like the United States which have implemented software patents, but are considered unenforceable or void in countries that have not implemented software patents.
Logo
The Libav logo uses a zigzag pattern that references how MPEG video codecs handle entropy encoding.[25] It was previously the logo of the FFmpeg project until Libav was forked from it. Following the fork, in 2011 one of the Libav developers Måns Rullgård claimed copyright over the logo and requested FFmpeg cease and desist from using it.[26] FFmpeg subsequently altered their logo into a 3D version.[27]
Google Summer of Code participation
Libav participated in the Google Summer of Code program in 2011 and 2012.[28]
With participation in the Google Summer of Code, Libav has had many new features and improvements developed, including a WMVP/WVP2 decoder, hardware accelerated H.264 decoding on Android, and G.723.1 codec support.
Technical details
Components
Libav primarily consists of libavcodec, which is an audio/video codec library used by several other projects, libavformat, which is an audio/video container muxing and demuxing library, and avconv, which is a multimedia manipulation tool similar to FFmpeg's ffmpeg or Gstreamer gst-launch-1.0 command.
The command line-programs:
- avconv : A video and audio converter that can also grab from a live audio/video source.
avserver : A streaming server for both audio and video.
avplay : A very simple and portable media player using the Libav libraries and the SDL library.
avprobe : Gathers information from multimedia streams and prints it in human- and machine-readable fashion.The libraries:
libavcodec : A library containing all the Libav audio/video encoders and decoders.
libavfilter : The substitute for vhook which allows the video/audio to be modified or examined between the decoder and the encoder.
libavformat : A library containing demuxers and muxers for audio and video container formats.
libavresample : A library containing audio resampling routines.
libavutil : A helper library containing routines common to different parts of Libav.
This library includes Adler-32, CRC, MD5, SHA-1, LZO decompressor, Base64 encoder/decoder, DES encrypter/decrypter, RC4 encrypter/decrypter and AES encrypter/decrypter.
- libswscale : A library containing video image scaling and colorspace/pixelformat conversion routines.
Contained codecs
Numerous free and open-source implementations of existing algorithms for the (usually lossy) compression and decompression of audio or video data, called codecs, are available. Please note that an algorithm can be subject to patent law in some jurisdictions. Here are lists of the ones contained in the libav library:
Video codecs
Libav includes video decoders and/or encoders for the following formats:[29]
- Adobe Flash Player related video codecs: Screen video, Screen video 2, Sorenson 3 Codec, VP6 and Flash Video (FLV)
- Asus v1
- Asus v2
- AVS (decoding only)
- CamStudio (decoding only)
- Cinepak (decoding only)
- Creative YUV (CYUV, decoding only)
- Dirac (via libschroedinger)
- DNxHD
- Duck TrueMotion v1 (decoding only)
- Duck TrueMotion v2 (decoding only)
- Flash Screen Video
- FFV1
- ITU-T video standards: H.261, H.262/MPEG-2 Part 2, H.263 and H.264/MPEG-4 AVC
- H.263
- H.264/MPEG-4 AVC (native decoder, encoding through x264)
- H.265/HEVC since 2014-02-12[30] [31]
- Huffyuv
- id Software RoQ Video
- Intel Indeo (decoding only)
- ISO/IEC/ITU-T JPEG image standards: JPEG, JPEG-LS and JPEG 2000
- Lagarith (decoding only)
- LOCO (decoding only)
- DVD Forum standards related / Dolby audio codecs: MLP (a.k.a. TrueHD) and AC-3
- Mimic (decoding only)
- MJPEG
- MPEG-1
- MPEG-2/H.262
- ISO/IEC MPEG video standards: MPEG-1 Part 2, H.262/MPEG-2 Part 2, MPEG-4 Part 2 and H.264/MPEG-4 AVC
- MPEG-4 Part 2 (the format used for example by the popular DivX and Xvid codecs)
- On2 VP8 (native decoder, encoding through libvpx)
- On2: Duck TrueMotion 1, Duck TrueMotion 2, VP3, VP5, VP6 and VP8
- Apple ProRes
- Apple Computer QuickDraw (decoding only)
- QuickTime related video codecs: Cinepak, Motion JPEG, ProRes, Sorenson 3 Codec, Animation codec (RLE), Apple Video (RPZA), Graphics Codec (SMC)
- RAD Game Tools: Smacker video and Bink video
- RenderWare: TXD[32]
- RealVideo RV10 and RV20
- RealVideo RV30 and RV40 (decoding only)
- RealPlayer related video codecs: RealVideo 1, 2, 3 and 4
- VC-1 (decoding only)
- Smacker video (decoding only)
- Sorenson SVQ1
- Sorenson SVQ3 (decoding only)
- Theora (native decoder, encoding through libtheora)
- Sierra VMD Video (decoding only)
- VMware VMnc (decoding only)
- Westwood Studios VQA (decoding only)
- Windows Media Player related video codecs: Microsoft RLE, Microsoft Video 1, Cinepak, Indeo 2, 3 and 5, Motion JPEG, Microsoft MPEG-4 v1, v2 and v3, WMV1, WMV2 and WMV3 (a.k.a. VC-1)
- SMPTE video standards: VC-1 (a.k.a. WMV3), VC-2 (a.k.a. Dirac), VC-3 (a.k.a. AVID DNxHD) and DPX image
- Wing Commander/Xan Video (decoding only)
Audio codecs
Libav includes decoders and encoders for the following formats:[33]
- 8SVX (decoding only)
- Adobe Flash Player related audio codecs: Adobe SWF ADPCM and Nellymoser Asao
- AAC
- AC-3
- 3GPP vocoder standards: AMR-NB, AMR-WB (a.k.a. G.722.2)
- ITU-T vocoder standards: G.711 μ-law, G.711 A-law, G.721 (a.k.a. G.726 32k), G.722, G.722.2 (a.k.a. AMR-WB), G.723 (a.k.a. G.726 24k and 40k), G.723.1, G.726, G.729 and G.729D
- Apple Lossless
- ATRAC3 (decoding only)
- Cook Codec (decoding only)
- DTS (encoder is highly experimental)
- EA ADPCM (decoding only)
- E-AC-3
- FLAC (24/32 bit support for decoding only[34])
- GSM 06.10 (native decoder, encoding through libgsm)
- GSM related voice codecs: Full Rate
- Intel Music Coder (decoding only)
- Meridian Lossless Packing / Dolby TrueHD (decoding only)
- Monkey's Audio (decoding only)
- MP2
- MP3 (native decoder, encoding through LAME)
- ISO/IEC MPEG audio standards: MP1, MP2, MP3, AAC, HE-AAC and MPEG-4 ALS
- Nellymoser Asao Codec in Flash
Supported file formats
Additionally to the aforementioned codecs, Libav also supports several file formats (file formats designed to contain audio and/or video data and subtitles, are called "containers", but that is just a special denomination.):
Supported protocols
Support for several communications protocols is also contained in Libav. Here is a list:
- IETF standards: TCP, UDP, Gopher, HTTP, RTP, RTSP and SDP
- Apple related protocols: HTTP Live Streaming
- RealMedia related protocols: RealMedia RTSP/RDT
- Adobe related protocols: RTMP, RTMPT (via librtmp), RTMPE (via librtmp), RTMPTE (via librtmp) and RTMPS (via librtmp)
- Microsoft related protocols: MMS over TCP and MMS over HTTP
See also
Notes and References
- Web site: Libav Home/News Page . libav.org . 2012-05-09 . 2018-09-01 . 2022-06-22 . https://web.archive.org/web/20220622163825/https://libav.org/ . dead .
- Web site: FATE . libav.org . 2012-05-17 . 2018-09-02 . https://web.archive.org/web/20180902011811/https://fate.libav.org/ . dead .
- Web site: Developer Documentation . libav.org . 2011-12-08 . 2012-05-17.
- Web site: Libav License and Legal Considerations . libav.org . 2012-01-04 . 2013-07-23 . https://web.archive.org/web/20130723054244/http://libav.org/legal.html . dead .
- Web site: Kunhya . Kieran . 2020-04-16 . [libav-devel] What is the status of this project? ]. dead . https://web.archive.org/web/20200812182017/https://lists.libav.org/pipermail/libav-devel/2020-April/086589.html . 2020-08-12 . 2020-12-20.
- Web site: About Libav. bot: unknown. https://web.archive.org/web/20141205021526/http://www.libav.org/about.html. 2014-12-05. 2014-11-30. libav.org. ... which convinced us to fork "properly" under the name Libav with its own website, mailing lists, IRC channel and repositories, thus completely separating from the old FFmpeg project.
- Web site: Libav project site . libav.org . 2012-01-04 . 2022-06-22 . https://web.archive.org/web/20220622163825/https://libav.org/ . dead .
- Web site: Project renamed to Libav . gmane.org . 2011-03-14 . 2012-01-04 . Ronald S. Bultje . https://web.archive.org/web/20161107163133/http://article.gmane.org/gmane.comp.video.ffmpeg.devel/129579 . 2016-11-07 . dead .
- Web site: A group of FFmpeg developers just forked as Libav . Phoronix . phoronix.com . 2011-03-14 . 2012-01-04.
- Web site: 2011-03-30. What happened to FFmpeg. bot: unknown. https://web.archive.org/web/20120307113846/http://codecs.multimedia.cx/?p=339. 2012-03-07. 2012-05-19. multimedia.cx.
- Web site: FFMpeg turmoil . 2011-01-19 . 2012-01-04 . lwn.net.
- Web site: 2011-05-01. transition: Libav 0.7. bot: unknown. https://web.archive.org/web/20150211103811/https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624807. 2015-02-11. 2012-01-04. debian.org.
- Web site: Ubuntu Release Management: Transition: "Libav" . 2012-01-04 . canonical.com . dead . https://web.archive.org/web/20120107080821/http://people.canonical.com/~ubuntu-archive/transitions/libav.html . 2012-01-07 .
- Web site: libav and FFmpeg: switch over . 2015-08-02 . 2015-08-02 . debian.org.
- Web site: 2015-08-02. Debate/libav-provider/ffmpeg - Debian Wiki. 2015-08-02. debian.org.
- Web site: FFmpeg and a thousand fixes. 10 January 2014. bot: unknown. https://web.archive.org/web/20210915021034/https://j00ru.vexillium.org/2014/01/ffmpeg-and-the-tale-of-a-thousand-fixes/. 2021-09-15. 2021-09-15.
- Web site: Luca Barbato's (Libav developer) blog. 9 April 2019 .
- Web site: 2012-02-23 . Bug #939863 “Warning message from ffmpeg program needs update” : Bugs : libav package : Ubuntu . 2024-07-02 . Launchpad . en.
- Web site: What are the differences and similarities between ffmpeg, libav, and avconv?. February 28, 2012. 14 August 2015.
- Web site: 30 June 2012 . The FFmpeg/Libav situation . live . https://web.archive.org/web/20120701210503/http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html . 1 July 2012 . 14 August 2015.
- Web site: July 8, 2015. Debian to switch back to ffmpeg. bot: unknown. https://web.archive.org/web/20150726221848/http://lwn.net/Articles/650495/. 2015-07-26. 14 August 2015.
- Web site: April 20, 2018. mpv - README - FFmpeg vs. Libav. GitHub. bot: unknown. https://web.archive.org/web/20210915021031/https://github.com/mpv-player/mpv/blob/7af6cabcba434dfe47619866526bd3c739789d32/README.md#ffmpeg-vs-libav. September 15, 2021. June 5, 2018.
- Web site: Supported File Formats and Codecs . libav.org . 2014-05-04.
- Web site: Libav License and Legal Considerations . libav.org . 2014-05-04.
- http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/44638/ FFmpeg logo
- http://ffmpeg.org/threat1.png Legal Threat
- Web site: 2011-05-31 . FFmpeg License and Legal Considerations . dead . https://web.archive.org/web/20120103190924/http://ffmpeg.org/legal.html . 2012-01-03 . ffmpeg.org.
- Web site: FFmpeg/Libav Summer of Code . multimedia.cx . 2012-05-19 . https://web.archive.org/web/20111117193550/http://wiki.multimedia.cx/index.php?title=FFmpeg_%2F_Libav_Summer_Of_Code . 2011-11-17 . dead .
- Web site: General Documentation. bot: unknown. https://web.archive.org/web/20120527101743/http://libav.org/general.html#SEC6. 2012-05-27. 2012-05-19. libav.org.
- Web site: Add libx265 encoder . Github.com . 19 January 2023.
- Web site: OpenHEVC/Libav · GitHub . . https://archive.today/20130825201843/https://github.com/OpenHEVC/libav . 25 August 2013 . dead.
- Web site: FFmpeg development mailing list . mplayerhq.hu . 7 May 2007 . 24 December 2010 . ivo . dead . https://archive.today/20070811203618/http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-May/028760.html . 11 August 2007 .
- Web site: General Documentation . 2012-05-19 . libav.org . 2012-05-27 . https://web.archive.org/web/20120527101743/http://libav.org/general.html#SEC7 . dead .
- Web site: #210 (24bit flac encoding) - FFmpeg . 2012-02-03 . Ffmpeg.org.
- Web site: Changelog . mplayerhq.hu . 17 April 2007 . 26 April 2007 . banan .
- Web site: vitor . FFmpeg development mailing list . mplayerhq.hu . 13 April 2008 . 14 April 2008 .
- Web site: vitor . FFmpeg development mailing list . mplayerhq.hu . 30 March 2008 . 30 March 2008 .
- Web site: faust3 . FFmpeg development mailing list . mplayerhq.hu . 21 March 2008 . 21 March 2008 . dead . https://web.archive.org/web/20080425024126/http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2008-March/012799.html . 25 April 2008 .
- Web site: benoit . FFmpeg development mailing list . mplayerhq.hu . 14 April 2008 . 14 April 2008 .
- Web site: FFmpeg development mailing list . mplayerhq.hu . 18 March 2008 . 18 March 2008 . ramiro . dead . https://web.archive.org/web/20080817072304/http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2008-March/012708.html . 17 August 2008 .
- Web site: FFmpeg development mailing list . mplayerhq.hu . 8 June 2008 . 8 June 2008 . banan . dead . https://web.archive.org/web/20090114195646/http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2008-June/014417.html . 14 January 2009 .
- Web site: Page showing Libav and FFmpeg snapshots VLC uses (people can compile VLC with either FFmpeg or Libav) . 2018-04-06 . videolan.org.