Simple Video Player For Linux System

Nowadays, if we want install a video player on our Linux machine, we often search the video software package that compatible with our system and run a command or simply do a double click to start set up process with GUI. For example, we know that the Ubuntu support the user about install software with its Ubuntu Software Center. Users only need open Ubuntu Software Center, typing to search and choose the video player they love then click to install. So with the new Linux distributions, it’s is easy to found a stable and supported video player to enjoy video on our Linux machine. However, If we want install a video player on an old Linux machine, we can’t find any supported software package that compatible with old Linux systems (for example Linux SUSE 10.4 will be used to demonstration in this article). In this case we must compile and install our video player from source.

The simplest video player that mentioned at the title is MPlayer (Mplayer News). In this article, the source code of MPlayer was compiled an install successfully on many Linux system, both old and new Linux distribution (SUSE 10.4, 11.2, RedHat 6.3, Ubuntu 10.4, …). Certainly, Mplayer source code require system have a Gnome interface in order that video can be played.

The following steps present how to install MPlayer on Linux machine from source its source code

Step 1: Download, untar and install YASM package

Yasm is a critical library for DIY compilation of multithreaded mplayer. Download YASM with wget

# wget

install yasm

Untar yasm-1.2.0.tar.gz with

# tar xvzf yasm-1.0.1.tar.gz

Enter folder yasm-1.2.0 and run configure file

# cd yasm-1.2.0
# /Desktop/yasm-1.2.0> ./configure
# /Desktop/yasm-1.2.0> make

yasm package

Then install YASM

# /Desktop/yasm-1.2.0> sudo make install

Step 2: Download, unzip and install MPlayer

Download MPlayer source code in .tar.gz to avoid .tar.xz

# ftp

download  mplayer

Untar MPlayer-1.1.tar.gz with

# tar –zxvf MPlayer-1.1.tar.gz

Enter folder MPlayer-1.1and run configure file

# cd MPlayer-1.1
# /Desktop/ MPlayer-1.1> ./configure

Important notice: The make command should be run with parameter V=1 to avoid some environmental errors and increase probability of success.

# /Desktop/ MPlayer-1.1> make V=1
# /Desktop/ MPlayer-1.1> sudo make install

Step 3: Play video from command line

To play a video with MPlayer from command line run

# mplayer video_file

This version of MPlayer and play many basic format of video, for example: .mpg, .mpeg, .avi, .3gp, .mp4 etc

mplayer command line

Bobbin Zachariah 9:15 am

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.