This document in Polish
Installing mplayerplug-in
Mplayer 1.0pre5 or higher is the mimimum version of mplayer. It can be downloaded here http://www1.mplayerhq.hu/homepage/design7/dload.html
There are many other optional features that can be useful.
You will also want to download and install the codecs from here:MPlayer Codecs. The contents of the tar files (without directory names) should go into /usr/local/lib/win32
The Mozilla development files are needed to compile this code
To get the Mozilla development files there are two options
The GTK development files are needed to compile this code
To get the latest source from CVS do the following
download the source for v3.50 here: mplayerplug-in-3.50.tar.gz
then
In the mplayerplug-in directory type
INSTALLING
Per User:(This will not install the language files)
For the system: File locations may vary so you may need to look where to install these files.
Running make install as root, tries to figure out where you have mozilla install and then installs the plugins in that location. It may only install for mozilla in this case.
If you use mozilla:
To install just the language files
Do this as root.
Directions
Installing mplayerInstalling mplayerplug-in
Installing the Prerequisities for mplayer
Mplayer 1.0pre5 or higher is the mimimum version of mplayer. It can be downloaded here http://www1.mplayerhq.hu/homepage/design7/dload.html
Dependancies for mplayer
mplayer faad or faad2 2.0 | Needed for QT6 Audio |
libmp3lame | Needed for mp3 playback |
liba52 | Needed for AC-3 playback |
Compiling mplayer
Compiling mplayer can be a tricky procedure, getting a premade package is recommended. Due to quirks in the compiler, machine optimizations, library dependancies and other things. The way I compile mplayer is the followingget the ffmpeg source code in the ffmpeg source directory run the following command ./configure --enable-pp --enable-mp3lame --enable-faad --enable-a52 --enable-faac --enable-gpl Change to the mplayer source code directory and run the following commands rm -rf libavcodec rm -rf libavutil rm -rf libavformat cp -r [ffmpeg source dir]/libavcodec . cp -r [ffmpeg source dir]/libavutil . cp -r [ffmpeg source dir]/libavformat . ./configure --enable-win32 make sudo make installmplayer's configure command can take many more options to make sure you have a fully working mplayer look into the --with-livelibdir option and what it requires.
You will also want to download and install the codecs from here:MPlayer Codecs. The contents of the tar files (without directory names) should go into /usr/local/lib/win32
Compiling mplayerplug-in
The Mozilla development files are needed to compile this code
To get the Mozilla development files there are two options
- mozilla-devel package (includes pkg-config files)
The mozilla-devel package may come with your distribution and it is an optional install. Try using apt-get or yum or your package installer to obtain the package. Version 1.6 or higher are the only kits known to work.
- gecko-sdk
The gecko-sdk can be obtained from mozilla.org (version 1.6 or higher of the SDK are the only ones that work). Only use gecko-sdk 1.7 for versions of Mozilla and Firefox based on gecko 1.7. See the about dialog and check the rv: info.
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7/
Extract the tar file in some directory
The GTK development files are needed to compile this code
To get the latest source from CVS do the following
cd to some directory cvs -d:pserver:anonymous@mplayerplug-in.cvs.sourceforge.net:/cvsroot/mplayerplug-in login (just hit enter for password) cvs -z3 -d:pserver:anonymous@mplayerplug-in.cvs.sourceforge.net:/cvsroot/mplayerplug-in co mplayerplug-in or, if you have already downloaded from CVS before. cd [cvs root]/mplayerplug-in cvs update -PAdOR
download the source for v3.50 here: mplayerplug-in-3.50.tar.gz
then
tar -xzvf mplayerplug-in-3.50.tar.gz cd mplayerplug-inBUILDING
In the mplayerplug-in directory type
Compilation options --with-gecko-sdk=/path/to/gecko-sdk (replace /path/to with the correct value) --enable-gtk2 (default option, use if mozilla is linked to gtk2 libs) --enable-gtk1 (use if mozilla is linked to gtk1 libs (usually if fonts in mozilla are not smooth)) --enable-x (use if you don't know if your mozilla is linked to gtk1 or gtk2) --enable-wmp (Enable Windows Media Support, enabled by default) --enable-qt (Enable QuickTime Media Support, enabled by default) --enable-rm (Enable Real Media Support, enabled by default) --enable-gmp (Enable Google Media Support, enabled by default) --prefix (Used to set where the language files install to defaults to /usr/local) Examples: To configure with defaults: ./configure if you are using gecko-sdk do the following ./configure --with-gecko-sdk=/path/to/gecko-sdk (replace /path/to with the correct value) if you are using gecko-sdk and gtk1 ./configure --with-gecko-sdk=/path/to/gecko-sdk --enable-gtk1 If you get this error during configure: checking for mozilla-plugin... Package mozilla-plugin was not found in the pkg-config search path. You need to use the gecko-sdk option. Using gecko-sdk 1.6 with an earlier version of mozilla seems to be ok. NOTE:Using the gecko 1.7 SDK with a 1.6 version of Mozilla does not work. Use gecko-sdk 1.6 for Mozilla 1.6.x and gecko-sdk 1.7 for Mozilla 1.7.x If you can't figure out what you need try running ./whatoptions.sh in the mplayerplug-in directory. After configure is done and successful: make If during the make process you get an error about missing "mozilla-config.h" and you are not using the gecko-sdk. You need to use the gecko-sdk because your mozilla-devel package is incomplete.The results of that command should produce files called
mplayerplug-in.so mplayerplug-in.xpt mplayerplug-in-wmp.so mplayerplug-in-wmp.xpt mplayerplug-in-qt.so mplayerplug-in-qt.xpt mplayerplug-in-rm.so mplayerplug-in-rm.xpt mplayerplug-in-gmp.so mplayerplug-in-gmp.xptin the current directory.
INSTALLING
Per User:(This will not install the language files)
make install or cp mplayerplug-in*.so mplayerplug-in*.xpt ~/.mozilla/plugins
For the system: File locations may vary so you may need to look where to install these files.
Running make install as root, tries to figure out where you have mozilla install and then installs the plugins in that location. It may only install for mozilla in this case.
If you use mozilla:
cp mplayerplug-in*.so /usr/lib/mozilla/plugins cp mplayerplug-in*.xpt /usr/lib/mozilla/componentsIf you use firefox:
cp mplayerplug-in*.so /usr/lib/firefox/plugins cp mplayerplug-in*.xpt /usr/lib/firefox/components
For Debian/Ubuntu cp mplayerplug-in*.so /usr/lib/mozilla-firefox/plugins cp mplayerplug-in*.xpt /usr/lib/mozilla-firefox/componentsRestart mozilla
To install just the language files
Do this as root.
cd (to the directory where you untarred mplayerplug-in) cd mplayerplug-in cd po make install