MPlayer is a free opensource movie player which runs on Unix, Linux, Windosw, MacOSX and other operating system platforms.. It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies.
Another great feature of MPlayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, DirectFB, but you can use GGI, SDL (and this way all their drivers), VESA (on every VESA compatible card, even without X11!) and some low level card-specific drivers (for Matrox, 3Dfx and ATI), too! Most of them support software or hardware scaling, so you can enjoy movies in fullscreen. MPlayer supports displaying through some hardware MPEG decoder boards, such as the Siemens DVB, DXR2 and DXR3/Hollywood+.
MPlayer has an onscreen display (OSD) for status information, nice big antialiased shaded subtitles and visual feedback for keyboard controls. European/ISO 8859-1,2 (Hungarian, English, Czech, etc), Cyrillic and Korean fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM, SubViewer, Sami, VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub). DVD subtitles (SPU streams, VOBsub and Closed Captions) are supported as well.
For a list of supported Formats, Audio/Video codecs, Audio/Video output devices click here
To install Mplayer in openSUSE, follow the procedure listed below. I’ve tried the installation here onopenSUSE 11.0 but should work on openSUSE 103 and earlier as well.
Mplayer requires the following pre-requisite packages:
binutils (binutils)
GNU C Compiler (gcc)
Xorg/XFree86 (xorg-x11 & xorg-x11-devel)
Make utility (make)
FreeType fonts (freetype)
ALSA (alsa,alsa-firmware,alsa-utils,alsa-tools)
libjpeg (jpeg)
libpng
DirectFB
lame
zlib (zlib & zlib-devel)
LIVE555 Streaming Media (optional) needed for some RTSP/RTP streams
cdparanoia (built-in on openSUSE 11.0)
libxmms (xmms-lib) [optional]
libsmb [optional]
GTK2 (gtk2 & gtk2-devel)
Install the Pre-requisites
opensuse11:~ # yast2 –install binutils make gcc gtk2-devel lame DirectFB zlib zlib-devel xmms-lib xorg-x11-devel freetype alsa alsa-firmware alsa-tools alsa-utils jpeg libpng
To install Live555 Streaming Media
opensuse11:~ # yast2 –install gcc-c++
opensuse11:~ # wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
opensuse11:~ # tar -zxvf live555-latest.tar.gz
opensuse11:~ # cd live
opensuse11:~/live # ./genMakefiles linux
opensuse11:~live # make
opensuse11:~live # cp -r live /usr/lib
Install Mplayer
Now, that we have installed all the pre-requisites. Let’s proceed to download and install the Mplayer media player. It is recommended to install Mplayer from source.
Download the Mplayer Source
The latest source files for Mplayer can be downloaded from here
opensuse11:~ # wget http://www8.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz
Unzip & Untar Source
opensuse11:~ # tar -xjf Mplayer-1.0rc2.tar.bz2
Configure & Compile Source
opensuse11:~ # cd Mplayer-1.0rc2
opensuse11:~/ Mplayer-1.0rc2 # ./configure –enable-gui –enable-menu
where –enable-gui enables the GUI support
–enable-menu supports Onscreen Display (OSD)
opensuse11:~ # make
Install MPlayer
opensuse11:~ # make install
That completes the installation of core Mplayer. We now need to install the codecs:
Install Codecs
Download Codec
The latest Codec packages are available here
opensuse11:~ # http://www8.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
opensuse11:~ # tar -xjf essential-20071007.tar.bz2
opensuse11:~ # mv essential-20071007 /usr/local/lib/codecs
Download and Install Skins
The Skins are required to start the GUI sessions (required when GUI is enabled)
There are a lot of free Skins available here
Let’s install the first on the list “Blue”
opensuse11:~ # wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
Unzip & untar
opensuse11:~ # tar -xjf Blue-1.7.tar.bz2
opensuse11:~ # mv Blue /usr/local/share/mplayer/skins/
Mplayer looks into /usr/local/share/mplayer/skins/ directory for the directory named “default”. So, let’s duplicate “Blue” to “default”
opensuse11:~ # cp -r Blue default
Setup OSD
When we compiled with “–enable-menu” switch, it creates menu.conf & input.conf file in “etc” directory under the source folder from where you installed Mplayer. Copy these files into the /usr/local/etc/mplayer/ directory
opensuse11:~ # cd Mplayer-1.0rc2/etc/
opensuse11:~ # cp input.conf menu.conf /usr/local/etc/mplayer/
Setup Fonts
Setup a Symbolic Link to a freetype font as follows:
opensuse11:~ # ln -s /path/to/sample_font.ttf $PREFIX/share/mplayer/subfont.ttf
Example
opensuse11:~ # ln -s /usr/local/fonts/truetype/impact.ttf /usr/local/share/mplayer/impact.ttf
Ok! we are done!!!
Let’s start mplayer. To start Mplayer in GUI mode., run “gmplayer”
opensuse11:~ # gmplayer
To start Mplayer in command line. Type “mplayer” for options.
opensuse11:~ # mplayer dvd://3
Example: To start playing title 2on a DVD
MPlayer 1.0rc2-4.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Playing dvd://3.
There are 33 titles on this DVD.
There are 4 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: en aid: 128.
audio stream: 1 format: ac3 (stereo) language: sv aid: 129.
audio stream: 2 format: ac3 (stereo) language: no aid: 130.
audio stream: 3 format: ac3 (stereo) language: da aid: 131.
audio stream: 4 format: ac3 (stereo) language: fi aid: 132.
audio stream: 5 format: ac3 (stereo) language: nl aid: 133.
number of audio channels on disk: 6.
subtitle ( sid ): 0 language: sv
subtitle ( sid ): 1 language: no
subtitle ( sid ): 2 language: da
subtitle ( sid ): 3 language: fi
subtitle ( sid ): 4 language: nl
number of subtitles on disk: 5
MPEG-PS file format detected.
VIDEO: MPEG2 720×576 (aspect 2) 25.000 fps 8000.0 kbps (1000.0 kbyte/s)
…
..
.
Hope this was useful!
Very helpful, and clear, thanks!
Was going smooth until I encountered the following.
vo_ivtv.c: In function ‘ivtv_reset’:
vo_ivtv.c:79: error: storage size of ‘sd’ isn’t known
vo_ivtv.c:80: error: storage size of ‘sd1’ isn’t known
vo_ivtv.c:84: error: ‘IVTV_STOP_FL_HIDE_FRAME’ undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: ‘IVTV_IOC_STOP_DECODE’ undeclared (first use in this function)
vo_ivtv.c:97: error: ‘IVTV_IOC_START_DECODE’ undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable ‘sd1’
vo_ivtv.c:79: warning: unused variable ‘sd’
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/jsheffield/MPlayer-1.0rc2/libvo’
make: *** [libvo/libvo.a] Error 2
when i execute this command “yast2 –install binutils make gcc gtk2-devel lame DirectFB zlib zlib-devel xmms-lib xorg-x11-devel freetype alsa alsa-firmware alsa-tools alsa-utils jpeg libpng”
showed me an error that
Following packages haven’t been found on the medium:
xmms-lib
lame
Hi,
I have done the installation sucessfully, but getting the following message
“command not found”
while giving the command gmplayer, please help me.
I have the same problem as it was stated on the reply number 3….like it is showing….Plz give me reply as soon as possible..Thank You,
install -d /usr/local/bin
install -d /usr/local/share/mplayer
install -d /usr/local/share/man/man1
install -d /usr/local/etc/mplayer
if test -f /usr/local/etc/mplayer/codecs.conf ; then mv -f /usr/local/etc/mplayer/codecs.conf /usr/local/etc/mplayer/codecs.conf.old ; fi
make -C libvo libvo.a
make[1]: Entering directory `/home/mithun/Desktop/MPlayer-1.0rc2/libvo’
cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/SDL -D_REENTRANT -I/opt/kde3/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -c -o vo_ivtv.o vo_ivtv.c
vo_ivtv.c: In function ‘ivtv_reset’:
vo_ivtv.c:79: error: storage size of ‘sd’ isn’t known
vo_ivtv.c:80: error: storage size of ‘sd1’ isn’t known
vo_ivtv.c:84: error: ‘IVTV_STOP_FL_HIDE_FRAME’ undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: ‘IVTV_IOC_STOP_DECODE’ undeclared (first use in this function)
vo_ivtv.c:97: error: ‘IVTV_IOC_START_DECODE’ undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable ‘sd1’
vo_ivtv.c:79: warning: unused variable ‘sd’
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/mithun/Desktop/MPlayer-1.0rc2/libvo’
make: *** [libvo/libvo.a] Error 2
This is quite a bit late I suppose. But for whoever might be interested in the future. The libvo thing is (as is suggested by make) related to IVTV Video Out, which if you check the bottom of your ./configure output is enabled. Solution being, disable it like so: ./configure –disable-ivtv. Easy isn’t it? For anything else that you might get, do the same thing. An alternative would be to install whatever the heck is needed to make ivtv work, but that sounds like work to me…
thanks blah! this helped! better late than never, indeed
Working nice ! Easy to understand. Thanks you !
after doing ./configure –disable-ivtv
getting this error
libvo/libvo.a(video_out.o):(.data+0x48): undefined reference to `video_out_ivtv’
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
what to do help me…