OK first, HAPPY NEW YEAR...X-D
Today I just want to install a movie player for my openSUSE 11.1 box.
Well, mplayer is always my favorite one...;-)
BTW, I know there are several repositories which provided pre-built package.
Hmm..., I think I just like to do this by myself instead of using package which I don't trust (security reason...:-P).
So, here is a very simple memo for installation steps.
Basically I want to do 2 tasks:
A.) Install mplayer with GUI enabled (gmplayer).
B.) Install mplayer plug-in for Firefox web browser.
=======================
==== A. Install mplayer ====
=======================
1. Get source code. Use following command to do so:
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
There is a directory called "mplayer" which will be created under current directory for storing source code of mplayer. So you should have the write permission for this dir. Note that if you use this way to get source code (svn) you will have libav* from FFmpeg inside already.
2. Get proper binary codecs package. Go to here and look for your CPU arch. type and download a binary codecs package. Note the if you used a wrong codecs package, the compile and install process will be failed. In my box I use Linux x86 20071007.
3. Get mplayer skin for enabling GUI feature. Go to here and scroll down the page to skins section. Select any skin you prefer and download it. I use Blue.
4. Install the binary codecs package. In my box I install into /usr/local/lib/codecs which is the default path that mplayer will look for. Issue followinig commands:
$ tar jxvf essential-20071007.tar.bz2
$ cd ./essential-20071007/
$ sudo mkdir -p /usr/local/lib/codecs
$ sudo cp -rfv ./* /usr/local/lib/codecs
5. Compile and install mplayer w/ GUI enabled. Issue following commands:
$ cd ./mplayer/
$ ./configure --enable-gui --enable-menu
$ make
$ sudo make install
6. Create a symbolic link for ttf. It will be used for mplayer OSD. In my box I issue following commands:
$ cd /usr/local/share/mplayer
$ sudo ln -s /usr/share/fonts/truetypes/uming.ttf subfont.ttf
7. Install the skin for GUI (gmplayer). Issue following commands:
$ tar jxvf ./Blue-1.7.tar.bz2
$ cd ./Blue/
$ sudo mkdir -p /usr/local/share/mplayer/skins/default
$ sudo cp -rfv ./* /usr/local/share/mplayer/skins/default/
8. It's done!! Let's play!!...;-) Just type mplayer or gmplayer with a movie file.
=======================
==== B. Install plug-in ====
=======================
1. Since the browser plug-in path between every distros is a little bit different. So we need to identify where we should copy our mplayer plug-in to. An easy way to do this just search a plug-in which was already installed for your browser. In my box I type:
$ sudo find / -name npwrapper.libflashplayer.so -print
Then I know the plug-ins are in the path /usr/lib64/browser-plugins/.
2. Grep the source package from here.
3. Un-tar the package and read the README/INSTALL first. Then I know that I have to install Mozilla devel files or Gecko SDK to compile mplayer plug-in. Issue following commands to install Gecko SDK package on openSUSE 11.1:
$ zypper search -d gecko
$ sudo zypper install mozilla-xulrunner190-devel
4. Change to mplayer-plugin's directory. And compile it:
$ cd ./mplayerplug-in-3.55/
$ ./configure --with-gecko-sdk=/path/to/gecko-sdk (replace /path/to with the correct value on your system)
$ make
5. Install *.so and *.xpt files, close your Firefox now and:
$ sudo cp mplayerplug-in*.so /usr/lib64/browser-plugins/
$ sudo cp mplayerplug-in*.xpt /usr/lib64/firefox/components/
6. Bingo! Launch your Firefox and enter "about:plugins" in the URL box then hit Enter, check the mplayer plug-ins are all installed...;-)
Cyber memos for my personal knowledge.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment