Source code Installation Method:
1. Download the FFmpeg installation package first
To the official website http://ffmpeg.org/download.html#releases download. Select Download gzip tarball. Of course, you can also download it in git mode.
Do not install first.
2. Installing the SDL Library
SDL is a set of multimedia open libraries that are necessary to generate ffplay.
sudo apt-get install Libsdl1.2-dev
This will allow you to see the newly generated SDK library under/usr/include/.
Then install some dependent libraries:
sudo apt-get install Libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev
3. Install some dependent libraries:
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libMP3lame-d EV libsdl1.2-dev Libtheora-dev Libx11-dev Zlib1g-dev
3. Install the x264 (optional installation may not be available temporarily)
x264 is an open source video encoding function library.
Installation by git download source code installation, the path does not matter:
git clone git://git.videolan.org/x264.gitcd x264./configuremakesudo make install
Finally, you will see x264 's executable file below/usr/lcoal/bin. This script is not available temporarily.
4. Finally, compile FFmpeg
TAR-ZXF fmpeg-2.7.2.tar.gz
CD ffmpeg-2.7.2
./configure--enable-memalign-hack--enable-static--enable-libx264
Make && sudo make install
The last ffplay to survive under the current folder.
Here's a test:
./ffplay Yourfile
Can see that it is already playing.
ubuntu11.04 compiling ffmpeg2.7 and generating ffplay for streaming media test