ubuntu11.04 compiling ffmpeg2.7 and generating ffplay for streaming media testing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.