重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

centos安装ffmpeg视频处理工具-创新互联

wget https://jaist.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.5.tar.gz
wget https://sourceforge.mirrorservice.org/o/op/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz
wget https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz
wget https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.xz
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz

创新互联是一家专注于网站建设、成都网站建设与策划设计,西平网站建设哪家好?创新互联做网站,专注于网站建设10多年,网设计领域的专业建站公司;建站业务涵盖:西平等地区。西平做网站价格咨询:18982081108

cd /data/source/ && git clone https://git.ffmpeg.org/ffmpeg.git

1.安装相关依赖包
tar -zxvf fdk-aac-0.1.5.tar.gz
cd fdk-aac-0.1.5 && ./configure && make install

tar -zxvf opencore-amr-0.1.5.tar.gz
cd opencore-amr-0.1.5 && ./configure && make install

tar -zxvf lame-3.100.tar.gz
cd lame-3.100 && ./configure && make install

tar -zxvf x264-stable.tar.gz
cd x264-stable ./configure && make install

tar -xvf libvorbis-1.3.5.tar.xz
cd libvorbis-1.3.5 && ./configure && make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

tar -xvf libogg-1.3.2.tar.xz
cd libogg-1.3.2 && ./configure && make install

tar -xvf libtheora-1.1.1.tar.xz
cd libtheora-1.1.1 && ./configure && make install

yum install mediainfo

vi /etc/ld.so.conf.d/ffmpeg.conf
加入下面两个路径,然后执行ldconfig,引用类库
/usr/local/lib
/data/software/ffmpeg/lib

2.安装ffmpeg
cd /data/source/ffmpeg
./configure --enable-version3 --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-shared --disable-x86asm --prefix=/data/software/ffmpeg
(不同系统需要将参数改为--disable-asm 根据报错提示修改参数)
make && make instll

3.配置环境变量:
vim /etc/profile
PATH=$PATH:/data/software/ffmpeg/bin
export PATH

source /etc/profile #重新加载生效

创建软连接
ln -s /data/software/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
ln -s /data/software/ffmpeg/bin/ffprobe /usr/bin/ffprobe

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前标题:centos安装ffmpeg视频处理工具-创新互联
网站地址:http://cqcxhl.com/article/dhjcgs.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP