2011/07/13

Encode PCM to MP3

To encode PCM data to MP3 in Ubuntu 11.04:

sudo apt-get build-dep ffmpeg sudo apt-get install libmp3lame-dev libfaad-dev libx264-dev libfaac-dev libxvidcore-dev liba52-0.7.4 liba52-0.7.4-dev libdts-dev checkinstall apt-get source ffmpeg cd libav-* ./configure --disable-debug --enable-libfaad --enable-libfaac --enable-gpl --enable-nonfree --enable-libx264 --enable-libxvid --enable-pthreads --enable-libvorbis --enable-libmp3lame --enable-libtheora --enable-libgsm --disable-debug --enable-shared --prefix=/usr make sudo checkinstall -D make install ffmpeg -i audiobo.aiff -f mp3 -acodec libmp3lame -ab 64k -ar 22050 output.mp3


Reference:
https://wiki.ubuntu.com/ffmpeg
http://turanct.wordpress.com/2010/04/03/convert-aiff-to-mp3-with-ffmpeg-on-ubuntu/

No comments:

Post a Comment

Post Code on Blogger

Simplest way to post code to blogger for me: <pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black;overflow-x:...