Introduction: FFmpeg is a set of open-source computer programs that can be used to record, transform, and convert digital audio and video into streams. More information please Baidu
Environmental Centos6.7
Compiler: GCC
Installation steps:
1 steps: Install dependent environment
Yum install-y yasm automake autoconf libtool gcc gcc-c++
2 steps: Download the source package,
Cd/usr/local/src
wget http://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz # #下载lame源码包
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz #下载amr源码包, want to convert AMR format to MP3 need to have a compile and install these two source packages
wget http://ffmpeg.org/download.html # #下载最新版ffmpeg源码包, I'm under the ffmpeg-2.6.2.tar.bz2
3-Step: Unzip the build installation
TAR-ZXVF opencore-amr-0.1.2.tar.gz #解压opencore-amr
CD opencore-amr-0.1.2
./configure
Make
Make install #没出现什么错误继续解压安装lame
Cd.. /
TAR-ZXVF lame-3.99.5.tar.gz #解压lame
CD lame-3.99.5
./configure
Make
Make install
Cd.. /
TAR-JXVF ffmpeg-2.6.2.tar.bz2 #解压编译安装ffmpeg, here to add compile parameters
CD./ffmpeg-3.0.2
./configure--enable-libmp3lame--enable-libopencore-amrnb--ENABLE-LIBOPENCORE-AMRWB--enable-version3-- Enable-shared
Make
Make install
#这个在云主机编译安装需要十来分钟时间, it's faster when the virtual machine is compiled and installed
4 Steps:
echo "/usr/local/lib" >>/etc/ld.so.conf
5 Steps: Update the Ld.so.cache for the changes to take effect.
Ldconfig
Step 6: test
FFmpeg # # Output version information indicates successful installation
7 steps: Verify, upload an AMR format file with, format: Ffmpeg-i file name after the transcoding file name, as follows
Ffmpeg-i 1.amr 1.mp3
This article is from the "Lmlinux" blog, make sure to keep this source http://1121914451.blog.51cto.com/11002746/1785645
Deployment of FFmpeg and AMR to mp3 method