centos 6.5 64bit 安装ffmpeg,amr转mp3

下载安装包 放在 /usr/local/src 下:

wget http://ffmpeg.org/releases/ffmpeg-4.0.1.tar.bz2

wget https://jaist.dl.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz

wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz

安装流程

yum install yasm

或者  rpm安装

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/y/yasm-1.2.0-1.el6.x86_64.rpm

rpm -ivh yasm-1.2.0-1.el6.x86_64.rpm

cd /usr/local/src

tar -zxvf lame-3.100.tar.gz

cd lame-3.100

./configure

make

make install

cd /usr/local/src

tar -zxvf opencore-amr-0.1.5.tar.gz

cd opencore-amr-0.1.5

./configure

make

make install

cd /usr/local/src

tar -jxvf ffmpeg-4.0.1.tar.bz2

cd ffmpeg-4.0.1

./configure --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-shared

make

make install

vi /etc/ld.so.conf

在文件末尾另起一行加上:/usr/local/lib

ldconfig

ffmpeg #输出版本信息表示安装成功

chmod 0777 /usr/local/bin/ffmpeg

/usr/local/bin/ffmpeg -i 1.amr 1.mp3

你可能感兴趣的:(centos 6.5 64bit 安装ffmpeg,amr转mp3)