Linux Blog

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.

Man Pages for commands in this post »

rm
tar
wget
cd
mkdir
su
sudo
mplayer

9 Comments »

209

Comment by Owen

December 14, 2007 @ 5:14 pm

This post is old check out the new version at The Linux Blog – Slackware MPlayer Setup

693

Comment by kejf

June 5, 2008 @ 7:48 am

super desc.. very thx!

951

Comment by Marcel

August 17, 2008 @ 6:37 am

Thanks for the script
One problem though the mplayer-rc1 package isn’t available on linuxpackages any more.
You can get it from here
http://www [dot] slackway [dot] org/tgz32/MPlayer-1.0rc1.tgz

953

Comment by Owen

August 18, 2008 @ 8:07 am

Thanks Marcel for the link: http://www.slackway.org/tgz32/MPlayer-1.0rc1.tgz

This script is for Slackware 12 and I believe that LinuxPackages has been updated for the new Slackware 12.1 and the new MPlayer. I’ll have to write another script to address this.

Comment by coreano0101

August 30, 2008 @ 4:23 am

hi
is perfect
i did install on slackware12.1
i had errors
see next

–2008-08-30 03:06:28– http://www2.linuxpackages.net/packages/Slackware-12.0/ken/mplayer-1.0rc1try3-i486-2kjz.tgz
Resolving www2.linuxpackages.net… 64.90.191.130
Connecting to www2.linuxpackages.net|64.90.191.130|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2008-08-30 03:06:28 ERROR 404: Not Found.

–2008-08-30 03:06:37– http://www2.linuxpackages.net/packages/Slackware-12.0/ken/ffmpeg-20070622-i486-1kjz.tgz
Resolving www2.linuxpackages.net… 64.90.191.130
Connecting to www2.linuxpackages.net|64.90.191.130|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2008-08-30 03:06:37 ERROR 404: Not Found.

–2008-08-30 03:06:37– http://www2.linuxpackages.net/packages/Slackware-12.0/ken/twolame-0.3.10-i486-1kjz.tgz
Resolving www2.linuxpackages.net… 64.90.191.130
Connecting to www2.linuxpackages.net|64.90.191.130|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2008-08-30 03:06:38 ERROR 404: Not Found.

i am sorry for my write

Comment by coreano0101

August 30, 2008 @ 4:35 am

I found the packets
all
http://isis.poly.edu/~kurt/mplayer_slackware/

Comment by hikohan

May 21, 2009 @ 1:29 am

Thanks for the help!! GREAT!! enjoyed. ^^y

Comment by Phil

May 22, 2009 @ 11:18 am

Hi
Thanks for a helpful script.
I tried this on Slackware 12.2. The whole process rolled out but I got the following when trying to fire up the program.

/usr/local# mplayer
mplayer: error while loading shared libraries: libx264.so.59: cannot open shared object file: No such file or directory.
Phil

Comment by TheLinuxBlog.com

May 22, 2009 @ 11:23 am

Hey @Phil, I think you need the x264 package. Check out linuxpackages.net to see if you can find it, download and install it.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>