概述
基础环境CentOS 7,最小化安装,带网络连接(安装过程中要能访问外网)
安装 bzip2
yum install bzip2
安装 automake
yum install automake
安装 libtool
yum install libtool
安装 g++
yum install gcc-c++
安装 unzip
yum install unzip
安装 patch
yum install patch
安装 yasm
tar zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix=/usr --enable-shared
make
make install
安装zlib
tar zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure --prefix=/usr --enable-shared
make
make install
安装 faad2
tar zxvf faad2-2.7.tar.gz
cd faad2-2.7
chmod +x bootstrap
./bootstrap
./configure --prefix=/usr --enable-shared
make
make install
安装 faac2
tar zxvf faac-1.28.tar.gz
cd faac-1.28
进入 common/mp4v2 目录修改 mpeg4ip.h文件
注释126行
//char *strcasestr(const char *haystack, const char *needle);
cd ../../
./bootstrap
./configuremak --prefix=/usr --enable-shared
make
make install
安装 amrnb
tar xvfj amrnb-11.0.0.0.tar.bz2
cd amrnb-11.0.0.0
./configure --prefix=/usr --enable-shared
make
make install
安装 amrwb
tar xvfj amrwb-11.0.0.0.tar.bz2
cd amrwb-11.0.0.0
./configure --prefix=/usr --enable-shared
make
make install
安装 libmp3lame
unzip libmp3lame-master.zip
cd libmp3lame-master
./configure --prefix=/usr --enable-shared
make
make install
安装 h264
tar xvjf last_x264.tar.bz2
cd x264-snapshot-20160712-2245/
./configure --prefix=/usr --enable-shared
make
make install
安装 libogg
tar xvf libogg-1.3.2.tar.gz
cd libogg-1.3.2
./configure --prefix=/usr --enable-shared
make
make install
安装 theora
tar xvfj libtheora-1.1.1.tar.bz2
cd libtheora-1.1.1
LD_LIBRARY_PATH=/usr/lib/
export LD_LIBRARY_PATH
./configure --prefix=/usr --enable-shared
make
make install
安装 libvorbis
tar xvf libvorbis-1.3.5.tar.gz
cd libvorbis-1.3.5
./configure --prefix=/usr --enable-shared
make
make install
安装libxvid
tar xvf xvidcore-1.3.2.tar.gz
cd xvidcore
cd build/generic
./bootstrap.sh
./configure --prefix=/usr --enable-shared
make
make install
安装liba52
tar xvf a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
./configure --prefix=/usr
make
make install
安装open-core amr
tar xvf opencore-amr-0.1.3.tar.gz
cd opencore-amr-0.1.3
./configure --prefix=/usr --enable-shared
make
make install
安装 ffmpeg
tar xvfj ffmpeg-3.1.1.tar.bz2
cd ffmpeg-3.1.1
./configure --prefix=/usr --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-version3 --enable-zlib
make
make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
ffmpeg -version
参考
http://blog.csdn.net/u010694337/article/details/51335790
http://www.111cn.net/sys/linux/82964.htm
http://blog.csdn.net/tonylllz/article/details/40873415
测试转码
ffmpeg -i /root/ffmpeg/test/test.wmv -vcodec libx264 -acodec libfaac /root/ffmpeg/test/test.mp4
安装 MediaInfo
cd mediainfo
rpm -i libzen-0.4.33.x86_64.CentOS_7.rpm
rpm -i libmediainfo-0.7.87.x86_64.CentOS_7.rpm
rpm -i mediainfo-0.7.87.x86_64.CentOS_7.rpm
测试MediaInfo
mediainfo -f --Output=XML /root/ffmpeg/test/test.wmv
转载于:https://www.cnblogs.com/hyming011/p/8252745.html
最后
以上就是追寻戒指为你收集整理的ffmpeg部署的全部内容,希望文章能够帮你解决ffmpeg部署所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复