All-in-one media player

For a long time, Linux has lacked an all-in-one media player along the lines of Windows Media Player. All this changed with the launch of MPlayer, an all-purpose media player and encoder supporting most popular audio and video file formats. In this column, we preview the wide range of features in MPlayer 1.0.

Features

MPlayer (www.mplayerhq.hu/homepage) supports most popular video and audio formats very well. QuickTime, MPEG, DivX... if you can name it, MPlayer probably supports it. MPlayer achieves this high level of compatibility through a combination of open source implementations of popular codecs and the use of many codecs compiled originally for Windows. The support for Windows codecs is particularly useful as some are heavily protected by patents and could not legally be implemented as open source.

MPlayer can also play DVDs and VCDs. To play a DVD with MPlayer you may need to make a symbolic link for your DVD-ROM drive so MPlayer can find it. If you encounter problems with MPlayer unable to locate /dev/dvd, in a shell as root type the following:

$ ln -s /dev/cdrom /dev/dvd

When you first try to play a DVD with MPlayer it will need to decrypt each track. This may take several minutes, but each time you play the DVD in future this will not be necessary.

The MPlayer GUI is easy to use. Once started, right-click on the playback window to access most of the functions of the player. Here you can select the type of media to play (video file, DVD, VCD, etc.), resize the screen and access the preferences control (see here for a screenshot).

The preferences menu shows off the flexibility of MPlayer. A particularly useful feature is the audio output plug-in section, where you can select the PCM output plug-in which allows you to save the audio from any media being played to a .wav file on your hard disk. Most aspects of MPlayer can be customised from the preferences menu.

The encoder portion of MPlayer is a very handy tool if you’re into editing video in any way. MEncoder is capable of converting between any of the formats supported by the player while also performing useful tasks such as resizing and dropping frames. The range of functions provided by MEncoder is too long to list here so, to find out more, try typing "mencoder" in a shell and reading the output.

Installation

Installing MPlayer from source is quite an involved process. There are several packages you must download from the MPlayer Web site to install the program, all available from www.mplayerhq.hu/homepage/dload.html. The following instructions will get you started.

Before starting to compile MPlayer, you will need to install a collection of video and audio codecs. A codec is a method of compression for video or audio, for example RealMedia or MPEG. The MPlayer codecs can be downloaded from www.mplayerhq.hu/homepage/dload.html. Your best bet is to download the first collection, named extralite.tar.bz2. Once downloaded, untar the collection and move its contents to /usr/local/lib/codecs. You will probably need to make this directory before moving the codecs.

Next, you will need the source code to MPlayer. Once downloaded, untar and change into the directory created. In a shell, type the following to compile and install MPlayer:

$ ./configure --with-codecsdir=/usr/local/lib/codecs --enable-gui$ make $ make install

You will need to be the super user (root) to execute the last command. Compiling MPlayer in this way requires the GTK+ 1.2 development library to be installed. Your distribution will include it.

Before you can begin to use MPlayer you will need to download and install a skin and the correct fonts. There are many skins available for MPlayer, a good starter being Blue.tar.bz2. To install it, type the following:

$ bunzip2 -c Blue.tar.bz2 | tar xv $ mv Blue ~/.mplayer/Skin/default

You may need to create the directory ~/.mplayer/Skin before executing the above. To install the necessary fonts, first download "Arial - Western (ISO 8859-1)" from the MPlayer Web site. Type the following to install the fonts:

$ bunzip2 -c font-arial-iso-8859-1.tar.bz2 | tar xv $ cd font-arial-iso-8859-1/font-arial-18-iso-8859-1/ $ cp * ~/.mplayer/font

You may need to create ~/.mplayer/font before executing the above instructions. The player portion of MPlayer can be launched from within a shell by typing:

$ mplayer

or a GUI version can be started with the command:

$ gmplayer

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Alastair Cousins

PC World
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?