FFmpeg

From Wikipedia, the free encyclopedia
Jump to: navigation, search
FFmpeg
Ffmpeg new logo.png
FFmpeg.png
FFmpeg running on Microsoft Windows
Developer(s) FFmpeg team
Initial release December 20, 2000 (2000-12-20) [1]
Stable release 1.2.1 (May 10, 2013; 6 days ago (2013-05-10)) [±]
Preview release Git [±]
Development status Active
Written in C[2]
Operating system Cross-platform[3]
Platform Multi-platform
Type Multimedia framework
License GNU LGPL 2.1+
GNU GPL 2+
Unredistributable if compiled as such[4]
Website ffmpeg.org

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files. FFmpeg is published under the GNU Lesser General Public License 2.1+ or GNU General Public License 2+ (depending on which options are enabled).[5]

Contents

History [edit]

The project was started by Fabrice Bellard[5] (using the pseudonym "Gerard Lantau"), and has been maintained by Michael Niedermayer since 2004. Many FFmpeg developers are also part of the MPlayer project. The name of the project comes from the MPEG video standards group, together with "FF" for "fast forward".[6] The logo uses a zigzag pattern that shows how MPEG video codecs handle entropy encoding.

FFmpeg is developed under GNU/Linux, but it can be compiled under most operating systems, including Mac OS X, Microsoft Windows, AmigaOS and its heir MorphOS. Most computing platforms and microprocessor instruction set architectures are also supported, like x86 (IA-32 and x86-64), PPC (PowerPC), ARM, DEC Alpha, SPARC, and MIPS.[7]

FFmpeg version 0.5 appeared after a long time without formal releases. FFmpeg developers still always recommend using the latest neutral build from their source code Git version control system.

There are two video codecs and one video container invented in the FFmpeg project during its development. The two video codecs are the lossless "FFV1", and the lossless and lossy Snow codec, the development of which has stalled, while its bitstream format hasn't been finalized yet, making it experimental for now (February 2011), and the multimedia container is "NUT" which is also not being actively developed anymore, but is still maintained.

On June 17, 2010, with version 0.6 FFmpeg also supports WebM and VP8.[8]

On July 23, 2010 Jason Garrett-Glaser, Ronald Bultje, and David Conrad of the FFmpeg Team announced the ffvp8 decoder. Through testing they determined that ffvp8 was faster than Google's own libvpx decoder.[9][10]

On March 13, 2011 a group of FFmpeg developers decided to fork the project under the name "Libav".[11][12][13] The event seems related to a recent issue in project management.[14][15] Since then, the maintainer of FFmpeg packages for Debian[16] and Ubuntu[17] operating systems, being one of the group of developers who forked FFmpeg, has switched them to the fork.

Components [edit]

The project is made of several components:

  • ffmpeg is a command-line tool to convert one video file format to another. It can also grab and encode in real-time from a TV card.
  • ffserver is an HTTP and RTSP multimedia streaming server for live broadcasts. It can also time shift live broadcast.
  • ffplay is a simple media player based on SDL and on the FFmpeg libraries.
  • ffprobe is a command-line tool to show media information.
  • libswresample is a library containing audio resampling routines.
  • libavresample is a library containing audio resampling routines from the Libav project, completely different from libswresample from ffmpeg.
  • libavcodec is a library containing all the FFmpeg audio/video encoders and decoders. Most codecs were developed from scratch to ensure best performance and high code reusability.
  • libavformat is a library containing demuxers and muxers for audio/video container formats.
  • libavutil is a helper library containing routines common to different parts of FFmpeg. This library includes adler32, crc, md5, sha1, lzo decompressor, Base64 encoder/decoder, des encrypter/decrypter, rc4 encrypter/decrypter and aes encrypter/decrypter.
  • libpostproc is a library containing video postprocessing routines.
  • libswscale is a library containing video image scaling and colorspace/pixelformat conversion routines.
  • libavfilter is the substitute for vhook which allows the video/audio to be modified or examined between the decoder and the encoder.

Codecs, formats and protocols supported [edit]

Codecs [edit]

Codecs which originated from within the FFmpeg project:

The FFmpeg developers have implemented among others:

The default MPEG-4 codec used by FFmpeg for encoding has the FourCC of FMP4.

Container formats [edit]

Protocols [edit]

  • IETF standards:
  • 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

Projects using FFmpeg [edit]

FFmpeg is used by many free (and proprietary) projects, including VLC, MPlayer, xine, HandBrake, Plex, Blender, Google Chrome, YouTube,[26] Facebook,[27] ffmpeg2theora, and others.[28]

FFmpeg handles the HTML5 Video and Audio media content in the Origyn Web Browser for MorphOS Operating System.[29][30]

A number of graphical user interfaces for FFmpeg have been developed, including Avanti,[31] WinFF,[32] and the Miro Video Converter.[33]

FFmbc is based on FFmpeg customized for broadcast and professional usage, adding support for XDCAM, Avid DNxHD and other formats.[34]

JavaCV is an OpenCV Java wrapper, but also includes FFmpeg Java wrapper.

Multimedia frameworks using FFmpeg [edit]

Legal status of codecs [edit]

FFmpeg contains more than 100 codecs,[35] most of which do not just store uncompressed data. At least all codecs that compress information could be claimed by patent holders.[36] 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. Furthermore, many of these codecs are only released under terms that forbid reverse engineering, even for purposes of interoperability. These terms of use are forbidden in certain countries. For example, some European Union nations have not implemented software patents and have laws expressly allowing reverse engineering for purposes of interoperability.[37]

See also [edit]

  • Libav FFmpeg fork
  • MPlayer, the media player that takes much of its source code from FFmpeg
  • Media Player Classic, the forked version, Media Player Classic Home Cinema and Black Edition, are using codes based on FFmpeg for their internal decoders.
  • MEncoder, the encoder variant of MPlayer, which is similar to FFmpeg
  • Plex (software), a cross-platform media player/server that incorporates the source code and codecs
  • VLC media player uses FFmpeg as its codec base, adds other codecs, cross platform
  • RetroCode, an open source encoder/decoder for proprietary mobile content formats, based in parts on FFmpeg
  • Open source codecs and containers

References [edit]

  1. ^ "Initial revision - git.videolan.org/ffmpeg.git/commit". git.videolan.org. 2000-12-20. Retrieved 2013-05-11. 
  2. ^ "Developer Documentation". ffmpeg.org. 2011-12-08. Retrieved 2012-01-04. 
  3. ^ "Download". ffmpeg.org. Retrieved 2012-01-04. 
  4. ^ FFmpeg can be configured to make it proprietary and unredistributable software because libfaac and libaacplus, two optional external libraries, are proprietary software and cannot be distributed under the terms of the GPL.
  5. ^ Bellard, Fabrice (18 February 2006). "FFmpeg naming and logo". FFmpeg developer mailing list. FFmpeg website. Retrieved 24 December 2011. 
  6. ^ "FFmpeg Automated Testing Environment". Fate.multimedia.cx. Retrieved 2012-01-04. 
  7. ^ "FFmpeg Goes WebM, Enabling VP8 for Boxee & Co". newteevee.com. 2010-06-17. Retrieved 2012-01-04. "...with VLC, Boxee, MythTV, Handbrake and MPlayer being some of the more popular projects utilizing FFmpeg..." 
  8. ^ Jason Garrett-Glaser (210-07-23), Diary Of An x264 Developer: Announcing the world’s fastest VP8 decoder, retrieved 2012-01-04 
  9. ^ FFmpeg Announces High-Performance VP8 Decoder, Slashdot, 2010-07-24, retrieved 2012-01-04 
  10. ^ Libav project site, retrieved 2012-01-04 
  11. ^ Ronald S. Bultje (2011-03-14), Project renamed to Libav, retrieved 2012-01-04 
  12. ^ A group of FFmpeg developers just forked as Libav, Phoronix, 2011-03-14, retrieved 2012-01-04 
  13. ^ What happened to FFmpeg, 2011-03-30, retrieved 2012-05-19 
  14. ^ FFMpeg turmoil, 2011-01-19, retrieved 2012-01-04 
  15. ^ transition: Libav 0.7, 2011-05-01, retrieved 2012-01-04 
  16. ^ Ubuntu Release Management: Transition: "libav", retrieved 2012-01-04 
  17. ^ a b c d e f g banan (17 April 2007). "Changelog". FFmpeg trunk SVN. FFmpeg website. Retrieved 26 April 2007. 
  18. ^ a b ivo (7 May 2007). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 24 December 2010. 
  19. ^ vitor (13 April 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 14 April 2008. 
  20. ^ vitor (30 March 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 30 March 2008. 
  21. ^ faust3 (21 March 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 21 March 2008. 
  22. ^ benoit (14 April 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 14 April 2008. 
  23. ^ ramiro (18 March 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 18 March 2008. 
  24. ^ banan (8 June 2008). "FFmpeg development mailing list". FFmpeg development. FFmpeg website. Retrieved 8 June 2008. 
  25. ^ "Google’s YouTube Uses FFmpeg | Breaking Eggs And Making Omelettes". Multimedia.cx. 2011-02-08. Retrieved 2012-08-06. 
  26. ^ "[FFmpeg-devel] [RFC] Facebook bug reports". Lists.mplayerhq.hu. 2009-06-11. Retrieved 2012-08-06. 
  27. ^ "FFmpeg-based Projects". Ffmpeg.org. Retrieved 2012-01-04. 
  28. ^ "Origyn Web Browser for MorphOS". Fabian Coeurjoly. Retrieved 2010-01-04. 
  29. ^ Thom Holwerda (March 8, 2010). "Origyn Web Browser 1.7 Supports HTML5 Media, More". OSNews. Retrieved 2010-03-08. 
  30. ^ "Avanti: FFmpeg/Avisynth GUI". Retrieved 2011-08-17. 
  31. ^ "WinFF is a GUI to the command line video converter FFmpeg". Retrieved 2011-08-17. 
  32. ^ "Miro Video Converter FFMPEG Conversion Matrix". Participatory Culture Foundation. 2011-04-08. Retrieved 2011-10-11. 
  33. ^ "ffmbc - FFMedia Broadcast - Google Project Hosting". Code.google.com. 2012-07-05. Retrieved 2012-08-06. 
  34. ^ "Codecs list". ffmpeg.org. Retrieved 2012-01-01. 
  35. ^ "Legal information on FFmpeg's website". ffmpeg.org. Retrieved 2012-01-04. 
  36. ^ Council Directive 91/250/EEC of 14 May 1991 on the legal protection of computer programs

External links [edit]