Mplayer for a Windows warrior?

1 July 2007

Gregory left an interesting comment on a previous post. He had an interesting disclaimer and a question, lets deal with the question first.

I am on holiday and won't be able to access a Windows box for a while so if someone could actually try this and let me know how it works out then that would be very helpful.

> Do you know of a step by step tutorial for at least loading MPlayer and all of its prerequisite software for Windows XP?

As well as not having access to a Windows box at the minute, I have never used Mplayer on Windows (when I have been forced to use Windows I have tended to listen to music with VLC) , but I would start by downloading the Windows binaries from the mplayer homepage. It has a command line version and a GUI version also, so download both versions and see what you like best.

There are also User created packages that might be helpful.

For both versions, download the zip, extract the files and click on the exe file. There are three files that end with .exe . gmplayer in the GUI version is the graphical version which I assume is obvious how to use so I won't mention it again. The command line version has mplayer.exe which is the player, and mencoder which is the file encoding/recoding tool.

So follow this guide for how to use the command-line mplayer, and this for memcoder. It being Windows, do not forget to add .exe to the commands.

So the plan is that you would just open a DOS box (on XP it was Start then Run then type cmd then press Enter) then you type mplayer.exe filename to play a song or a video.

Path problems?

I do not claim to be a Windows expert (post Windows 98 at least), but for some reason I seem to know more than many Windows users - in the sense of know thine enemy ;).

One horrific limitation of the Windows XP command line is that it has no automatic path management, (or if it has then it is completely dumb), you often have to do this manually yourself via the Control Panel for every command line tool that you install. Yet another reason why Windows is a woeful exuse for an Operating System. Since at least the last couple of years, Linux is easier to use than Windows, especially if you try to go beyond typing a letter.

Therefore, you need to add the location of mplayer to the Windows path in order to be able to call mplayer.exe from any directory (which is what you need).

Lets assume you are a tidy boy and have put the files in C:Program FilesMplayer. Therefore I would create a variable called MplayerPath which corresponds to C:Program FilesMplayerthen add this variable to the PATH variable. Windows experts will know what to do already.

For people using Windows without really knowing anything about it, I provide an explanation below. If you are in this category, consider switching to Linux. Windows is really horrible when you get into it and changes from one bad design to another so often that you waste time learning about it; compare the fact that knowledge learned in the 1970s about Unix will still be useful for a Linux system in 2007 - good design is timeless.

Adding Mplayer to your PATH environment variable

The PATH environment variable is a list of directories (and other variables), separated by semicolons (';'). PATH is searched each time a command, executable or script is invoked without an absolute path.

So the plan is to add a new variable to your path. Note the emphasis on add, if you delete what is already there then all hell will break lose, and you may even have to reinstall Windows. So do not do this in a rush. Note. If you are heavy handed and kill your system or cause the end of the world as we know it then it is your own fault. It is at your own risk. If you pay attention then you probably will not cause any problems but do not blame me if you are an idiot and remove other things from your path.

Here is how it works on Windows XP. The 2000, NT versions should be similar, while older Windows are completely different. I have no idea how Vista works.

  1. Press the Start button, click settings and open the Control Panel.

    Next open the ‘System’ dialog.

  2. Switch to the Advanced tab, then click on the Environment Variables

    button at the bottom.

  3. This brings up another dialog. Within System Variables, click on New.

  4. In the New System Variable dialog, enter the following values:

  • Into Variable name enter MplayerPath
  • Into Variable value enter C:Program FilesMplayer
  1. Press OK. Here comes the fun part. You need to add this new variable

    to your system path. Basically the different entries in the path are separated by semicolons. In the next step you will need to add your new variable into the list. So if the last entry does not end with a semicolon then add one now.

  2. Now type the variable %MplayerPath%. Notice that it has a %percent

    sign% at the %start% and at the %end%. Then press okay, Windows may think for a little while, unless your computer is very new, then it might think quicker then you notice!

1 Brett says...

Or you could try this:

http://smplayer.sourceforge.net/windows/index_en.php

Seems to work well enough without tinkering - just a thought!

Posted at 11:34 a.m. on July 1, 2007


2 dbr says...

Or... http://mpui.sourceforge.net/ It's got a really simple UI, decent shortcuts (c for compact mode, t for always on top, then the arrow keys for skipping about, s to save a screenshot of the current video frame), and a few options like forcing other aspect ratios, and deinterlacing.. And thats it, none of the other unnecessary rubbish all these other media players have. And, it consists of about 3 files in total (the mpui binary, the mplayer binary, and the mplayer config, which can be deleted since there's no settings saved)

For videos, it's about the only application I use now, aside from for Quicktime H.264 videos (Which I use the Quicktime player for, as they had a weird overlay that screwed the colours up - But that's probably fixed now, since I've not updated it for quite a while)

Posted at 12:05 p.m. on July 1, 2007


3 Brett says...

Agreed, mpui is also excellent (just tried it out)...

Posted at 2:54 p.m. on July 1, 2007


4 Bug says...

Tell me about it. I got used to wget, then when I went back to windows for whatever reason, I was really annoyed by not being able to just simply wget stuff.

Posted at 11:58 a.m. on July 2, 2007


What do you have to say?

Show Editing Help

About

Hello, my name is Zeth, I'll be your host here.

Command Line Warriors is about taking control of your own technology, it looks at our experiences of computing; especially using GNU/Linux, the Python programming language, the command-line and issues such as techno-ethics, best practices and whatever is cool now. If you take control of your technology then you are a Warrior too!

This site is your site too which means that you can contribute and get involved. You can leave comments using the facility provided. For me, the comments and discussions are by far the best part of the site. So please do have your say!

Latest Discussions

Cupcake

July 31, 2010
Good post! You helped me a lot with my school project! CountryField(blank = True) < (K)
Countries in Django

LeshaShampoo

July 30, 2010
it was very interesting to read commandline.org.uk I want to quote your post in my blog. It can? And you et an account on Twitter?
Email Syntax Check in Python

vemma2018

July 30, 2010
I find myself coming to your blog more and more often to the point where my visits are almost daily now!
On Comment Spam

layecenda

July 30, 2010
Hello. And Bye.test :) http://idfjhvihdfiphvlajbvhalibv.com
PuTTY Series: Adding PuTTY to your system path

scuba

July 30, 2010
I’ve been visiting your blog for a while now and I always find a gem in your new posts. Thanks for sharing.
On Comment Spam

Businesking

July 30, 2010
Great site and articles for hack for win, I said Amazing post
How not to program WSGI

Tehnoking

July 30, 2010
This is Great post to learn about the hack Thumbs-up for you :D
How not to program WSGI

Syabiltech

July 30, 2010
I think this articles for master...because very hard to learning, As blogger beginners like me.
How not to program WSGI

coffeeatea

July 30, 2010
Are you looking for coffee gifts? We can tell you more about the coffee gifts including coffee machines and coffee pods.
Introducing Soturi - yet another Django blog application

noni juice

July 30, 2010
I just sent this post to a bunch of my friends as I agree with most of what you’re saying here and the way you’ve presented it is awesome.
On Comment Spam

Dion Moult

July 29, 2010
What I do know is that ever since I tried out Opera and put their tab bar on the left as a column, I've loved that layout. Back on Firefox ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

ZonaEntertainment

July 29, 2010
Wow useful articles, I'm read to learn about this and now I bookmark this to my Facebook, thanks for share!
How not to program WSGI

Giacomo

July 29, 2010
Honestly, I think both Mozilla and you are wrong :) This sort of concept adds overhead. A user would have to manage all this crap, constantly dragging and dropping, creating ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

Matija "hook" Šuklje

July 29, 2010
As a minimalist, you'll probybly moan if I mention KDE, but I'll do so anyway ;) The future I want (and actually see slowly fold out before me) is to ...
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

tahitian noni

July 28, 2010
Thank You For This Blog, was added to my bookmarks.
On Comment Spam

Rick

July 28, 2010
I already have piles. It's called A New Window.
We need a thoughout integration of the desktop and the web - not Tab Candy superfast jellyfish

Tech News

July 25, 2010
Thanks for this short tutorial...was auto-FTPing my files from my appserver to webserver for my tech news website. Everything was OK until someone hacked it. Hosting provider is now recommending ...
SFTP in Python: Really Simple SSH

naypalm

July 24, 2010
During the past 3-4 years, I and many others have enjoyed unlimited 2G/3G internet. But ever since the massive cult-like following of i Phone users in the US, most cellular ...
Calling time on mobile internet nonsense?

Steve

July 15, 2010
Very occasionally, you will run into a Java program that uses a lot of memory just to hold all the classes used. It turns out that the JVM uses a ...
Three classic command line tips

no

July 14, 2010
1. number one 2. number two 4. number four 3. number three 6. number six # first # second ## second-ay ## second-bee ### second-bee-one ### second-bee-two
An Introduction to ReStructuredText