How to install Mplayer on Ubuntu 16.04
How to install Mplayer on Ubuntu 16.04
Mplayer is a free and open media player software that can be used to play a wide variety of media formats, mostly FFmpeg libraries and can also save all streamed content to a file locally. This tutorial will explain how to install Mplayer on Ubuntu.
Installation procedure
To start the installation procedure, add the repo in the target system and run the following command.
root@linuxhelp1:~# add-apt-repository ppa:djcj/hybrid
Hybrid is a multi platform (Linux/Mac OS X/Windows) Qt based frontend for a bunch of other tools which can convert nearly every input to x264/x265/Xvid/VP9/... + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.
http://www.selur.de/
http://forum.selur.de/topic612-hybrid-tools-ubuntu-packages.html
More info: https://launchpad.net/~djcj/+archive/ubuntu/hybrid
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpi6fl8nfr/secring.gpg' created
gpg: keyring `/tmp/tmpi6fl8nfr/pubring.gpg' created
gpg: requesting key D4B4972B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpi6fl8nfr/trustdb.gpg: trustdb created
gpg: key D4B4972B: public key " Launchpad PPA for djcj" imported
gpg: Total number processed: 1
gpg:imported: 1(RSA: 1)
OK
The repository is installed successfully. Now update the changes of the repo in the system.
root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial InRelease [17.5 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 Packages [15.3 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:7 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main i386 Packages [15.3 kB]
Get:8 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main Translation-en [9,480 B]
Fetched 364 kB in 4s (79.8 kB/s)
Reading package lists... Done
The changes has been reflected in the target system. Now install the Mplayer package in the system and run the following command.
root@linuxhelp1:~# apt-get install mplayer -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
esound-common libaacs0 libass5 libaudiofile1 libbdplus0 libbluray1 libdca0 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0
libesd0 libfaad2 libgif7 libmp3lame0 libmpeg2-4 libopenal-data libopenal1 libschroedinger-1.0-0 libsdl1.2debian libvdpau1
libvorbisidec1 libx264-148 libxvidcore4 mesa-vdpau-drivers symlinks vdpau-driver-all
Suggested packages:
libbluray-bdj libdvdcss2 pulseaudio-esound-compat mplayer-doc netselect | fping libvdpau-va-gl1 nvidia-vdpau-driver
nvidia-legacy-340xx-vdpau-driver
The following NEW packages will be installed:
esound-common libaacs0 libass5 libaudiofile1 libbdplus0 libbluray1 libdca0 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0
libesd0 libfaad2 libgif7 libmp3lame0 libmpeg2-4 libopenal-data libopenal1 libschroedinger-1.0-0 libsdl1.2debian libvdpau1
libvorbisidec1 libx264-148 libxvidcore4 mesa-vdpau-drivers mplayer symlinks vdpau-driver-all
0 upgraded, 28 newly installed, 0 to remove and 475 not upgraded.
Need to get 11.5 MB of archives.
After this operation, 46.7 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libdirectfb-1.2-9 amd64 1.2.10.0-5.1 [606 kB]
Get:2 http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial/main amd64 mplayer amd64 2:1.3.0+ppa4-2~xenial [6,698 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libaudiofile1 amd64 0.3.6-2ubuntu0.16.04.1 [94.4 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 esound-common all 0.2.41-11 [9,558 B]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libesd0 amd64 0.2.41-11 [16.7 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libfaad2 amd64 2.8.0~cvs20150510-1 [164 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libmpeg2-4 amd64 0.5.1-7 [59.1 kB]
.
.
.
Setting up libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Setting up libx264-148:amd64 (2:0.148.2643+git5c65704-1) ...
Setting up libxvidcore4:amd64 (2:1.3.4-1) ...
Setting up mesa-vdpau-drivers:amd64 (12.0.6-0ubuntu0.16.04.1) ...
Setting up libass5:amd64 (0.13.1-1) ...
Setting up libvorbisidec1 (1.0.2+svn18153-0.2) ...
Setting up symlinks (1.4-3) ...
Setting up mplayer (2:1.3.0+ppa4-2~xenial) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
The Mplayer package has been installed successfully. To know about the options and help of the Mplayer package, enter the following command.
root@linuxhelp1:~# mplayer --help
Creating config file: /home/user1/.mplayer/config
Usage:mplayer [options] [url|path/]filename
Basic options: (complete list in the man page)
-vo < drv> select video output driver (' -vo help' for a list)
-ao < drv> select audio output driver (' -ao help' for a list)
vcd://< trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://< titleno> play DVD title from device instead of plain file
-alang/-slangselect DVD audio/subtitle language (by 2-char country code)
-ss < position> seek to given (seconds or hh:mm:ss) position
-nosounddo not play sound
-fsfullscreen playback (or -vm, -zoom, details in the man page)
-x < x> -y < y> set display resolution (for use with -vm or -zoom)
-sub < file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist < file> specify playlist file
-vid x -aid yselect video (x) and audio (y) stream to play
-fps x -srate ychange video (x fps) and audio (y Hz) rate
-pp < quality> enable postprocessing filter (details in the man page)
-framedropenable frame dropping (for slow machines)
Basic keys: (complete list in the man page, also check input.conf)
< -or-> seek backward/forward 10 seconds
down or upseek backward/forward1 minute
pgdown or pgupseek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACEpause movie (press any key to continue)
q or ESCstop playing and quit program
+ or -adjust audio delay by +/- 0.1 second
ocycle OSD mode:none / seekbar / seekbar + timer
* or /increase or decrease PCM volume
x or zadjust subtitle delay by +/- 0.1 second
r or tadjust subtitle position up/down, also see -vf expand
* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
MPlayer 1.3.0-5.4.0 (C) 2000-2016 MPlayer Team
For removing the package, enter the remove command and press y to continue.
root@linuxhelp1:~# apt-get remove mplayer -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mplayer
0 upgraded, 0 newly installed, 1 to remove and 475 not upgraded.
After this operation, 17.1 MB disk space will be freed.
(Reading database ... 176892 files and directories currently installed.)
Removing mplayer (2:1.3.0+ppa4-2~xenial) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Wasn' t that an easy installation? Mplayer is an audio player that can support many formats.
#apt-get remove mplayer -y
# /home/user1/.mplayer/config