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行结束。
修改前:
修改后:
2、安装lame
3、安装libogg
4、安装libtheora
这一步需要ogg所以吧ogg的路径加上即可安装
6、安装vo-aacenc
7、安装xvidcore
18、安装Amr(for 3gp conversion):
20、安装libopus
21、安装libvpx
视频格式:点击打开链接
安装工具:点击打开链接
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 install5、安装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/generic8、安装yasm
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
chmod +x YASM-VERSION-GEN.sh9、安装x264
sh autogen.sh
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
check检查安装好否
yasm --version
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared --enable-static --enable-pic make && make install10、安装libraw1394
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install11、安装libraw1394
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install12、安装libfreetype
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install13 安装fribidi
tar -jxvf fribidi-0.10.4.tar.bz214.安装libxml
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install15、安装fonconfig
export PKG_CONFIG_PATH=/root/tasks/tools/new_ffmpeg/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH16安装libspeex
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared --enable-sse make && make install17、安装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.gz19、安装libfdk_aac
./configure --prefix=/root/tasks/tools/new_ffmpeg/ffmpeg --enable-shared make && make install
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 install22、安装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
相关文章推荐
- 多线程
- 【bzoj1982】【Spoj2021】【Moving Pebbles】【博弈论】
- 蓝桥杯 历届试题 敢死队
- 一个简单的Servlet程序
- 修改IP的脚本
- Android SVN服务器的搭建及在AndroidStudio中使用SVN
- ASP.NET网站开发中的配置文件
- 第二周总结
- 怎样学好Python
- C++的运算符重载
- java eclipse如何显示行数
- 《分布式系统原理与范型》第二版笔记
- Java集合框架:TreeMap
- Maximum GCD
- 第一次做二级联动,没有用到对象与二维数组(笨方法,思路简单)
- 关于堆栈、内存分配
- Java集合框架:TreeMap
- ios 脚本打包demo
- 【操作系统】实验一 命令解释程序的编写
- 复利计算完成时间统计