2. What is FFmpeg ?
FFmpeg is a command line tool that is
composed of a collection of free software /
open source libraries.
FFmpeg can record, convert and stream digital
audio and video in numerous formats.
FFmpeg is developed under Linux, but it can
compiled under most operating systems,
including Microsoft Windows Mac Osx.
3. Libraries
Libavcodec
encoding and decoding video and audio data
Libavformat
audio/video container mux and demux library.
4. FF + MPEG
MPEG – Moving Picture Experts Group
"FF" for "fast forward".
5. History
By Fabrice Bellard (using the
pseudonym “Gerard Lantau”)
in year 2000
maintained by Michael Niedermayer.
Part of the MPlayer project
Released under the GNU Lesser
General Public License OR GPL
6. Video Codecs on project
lossless FFV1
FF video codec 1
lossless intra-frame video format
variable length coding or arithmetic coding for
entropy coding.
lossy Snow codec
compress video either lossily or losslessly
7. Components
FFmpeg - record, convert and stream digital
audio and video in numerous formats
Ffserver - multimedia streaming server for live
broadcasts also support time shift streaming.
Ffplay - simple media player based on
SDL(Simple DirectMedia Layer)
8. Libraries
Libavcodec - containing all the FFmpeg audio/video
encoders and decoders
Libavformat - containing demuxers and muxers for
audio/video container formats.
Libavutil - containing routines common to different parts of
Ffmpeg
Libpostproc - containing video postprocessing routines.
Libswscale - containing video image scaling routines.
Libavfilter - substitute for vhook which allows the video to
be modified or examined between the decoder and the
encoder.
9. Codecs
Codecs with the origin in the project: Sorenson 3 Codec used by many
QuickTime movies
* Snow
* FFV1 Theora (together with Vorbis
makes a base for the .ogg format)
The FFmpeg developers have implemented
Truespeech
ATRAC3 [Adaptive Transform Acoustic
Coding] TXD
H.261, H.263 and H.264/MPEG-4 VP5 and VP6
AVC
Vorbis
Indeo 2 and 3
Windows Media Audio
QDesign Music Codec 2, used by
many QuickTime movies prior to Some Windows Media Video
QuickTime 7. codecs, including WMV1, WMV2
Smacker video used in computer and WMV3
games
11. Applications
VDR – Video Disc Recorder
Mplayer – Media Player for Linux
Xine – Media Player in Linux
VideoLAN – Media Player and Converter
12. VDR
computer to function as a digital video recorder
record and replay TV programming using the
computer's hard drive
VDR can also operate as an mp3 player and
DVD player
15. Mplayer Varients..
Smplayer
QT MPlayer frontend for Microsoft Windows and
GNU/Linux
Kmplayer
KDE MPlayer frontend
Kplayer
KDE MPlayer frontend
GtkPlayer
GTK widget embedding MPlayer to play movies.
16.
17. Xine
a free multimedia player.
plays back CDs, DVDs, and VCDs.
Decodes AVI, MOV, WMV, and MP3
displays multimedia streamed over the Internet
http://xinehq.de
18. Xine Platforms
* GNU/Linux (x86, alpha, sparc, ppc, ...)
* FreeBSD (x86)
* Solaris (sparc and x86)
* Irix (mips)
* Darwin/MacOS X (ppc) via the fink project
21. Video LAN
A free cross-platform media player
Formats:- AVI,ASF / WMV / WMA,MP4 / MOV / 3GP,OGG / OGM /
Annodex,Matroska (MKV),WAV,DTS, AAC, AC3/A52,FLAC,FLV,VOC
Plays :-DVD,VCD,SVCD,Audio
CD,DVB,MPEG,HTTP / FTP,MMS
used as a streaming server, with extended
features (video on demand, on the fly
transcoding, ...)
23. VLMa
VideoLAN Manager
application to manage broadcasts of TV
channels, received through digital terrestrial or
satellite ways
capable of streaming audio and video files
GNU General Public License like VLC media
player.
24. Ffmpeg - PHP
object-oriented API for PHP
retrieving information from video and audio files
frames from movie files as images
Used for automatically creating thumbnail
images from movies
reporting the duration and bitrate of audio files
25. Ffmpeg Commands
Video and Audio grabbing
ffmpeg f oss i /dev/dsp f video4linux2 i /dev/video0 /tmp/out.mpg
Video and Audio file format conversion
ffmpeg i /tmp/test.mpg /tmp/out.avi
several input files and output files
ffmpeg i /tmp/a.wav s 640x480 i /tmp/a.yuv /tmp/a.mpg
extract images from a video
ffmpeg i foo.avi r 1 s WxH f image2 foo%03d.jpeg