apt-get install graphicsmagick speex libspeex1 \ libspeex-dev libspeexdsp-dev libspeex-dev liboggplay1-dev libmp3lame0 \ libavcodec-dev libavcodec-extra-53 libavcodec-dev libfaac-dev libmp3lame-dev \ libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvo-amrwbenc-dev \ libvo-amrwbenc-dev libvorbis-dev libvpx-dev libvorbis-dev libvorbis0a \ libvorbisenc2 libvorbis-dev libfaac0 libfaac-dev libopencore-amrnb-dev \ libopencore-amrnb0 libopencore-amrwb-dev libopencore-amrwb0 libtheora-dev \ libtheora0 libmp3lame-dev yasm libvpx-dev libx264-dev libxvidcore-dev \ libdc1394-22-dev pkg-config libspeex1 liboggplay1-dev下載最新版本的ffmpeg
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg官網說明:
- 3GPP Timed Text encoder/decoder
./configure --enable-gpl --enable-version3 --enable-nonfree \ --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \ --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx \ --enable-libdc1394 --enable-libx264 --enable-libxvid --enable-libvo-amrwbenc --enable-libspeex
而後進行make&&make install android
編譯時間比較長,估計要等一會 git
測試時候,請不要直接將轉換後的文件後綴名寫成3gpp,系統沒法識別,應該寫成3gp,格式也是3gpp。http://pan.baidu.com/share/link?shareid=167371&uk=1361273680&third=0測試結論: 在不太在乎音頻質量的狀況,3gpp格式的空間最小,是咱們項目最適合作語音對話的格式,可是音量的大小還須要繼續調整其餘參數。