Linux Blog

Slackware MPlayer Setup

Filed under: General Linux,Linux Software,The Linux Blog News — TheLinuxBlog.com at 12:03 am on Tuesday, December 4, 2007

I’ve updated the MPlayer Installer and uploaded it.

Instructions:

1. Download The MPlayer Installer that I made (Right click Save Link As).

2. Change to root user and run the MPlayer Installer OR run the MPlayer Installer with sudo as followed:

bash-3.1$ su root

Password:

bash-3.1# sh mplayer_setup.sh

OR

sudo sh mplayer_setup.sh

Changes to this version:
mplayer-1.0rc1try3-i486-2kjz.tgz is now being used as mplayer-1.0rc1-i486-1goa.tgz is no longer available.
Instead of using the essential codecs pack I am now using the all-20071007.tar.bz2 package. This includes so many more codecs. Even apple.com trailers work for me now.
A bunch of dependencies / libraries are now being downloaded and installed here is the list:

a52dec-0.7.4-i486-1kjz.tgz
libmpcdec-1.2.6-i486-1gds.tgz
libmpeg3-1.7-i486-1gds.tgz
avifile-20071003-i486-1gds.tgz
mpeg2dec-0.4.1-i486-1gds.tgz
faac-1.25-i486-1gds.tgz
faad2-2.6.1-i486-1wim.tgz
speex-1.2beta2-i486-1kjz.tgz
ffmpeg-20070622-i486-1kjz.tgz
twolame-0.3.10-i486-1kjz.tgz
jack-0.103.0-i486-1kjz.tgz
x264-20070722-i686-1mfb.tgz
lame-3.97-i486-1kjz.tgz
xmms-1.2.11-i486-1McD.tgz
libdv-1.0.0-i486-1gds.tgz
xvidcore-1.1.3-i486-1kjz.tgz
mplayerplug-in-3.45-i486-1kjz.tgz
libdc1394-1.2.2-i486-1gds.tgz

Notes:
The following error is caused because samba is not installed:

mplayer: error while loading shared libraries: libsmbclient.so.0: cannot open shared object file: No such file or directory

If you run into any other problems, as always you can e-mail me (owen @ thelinuxblog.com) for help.
Because of all the changes the line by line breakdown of the installer from: Slackware 12 – MPlayer Setup in 3 Easy Steps post is no longer accurate.

Slackware 12 – MPlayer Setup in 3 Easy Steps

Filed under: General Linux — TheLinuxBlog.com at 9:46 am on Thursday, September 6, 2007

I made a quick installer script that will install MPlayer 1.0rc1 with the essential codecs pack and the Firefox plugin on a new installation of Slackware 12. With this script you should be able to get MPlayer set up on Slackware 12 in 3 easy steps.

1. Download The MPlayer Installer that I made (Right click Save Link As).
2. Change to root user and run the MPlayer Installer OR run the MPlayer Installer with sudo as followed:

bash-3.1$ su root
Password:
bash-3.1# sh mplayer_setup.sh

OR

sudo sh mplayer_setup.sh

3. If everything installed smoothly you can remove the mplayer directory and all files inside it. If it failed then all you need to do is (as root) removepkg on all of the .tgz files and do a rm /usr/lib/codecs/*.

Firefox should be restarted after the script has run. Test Firefox by going to various media sites, one I like to use is Apple Trailers (Because of the quality and speed). If you could contact me and let me know if the installer worked or failed I would appreciate it.

Line by line breakdown of the installer:

mkdir mplayer; cd mplayer;

Creates the mplayer directory and moves into it.

wget http://www2.linuxpackages.net/packages/Slackware-12.0/X11/MPlayer/mplayer-1.0rc1-i486-1goa.tgz; installpkg mplayer-1.0rc1-i486-1goa.tgz

Gets the mplayer-1.0rc1-i486 package from linuxpackages.net then installs the package

wget http://www2.linuxpackages.net/packages/Slackware-12.0/Library/mplayerplug-in/mplayerplug-in-3.45-i686-1amg.tgz; installpkg mplayerplug-in-3.45-i686-1amg.tgz

Gets the mplayer plug-in for Firefox and installs it

wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

Downloads the essential codecs pack from mplayerhq.hu

tar xvjf essential-20061022.tar.bz2; mv essential-20061022/* /usr/lib/codecs; rm -rf essential-20061022

extracts the essential codecs package to one of the directories MPlayer looks for codecs in and removes the directory.