您的位置:首页 > 其它

ffmpeg 安装过程

2016-03-17 19:41 302 查看
首先可以了解下ffmpeg的介绍

视频格式:点击打开链接

安装工具:点击打开链接

1、faac

./bootstrap

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared

make && make install

编译遇到错误

解决如下:

编译FAAC-1.28时遇到错误:

mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’

解决方法:

从123行开始修改此文件mpeg4ip.h,到129行结束。

修改前:

#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

修改后:

#ifdef __cplusplus
extern "C++" {
#endif
const char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif


2、安装lame

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg  --enable-shared
make && make install


3、安装libogg

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg  --enable-shared
make && make install


4、安装libtheora

这一步需要ogg所以吧ogg的路径加上即可安装

./configure --with-ogg=/root/tasks/tools/new_ffmpeg/ffmpeg/ --with-ogg-libraries=/root/tasks/tools/new_ffmpeg/ffmpeg/lib --with-ogg-includes=/root/tasks/tools/new_ffmpeg/ffmpeg/include  --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg  --enable-shared
make && make install
5、安装libvorbis

xz -d  libvorbis-1.3.5.tar.xz
tar -xvf libvorbis-1.3.5.tar
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install

6、安装vo-aacenc

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg  --enable-shared
make && make install

7、安装xvidcore

cd  /xvidcore/build/generic
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
8、安装yasm

chmod +x YASM-VERSION-GEN.sh
sh autogen.sh
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
check检查安装好否
yasm --version
9、安装x264
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared --enable-static --enable-pic
make && make install
10、安装libraw1394

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install
11、安装libraw1394

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install
12、安装libfreetype

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install
13 安装fribidi

tar -jxvf fribidi-0.10.4.tar.bz2
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
14.安装libxml
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install
15、安装fonconfig

export PKG_CONFIG_PATH=/root/tasks/tools/new_ffmpeg/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
16安装libspeex

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared --enable-sse
make && make install
17、安装twolame
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install

18、安装Amr(for 3gp conversion):

#wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz # tar -zxvf opencore-amr-0.1.3.tar.gz
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
19、安装libfdk_aac

sh autogen.sh
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install

20、安装libopus

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install

21、安装libvpx

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared
make && make install
22、安装ffmpeg

./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-static --enable-gpl --enable-version3 --enable-libfdk-aac --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-pic  --enable-libdc1394 --enable-libass --enable-pic  --enable-libtwolame --enable-libspeex --enable-libopus --enable-libvpx  --enable-libopencore-amrnb --enable-libopencore-amrwb  --enable-libfreetype
make && make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: