I compiled vlc but the FFmpeg debian package is not
compiled with MP3 nor AMR support. So I had to reinstall ffmpeg compiled with amr support.
Get audio codecs (MP3 and AMR)
MP3 LAME:
- Grab the latest sources from the MP3 LAME official site:
e.g. lame-3.97.tar.gz - Decompress the source code:
gunzip lame-3.97.tar.gz
tar xvf lame-3.97.tar - Change directory:
cd lame-3.97 - Configure and install:
./configure
make
make install (as root or sudo)
AMR (NB & WB):
- Grab the AMR Codec Libraries (The FFmpeg documentation has a section about installing AMR):
e.g. amrnb-6.1.0.4.tar.bz2 and amrwb-7.0.0.1.tar.bz2 - Decompress sources:
bunzip2 amrnb-6.1.0.4.tar.bz2
tar xvf amrnb-6.1.0.4.tar - Change directory:
cd amrnb-6.1.0.4 - Configure and install:
./configure
make
make install (as root or sudo) - Repeat same steps 2,3 and 4 for amrwb-7.0.0.1.tar.bz2
Make sure that that your /etc/ld.so.conf includes the directory where these 3 libraries just got installed (usually its /usr/local/lib). Mine didn’t so I had to add it:
- create the file /etc/ld.so.conf.d/ffmpeg.conf
- add the line /usr/local/lib
- then run ldconfig
FFmpeg
- We need to get FFmpeg from the subversion repository:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg - Change directory:
cd ffmpeg - Configure and install:
./configure –enable-nonfree –enable-libamr-nb –enable-libamr-wb –enable-libmp3lame
make
make install (as root or sudo)
After that configure error again:
configure: error: Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled
Maybe I need reboot my computer! Have a test!