How to install ffmpeg in CentOS

Source: Internet
Author: User
Tags bz2 centos git clone

Download Address: http://ffmpeg.mplayerhq.hu/download.html#releases
Download File: ffmpeg-2.0.1.tar.bz2
Compile :. /configure-prefix =/usr-enable-gpl-enable-shared-enable-version3-enable-nonfree-enable-libmp3lame-enable-libvorbis-enable-libxvid-enable-libx264-enable-libfaac-enable- pthreads-disable-ffserver-disable-ffplay-enable-libopencore-amrnb-enable-libopencore-amrwb-enable-libtheora

The following describes how to solve various errors:
1, ERROR: libmp 3lame> = 3.98.3 not found

Http://sourceforge.net/projects/lame/files/lame/

Lame-3.99.5.tar.gz
PS: simply install the three axes based on the common source code.

2, yasm not found, use-disable-yasm for a crippled build

Http://www.tortall.net/projects/yasm/releases/

Yasm-1.2.0.tar.gz
[Root @ localhost yasm-1.2.0] #./configure
[Root @ localhost yasm-1.2.0] # make
[Root @ localhost yasm-1.2.0] # make install

3, ERROR: libfaac not found

Http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/

Faac-1.28.tar.bz2
An error occurred while compiling FAAC-1.28:
Mpeg4ip. h: 126: error: new declaration 'char * strcasestr (const char *, const char *)'
Solution:
Modify the object mpeg4ip. h from row 3 to Row 3.
Before modification:
# Ifdef _ cplusplus
Extern "C "{
# Endif
Char * strcasestr (const char * haystack, const char * needle );
# Ifdef _ cplusplus
}
# Endif

After modification:
# Ifdef _ cplusplus
Extern "C ++ "{
# Endif
Const char * strcasestr (const char * haystack, const char * needle );
# Ifdef _ cplusplus
}
# Endif

Re-compile:
1035./bootstrap
1044./configure-with-mp4v2
1045 make
1046 make install

4, ERROR: libopencore_amrnb not found

Http://sourceforge.net/projects/opencore-amr/files/opencore-amr/

Opencore-amr-0.1.3.tar.gz
1034./configure
1035 make
1036 make install

5, ERROR: libvorbis not found

Http://downloads.xiph.org/releases/vorbis/

Libvorbis-1.3.3.tar.gz

*** Cocould not run Ogg test program, checking why...
* ** The test program failed to compile or link. See the file config. log for
* ** Exact error that occured. This usually means Ogg was incorrectly installed
* ** Or that you have moved Ogg since it was installed.
Configure: error: must have Ogg installed!

Http://downloads.xiph.org/releases/ogg? C = M; O = D

Libogg-1.3.1.tar.gz
1048./configure
1049 make install

6, ERROR: libx264 not found
Git clone git: // git.videolan.org/x264.git
X264.tar.bz2
1009./configure-enable-shared
1010 make
1011 make install

7, ERROR: libxvid not found

Http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz

1030 cd build/
1031 ls
1032 cd generic/
1033 ls
1034./configure
1035 make
1036 make install

8, ERROR: libtheora not found

Http://downloads.xiph.org/releases/theora? C = M; O = D

Libtheora-1.2.0alpha1.tar.gz
1042 tar xzf libtheora-1.2.0alpha1.tar.gz
1043 cd libtheora-1.2.0alpha1
1044 ls
1045./configure
1046 make
1047 make install
1048 history

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.