FFmpeg simple Installation documentation for Centos 6.6

Source: Internet
Author: User
Tags automake

First, install the toolkit yum install-y automake autoconf libtool gcc gcc-c++

All installation packages: Http://pan.baidu.com/s/1hriJB5U

Second, the installation of specific steps

1, lame

wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz

(Install lame-3.99.5.tar.gz to avoid error:libmp3lame >= 3.98.3 not found error in the third step, need to install lame in advance.)

#tar XZVF lame-3.99.5.tar.gz

#cd lame-3.99.5

#./configure--enable-nasm --prefix=/usr

#make

#make Install

2, Libogg

libogg-1.1.3.tar.gz URL: http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz  

The installation method is as follows:

1. ./configure--prefix=/usr

2. make

3. Make Install

3, Libvorbis

libvorbis-1.1.2.tar.gz Url:http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz The installation method is as follows:

1. ./configure--prefix=/usr

2. make

3. Make Install

4, XviD

xvidcore-1.1.3.tar.gz Url:http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz installation method is as follows:

1. tar zvxf xvidcore-1.1. 3. tar.gz

2. CD xvidcore-1.1. 3 /build/generic

3. ./configure--prefix=/usr

4. make

5. Make Install

5, x264

x264-snapshot-20071107-2245.tar.bz2

url:http://www.videolan.org/developers/x264.htmlftp://ftp.videolan.org/pub/videolan/x264/snapshots/installation methods are as follows:

1. bunzip2 x264-snapshot-20070913-2245. tar.bz2

2. tar xvf x264-snapshot-20070913-2245. Tar

3. ./configure--prefix=/usr --enable-shared

Found yasm 1.0.0.2319
Minimum version is yasm-1.2.0
If you really want to compile without ASM, configure with--disable-asm.
Description Yasm version is low, can be the next higher version:

http://yasm.tortall.net/releases/Release1.2.0.html
[email protected] x264-snapshot-20130301-2245-stable]# CD .
[email protected] ffmpeg]# tar zxvf yasm-1.2.0.tar.gz; RM-RF yasm-1.2.0.tar.gz
[email protected] ffmpeg]# CD yasm-1.2.0
[email protected] yasm-1.2.0]#/configure--prefix=/usr
[[email protected] yasm-1.2.0]# make
[[email protected] yasm-1.2.0]# make install
[email protected] yasm-1.2.0]# CD. /x264-snapshot-20130301-2245-stable/
[email protected] x264-snapshot-20130301-2245-stable]#

4../configure--PREFIX=/USR--enable-shared

5. Make

6. Make install


6. Libdts

libdts-0.0.2.tar.gz http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz

Installation method:

1. tar zxvf libdts-0.0. 2. tar.gz

2. CD libdts-0.0. 2   

3. ./configure--prefix=/usr

4. make

5. Make Install

7,A52

a52dec-0.7.4.tar.gz http://liba52.sourceforge.net/downloads.html installation method:

1. ./configure--prefix=/usr

2. Make

3. Make install


8. faad2

faad2-2.6.1.tar.gz http://www.audiocoding.com/downloads.html installation method

1. autoreconf-vif

2. ./configure--prefix=/usr--with-mp4v2--enable-shared

3. make

4. Make Install

9 , FAAC

faac-1.26.tar.gz http://linux.softpedia.com/progDownload/FAAC-Download-554.html installation method:

Yum install-y aclocal autoheader libtoolize automake autoconf Libtool

1. tar zxvf faac-1.26. tar.gz

2. CD FAAC

3. ./bootstrap

4. ./configure--prefix=/usr

5. make

6. Make Install

In file included from Mp4common.h:29:0,from 3gp.cpp:28:
Mpeg4ip.h:126:58:error:new declaration ' char* strcasestr (const char*, const char*) '/USR/INCLUDE/STRING.H:369:28: error:ambiguates Old declaration ' const char* STRCASESTR (const char*, const char*) '
MAKE[3]: * * * [3GP.O] Error 1
MAKE[3]: Leaving directory '/usr/local/pc/ffmpeg/faac-1.28/common/mp4v2 '
MAKE[2]: * * * [all-recursive] Error 1
MAKE[2]: Leaving directory '/usr/local/pc/ffmpeg/faac-1.28/common '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/usr/local/pc/ffmpeg/faac-1.28 '
Make: * * * [ALL] Error 2

Workaround:

Modify the source file Common/mp4v2/mpeg4ip.h file
Commented out://char *strcasestr (const char *haystack, const char *needle);

Recompile:

[[email protected] faac-1.28]# make clean; Make
[[email protected] faac-1.28]# make install


FFmpeg opening LIBFDK_AAC and Libmp3lame

Http://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide
Http://yasm.tortall.net/Download.html
git clone--depth 1 git://github.com/mstorsjo/fdk-aac.git

CD FDK-AAC

Autoreconf-fiv

./configure--enable-shared

Make && make install

Parameters to be added for compiling ffmpeg

./configure--ENABLE-LIBFDK_AAC--enable-nonfree--enable-libmp3lame

10, FFmpeg

Unzip FFmpeg tar jxvf ffmpeg-2.8.1.tar.bz2

./configure--prefix=/usr--ENABLE-GPL--enable-shared--enable-libmp3lame--enable-libvorbis--enable-libx264--enab LE-LIBFDK_AAC--enable-nonfree--enable-pthreads

Make && make install

./configure--ENABLE-LIBFDK_AAC--enable-nonfree--enable-libmp3lame


FFmpeg the following error occurred while performing ffmpeg after normal installation:

Ffmpeg:error while loading shared libraries:libavdevice.so.53:cannot open Shared object file:no such file or directory

Workaround:

Vi/etc/ld.so.conf

Join:/usr/local/lib

Executive Ldconfig


FFmpeg simple Installation documentation for Centos 6.6

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.