Mengaktifkan format 3gp di Mplayer

[[[[ ini hasil copy paste dar http://www.worldofvishnu.com ]]]]

This is a howto for ubuntu – but i guess it’d be easy to translate to a general debian distro.To enable audio in .3gp files in mplayer you need to recompile, but don’t worry – it’s done in a few simple steps.
First we need to get the mplayer source

sudo -s
cd /usr/src
mkdir -p mplayer
cd mplayer
apt-get source mplayer

Then we need to get the 3gp drivers to enable the amr_nb and amr_wb codecs in libavblockquotec, do this:

wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip 26104-510.zip
unzip 26204-510.zip

cd mplayer-1.0~rc1 # this directory may have a different name
mkdir libavblockquotec/amr_float
mkdir libavblockquotec/amrwb_float

cd libavblockquotec/amr_float
unzip /usr/src/mplayer/26104-510_ANSI_C_source_blockquote.zip
cd ..

cd libavblockquotec/amrwb_float
unzip /usr/src/mplayer/26204-510_ANSI-C_source_blockquote.zip

To keep apt from installing the old version of mplayer next time you update, we need to increment the version number. Open up /usr/src/mplayer/cd mplayer-1.0~rc1/debian/changelog

gedit /usr/src/mplayer/cd mplayer-1.0~rc1/debian/changelog

and change the first line from “mplayer (2:1.0~rc1-0ubuntu3) feisty; urgency=low” to “mplayer (3:1.0~rc1-0ubuntu3) feisty; urgency=low” – This line may look different on your ubuntu installation.

Now that the amr codecs is in the source tree, it’s time to compile our new mplayer

apt-get build-dep mplayer
cd /usr/src/mplayer/cd mplayer-1.0~rc1
dpkg-buildpackage

After it has finished compiling, these debs will be available in /usr/src/mplayer

0 vishnu@vaio:/usr/src/mplayer> ls *.deb -c1
mplayer-doc_1.0~rc1-0ubuntu3_all.deb
menblockquoter_1.0~rc1-0ubuntu3_i386.deb
mplayer-nogui_1.0~rc1-0ubuntu3_i386.deb
mplayer_1.0~rc1-0ubuntu3_i386.deb

Install what you want – this is what i did:

dpkg -i mplayer_1.0\~rc1-0ubuntu3_i386.deb \
menblockquoter_1.0\~rc1-0ubuntu3_i386.deb \
mplayer-doc_1.0\~rc1-0ubuntu3_all.deb

And you’re done!
Now you can play your 3gp videos with sound!

ps. this howto was writting without checking for spelling errors, please let me know if something does not work.

[[[[ belum di praktekkan ]]]]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s