mplayer播放3gp文件有图无声,如何解决?

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
drc1234
帖子: 632
注册时间: 2008-08-31 10:09

mplayer播放3gp文件有图无声,如何解决?

#1

帖子 drc1234 » 2008-09-24 23:03

mplayer播放3gp文件有图无声,如何解决?
头像
drc1234
帖子: 632
注册时间: 2008-08-31 10:09

Re: mplayer播放3gp文件有图无声,如何解决?

#2

帖子 drc1234 » 2008-12-02 17:27

# svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
# wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
# wget http://ftp.penguin.cz/pub/users/utx/amr ... .1.tar.bz2
# wget http://ftp.penguin.cz/pub/users/utx/amr ... .2.tar.bz2

* Extract the files.
# tar xvjf amrnb-7.0.0.1.tar.bz2
# tar xvjf amrwb-7.0.0.2.tar.bz2
# tar xvjf Blue-1.7.tar.bz2

* Compile and install amrnb
# cd amrnb-7.0.0.1
# ./configure --prefix=/usr
# make
# sudo make install

Note: we need to specify --prefix=/usr because: see my previous post

* Compile and install amrwb
# cd ../amrwb-7.0.0.2/
# ./configure --prefix=/usr
# make
# sudo make install

* We can now compile MPlayer.
# cd ../mplayer
If you need GMPlayer (GUI) please use --enable-gui.
For more configuration options see:
# ./configure --help

I will enable GUI this time because I want to show how we can install Skins for it.
# ./configure --enable-gui
After this you can read what will be enabled and disabled, what you will see will be enough.

Now we can compile and install it:
# make
# sudo make install

NOTE: it seems that the current Makefile is broken so the GUI wont be installed we need to execute:
# sudo make install-gui

* Install the Skin and Font.
# cd ..

This will copy the Blue directory recursively to /usr/local/share/mplayer/skins
# sudo cp -R Blue /usr/local/share/mplayer/skins

We need to create a symlink because else MPlayer won't recognize it:
# sudo ln -s /usr/local/share/mplayer/skins/Blue /usr/local/share/mplayer/skins/default

For subtitles and menus we need a font:
So, we create a symlink.
# ln -s /usr/share/fonts/truetype/freefont/FreeSans.ttf ~/.mplayer/subfont.ttf

* Remove the "working directry".
# cd ..
# rm -rf ~/build
NOTE: You can keep this time at least the mplayer directory if you want to weekly checkout the sources and rebuild it.

Now you can enjoy your movies :)

PS: if something is not clean or it fails somewhere, please leave a comment or:
- you can subscribe to MPlayer mailing lists at the MPlayer site
- you can enter #MPlayer at Freenode
回复