ffmpeg -- 安装部署
使用yum命令安装ffmpeg:
yum install epel-release -y
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install ffmpeg ffmpeg-devel -y
yum install -y faac-devel lame-devel amrnb-developencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-devel
yum install -y opencore-amr*
wav格式转换amr格式:
ffmpeg -i tts_test.wav -c:a libopencore_amrnb -ac 1 -ar 8000 -b:a 12.2k -y ./wav2amr.amr
amr格式转换wav格式:
ffmpeg -i 1.amr 1.wav