#!/bin/bash

# feel free to change the src directory
cd /usr/src/

cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
cd ffmpeg/libavcodec
mkdir amr_float
cd amr_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
unzip *.zip
unzip *code.zip
cd ..
mkdir amrwb_float
cd amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip *.zip
unzip *code.zip
cd ../..
./configure --enable-amr_nb --enable-amr_wb $@
make

cp ffmpeg ffplay /usr/local/bin/
# or somewhere else in the path!
