How to install new version of mplayerplug-in under Hoary and Breezy
0.0 Preinstallation
0.0.1 Remove any of your mplayerplug-in
If you compiled it.
Code:
dpkg -r mplayerplug-in
or if you apt-get it
Code:
sudo apt-get remove mozilla-mplayer
0.1 Hoary
Make sure that you have all extra repositories in your sources.list
Just to be surtain check if w32codecs and mplayer are installed
0.2 Breezy
You have to enable multiverse repositories
0.2.1 Mplayer
add folowing line in-to /etc/apt/sources.list
Code:
deb http://si.archive.ubuntu.com/ubuntu breezy multiverse
Than install mplayer
Code:
sudo apt-get instal mplayer-586
sudo apt-get install mplayer-fonts
0.2.2 W32codecs
Download package from marillat repositories. I know that this in not best solution but...
Code:
wget ftp://ftp.nerim.net/debian-marillat/pool/main/w/w32codecs/w32codecs_20050412-0.0_i386.deb
Install them with
Code:
dpkg -i w32codecs_20050412-0.0_i386.deb
0.2.3 gettext
You need this when compiling. Make command needs msgfmt and gettext has this included
Code:
sudo apt-get install gettext
1. Installation
1.1 Grab latest mplayerplug-in source from here:
Code:
wget http://heanet.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-3.11.tar.gz
1.2 Untar the mplayerplug-in source
Code:
tar -xvzf mplayerplug-in-3.11.tar.gz
1.3 Prepare dependencies for the build:
Code:
sudo apt-get install firefox-dev libxpm-dev libgtk2.0-dev build-essential checkinstall
1.4 Grab gecko-sdk from here:
Code:
wget http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.8/gecko-sdk-i686-pc-linux-gnu-1.7.8.tar.gz
1.5 Untar gecko-sdk:
Code:
tar -xvzf gecko-sdk-i686-pc-linux-gnu-1.7.8.tar.gz
1.6 Compile mplayerplug-in:
Code:
cd mplayerplug-in
./configure --with-gecko-sdk=../gecko-sdk
make
sudo checkinstall -D
1.7.1 This step is my conclusion and I don't know if its tru but it includes some xpt files which you cp with 1.8 step so...
At first prompt press enter. Than tipe YES if you want a list of files which will be included in packages. You exit with q. Than installation program asks you if you want these files included tipe YES. Its smart to include them beacause you don't have to do 1.8 step. If you choose no than don't skip 1.8 step.
1.7.2 Press enter at each prompt until you get to "Enter a number to change any of them or press ENTER to continue:"
5.1 Type "3" without quotes. Press Enter.
5.2 Type "3.11" without quotes. Press Enter
5.3 Press Enter again.
1.8 the "make install" (you should remove the old mozilla-mplayer package prior this step!)
Code:
sudo cp mplayerplug-in*.so /usr/lib/mozilla-firefox/plugins
sudo cp mplayerplug-in*.xpt /usr/lib/mozilla-firefox/components
sudo cp mplayerplug-in.types /etc
sudo cp mplayerplug-in.conf /etc
1.9 Prepare the config file:
Code:
sudo gedit /etc/mplayerplug-in.conf
Edit it like this:
Code:
#debug=0
#logfile=$HOME/mpp.log
vo=xv,x11
ao=esd,oss,arts
#download=1
#dload-dir=$HOME/tmp
#keep-download=0
#noembed=0
cachesize=1024
#use-mimetypes=0
#enable-real=0
#enable-wm=1
#enable-qt=1
#enable-mpeg=1
#enable-ogg=1
#enable-smil=1
#qt-speed=med
#rtsp-use-tcp=0
#nomediacache=0
#framedrop=0
#autosync=0
#mc=1
#black-background=0
#user-agent=NSPlayer
As you see we've changed "vo" to "xv,x11", "ao" to "esd,oss,arts" and "cachesize" to "1024".
1.10 Restart Firefox and there you are!!!
Based on Drigloi's post
Bookmarks