Showing posts with label amr. Show all posts
Showing posts with label amr. Show all posts

Wednesday, November 28, 2007

Alternate way to compile AMR Codec Libraries for GNU-Linux into ffmpeg

This is a home page or amrnb and amrwb libraries, based on the reference implementation. I created it to prevent ugly embedding of the same code to many Open Source projects and to maintain patches and fixes for it.

Alternate way to compile amrcode libraries
is to download the scripts from bellow and then add the copile flags for ffmpeg from svn (or you can install it all in /usr and add no extra flags)
--enable-libamr-nb --extra-cflags=-I/opt/libamrnb/include --extra-ldflags=-L/opt/libamrnb/lib

http://ubuntuforums.org/showthread.php?t=178455


I will modify my compile scripts and see how it works
cat ffmpeg_checkout.sh
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cat ffmpeg/configure.sh
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libogg --enable-libvorbis --enable-libgsm --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-libx264 --enable-libtheora --enable-libfaad --enable-gpl --enable-shared --enable-pthreads --enable-swscaler
 cat mplayer_checkout.sh
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

mplayer is configured with --prefix=/usr

also don't forget to install the full code pack
http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
into /usr/lib/codecs

mkdir /usr/lib/codecs/
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
tar -jxvf all-20071007.tar.bz2
cd all-20071007
mv * /usr/lib/codecs/

cd mplayer
./configure --prefix=/usr
make install
AMR Codec Libraries for GNU-Linux

Blogged with Flock

Wednesday, July 04, 2007

compiling ffmpeg (and mplayer) with amr7 support
http://www.penguin.cz/~utx/amr
apt-get install libgsm1-dev toolame libgsm1-dev libvorbis-dev libogg-dev
apt-get install libfaad2-dev
apt-get install subversion
apt-get install libgsm1-dev libgsmme-dev
apt-get install unzip
apt-get install liba52-0.7.4-dev
apt-get install patch

wget http://downloads.xvid.org/downloads/xvidcore-1.1.2.tar.bz2
tar -jxf xvidcore-1.1.2.tar.bz2
wget http://mesh.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=/usr;make;make install
cd ..
cd xvidcore-1.1.2/build/generic/
./configure --prefix=/usr;make;make install
cd ../../../

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/libavcodec/
mkdir amrwb_float
cd amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip 26204-510.zip
unzip 26204-510_ANSI-C_source_code.zip
cd ..
mkdir amr_float
cd amr_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
unzip 26104-510.zip
unzip 26104-510_ANSI_C_source_code.zip
cd ../../
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
tar -jxvf amrwb-7.0.0.1.tar.bz2
cd amrwb-7.0.0.1
./configure --prefix=/usr ; make ; make install
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
tar -jxvf amrnb-6.1.0.4.tar.bz2
cd amrnb-6.1.0.4
./configure --prefix=/usr ; make ; make install

./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libogg --enable-libvorbis --enable-libgsm --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-gpl;
make ; make install
cd ..
wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
tar -jxvf essential-20061022.tar.bz2
mkdir /usr/lib/codecs/
cd essential-20061022
mv * /usr/lib/codecs/
cd ..
cd MPlayer-1.0rc1/
./configure --prefix=/opt/mplayer
make; make install