Source 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 installation, the path does not matter:
git clone git://git.videolan.org/x264.gitcd x264./configuremakesudo make install
Finally, you will see the x264 executable file under/usr/lcoal/bin. This script is not available for the time being.
4. Finally, compile FFmpeg
TAR-ZXF fmpeg-2.7.2.tar.gz
CD ffmpeg-2.7.2
./configure--enable-memalign-hack--enable-static
Make && sudo make install
The last ffplay that can survive in the current directory.
Test it below:
./ffplay Yourfile
Can see already in play;
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
ubuntu11.04 compiling ffmpeg2.7 and generating ffplay for streaming media testing