Simple Video Player For Linux System

April 9, 2013 | By
| Reply More

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 http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz

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 ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.gz

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

Filed Under : OPEN SOURCE TOOLS

Tagged With :

Free Linux Ebook to Download

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.