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

Essex Web Design

September 3, 2010
A lot of contract providers give you free internet usage now, but if you have Pay As You Go, then you are going to be paying heavy prices.
Calling time on mobile internet nonsense?

Krasochka

September 2, 2010
Hack again?!
Adding more terminals to your function keys

GenryFlorist

September 2, 2010
<b>Cheap flowers delivery around the world!</b> Celebrate summer with our gorgeous flowers. They?re the perfect gift for any summer occasion. From birthdays to anniversaries, we offer beautiful flowers, lush plants, ...
Burning an iso to CD on Windows

auto-financing.co.cc

September 2, 2010
auto-financing
ReStructuredText tables and doctests

rubaxa

September 1, 2010
FTP = NOT RANDOM software Dominated hands postflop suckout often on all-ins. EX. AK vs. A9 or KQ vs. K6. Both players hit top pair. Bad player goes all in ...
Burning an iso to CD on Windows

empodayaddelm

September 1, 2010
Sorry admin - my post is test
This Week: Heroes and Monsters

increase synthroid dosage

September 1, 2010
Latest world news: 1 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/viagra-cialis-buy-no>buy cheap cialis generic levitra viagra</a> Viagra 2 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/buy-viagra-online-at-lowest>rainbowpush discussion board buy viagra</a> Viagra 3 <a target="_blank" class="ext" href=http://www.maktabti.org/profiles/blogs/how-to-get-generic-brand>search viagra ...
SFTP in Python: Paramiko

Lacilslaw

September 1, 2010
HYUN JAIMIE enniless and homele JAMILA
This Week: Heroes and Monsters

domaserisk

August 31, 2010
who was shaking his head back and forth knowingly Grissom shifted his eyes over at Brass,
How I Removed Windows from my Laptop

get ready loan

August 30, 2010
Though, by the you kill the legitimate PC user from visiting the site. Also, think about the dynamic IP's issue.
Only the penitent man will pass - on captchas and cotton wool

Packers and movers in pune

August 30, 2010
The topic you disscussed here is very amazing, informative and useful in future...
On Comment Spam

serhanters1

August 30, 2010
?? ???????? ??... ??????...... ??. ????????? ??? ??? ???????D ???????? ??. ????? ????? ???? ??? ???=) ?? ?????- http://letitbit.net/download/8746.894a84bc20f38f1661895aeee0/stereokartinki.html ???http://f-zona.ru ? ? ?? ????????????
Burning an iso to CD on Windows

strona startowa

August 29, 2010
Thanks For This Post, was added to my bookmarks.
Python CGI contact forms

lerexottori

August 29, 2010
?????????????? ??????????
Adding more terminals to your function keys

KelpAugmeme

August 29, 2010
aofaapsymp, http://forums.quark.com/members/jennaq.aspx online stock trading broker, rdgofzary
PuTTY Series: Adding PuTTY to your system path

Cheeday

August 28, 2010
What flowers do you like?
This Week: Heroes and Monsters

magfcvb

August 28, 2010
??????? ?????????????? ?????? - ????? ?????? ?????????????? ??????, ?????????????? ?????? ???????, ?????????????? ?????? crosman, ???? ??????????????? ??????, ?????????????? ?????? ?????? ????????. ???? magazin-oruzhie.ru
Include ODF support in the Linux Standard Base?

noni

August 28, 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

Latenadsfes

August 28, 2010
http://mynewblog.for-breastcancer.com/ http://mynewblog.photoblogcentral.com/ http://ilovezebras.thechicks.org/ http://mynewblog.cyberbardsymposium.com/ http://wewphost.com/ilovezebras/
Burning an iso to CD on Windows

LeupoldEst

August 28, 2010
pretty cool stuff here thank you!!!!!!!
OOXML Vote Coverage