ITeye博客

linux 下ffmpeg的源码包安装

luyao123127 · 2010-11-06 10:42 · OpenMeetings · 非技术 · RedHat · PHP · .net · CentOS · Linux · Markdown

1、lame lame-3.97.tar.gz Url:http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309 安装方法如下: tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --enable-shared --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 安装方法如下: tar -zxvf libogg-1.1.3.tar.gz ./configure --prefix=/usr
make
make install

3、libvorbis libvorbis-1.1.2.tar.gz Url:http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz 安装方法如下: tar -zxvf libvorbis-1.1.2.tar.gz ./configure --prefix=/usr
make
make install

4、xvid xvidcore-1.1.3.tar.gz Url:http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz 安装方法如下: tar -zvxf xvidcore-1.1.3.tar.gz
cd xvidcore-1.1.3/build/generic
./configure --prefix=/usr
make
make install

5、x264 x264-snapshot-20071107-2245.tar.bz2 Url:http://www.videolan.org/developers/x264.html ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ 安装方法如下: tar -jxvf x264-snapshot-20070913-2245.tar
./configure --prefix=/usr --enable-shared
make
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 > 安装方法: tar zxvf libdts-0.0.2.tar.gz
cd libdts-0.0.2
./configure --prefix=/usr
make
make install

7、a52 a52dec-0.7.4.tar.gz http://liba52.sourceforge.net/downloads.html 安装方法: ./configure --prefix=/usr
make
make install

8、faad2 faad2-2.6.1.tar.gz http://www.audiocoding.com/downloads.html 安装方法 autoreconf -vif
./configure --prefix=/usr --with-mp4v2 --enable-shared
make
make install

9、faac faac-1.26.tar.gz http://linux.softpedia.com/progDownload/FAAC-Download-554.html 安装方法: tar zxvf faac-1.26.tar.gz
cd faac
./bootstrap
./configure --prefix=/usr
make
make install

10、amr-nb amrnb-6.1.0.4.tar.bz2 http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2 安装方法: ./configure --prefix=/usr
make
make install

11、amr-wb amrwb-7.0.0.1.tar.bz2 http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2 安装方法: ./configure --prefix=/usr
make
make install

12、lib52 a52dec-0.7.4.tar.gz http://liba52.sourceforge.net/downloads.html

安装ffmpeg

./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay
make
make install

yum命令的安装: How to install ffmpeg on CentOS or Redhat Enteprirse Linux the easy way

This is the easy way to install ffmpeg on CentOS or RHEL/Redhat Enterprise Linux the easy way.

vi /etc/yum.repos.d/dag.repo

Insert the following:

name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1

Add the

/usr/local/lib

to

/etc/ld.so.conf

Then run:

ldconfig -v

Then run the following:

rpm -Uvh http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm yum update yum install ffmpeg ffmpeg-devel

如果出现以下错误:

Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package ffmpeg Error: Missing Dependency: libtheora.so.0(libtheora.so.1.0) is needed by package ffmpeg Error: Missing Dependency: rtld(GNU_HASH) is needed by package ffmpeg Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package imlib2 Error: Missing Dependency: rtld(GNU_HASH) is needed by package a52dec Error: Missing Dependency: rtld(GNU_HASH) is needed by package imlib2 Error: Missing Dependency: rtld(GNU_HASH) is needed by package gsm Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package x264 Error: Missing Dependency: rtld(GNU_HASH) is needed by package xvidcore Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package lame Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package a52dec Error: Missing Dependency: rtld(GNU_HASH) is needed by package faad2 Error: Missing Dependency: rtld(GNU_HASH) is needed by package x264 Error: Missing Dependency: rtld(GNU_HASH) is needed by package lame Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package xvidcore Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faac Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package faad2 Error: Missing Dependency: libgif.so.4 is needed by package imlib2 Error: Missing Dependency: rtld(GNU_HASH) is needed by package faac Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package gsm Error: Missing Dependency: libpng12.so.0(PNG12_0) is needed by package imlib2 Error: Missing Dependency: rtld(GNU_HASH) is needed by package libmp4v2 Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package libmp4v2

打开文件rpmforge.repo vi /etc/yum.repos.d/rpmforge.repo

将内容修改如下:

name = Red Hat Enterprise $releasever – RPMforge.net – dag #baseurl = http://apt.sw.be/redhat/el4/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el4/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。