How to install MPS-Youtube on Ubuntu

How to install MPS-Youtube on Ubuntu

Installation procedure

To start the installation procedure, first update the target system by executing the apt-get update command.


root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease      
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease     
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done

Now install the package for MPS-youtube and press y to continue with the installation process.


root@linuxhelp1:~# apt-get install mps-youtube -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  ffmpeg i965-va-driver libaacs0 libass5 libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5 libavformat-ffmpeg56 libavresample-ffmpeg2
  libavutil-ffmpeg54 libbdplus0 libbluray1 libbs2b0 libcrystalhd3 libdc1394-22 libdvdnav4 libdvdread4 libenca0 libflite1 libgme0 libgsm1
  libguess1 libmodplug1 libmp3lame0 libopenal-data libopenal1 libopencv-core2.4v5 libopencv-imgproc2.4v5 libopenjpeg5 libpostproc-ffmpeg53
  librubberband2v5 libschroedinger-1.0-0 libsdl1.2debian libsdl2-2.0-0 libshine3 libsnappy1v5 libsndio6.1 libsodium18 libsoxr0 libssh-gcrypt-4
  libswresample-ffmpeg1 libswscale-ffmpeg3 libtbb2 libtwolame0 libva-wayland1 libva-x11-1 libva1 libvdpau1 libx264-148 libx265-79 libxvidcore4
  libzmq5 libzvbi-common libzvbi0 mesa-vdpau-drivers mpv python-pkg-resources python3-pafy rtmpdump va-driver-all vdpau-driver-all
  vdpau-va-driver xclip youtube-dl
Suggested packages:
  ffmpeg-doc libbluray-bdj firmware-crystalhd libdvdcss2 sndiod python-setuptools libfglrx-amdxvba1 libvdpau-va-gl1 nvidia-vdpau-driver
  nvidia-legacy-340xx-vdpau-driver
.
.
.
Setting up xclip (0.12+svn84-4) ...
Setting up python3-pafy (0.3.80-1build1) ...
Setting up mps-youtube (0.2.5-5) ...
Setting up rtmpdump (2.4+20151223.gitfa8646d-1build1) ...
Setting up youtube-dl (2016.02.22-1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...


The MPS-youtube package is installed successfully in the terminal. Then install MPlayer package and press y to continue with the installation process.


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 liba52-0.7.4 libaudiofile1 libdca0 libdirectfb-1.2-9 libesd0 libfaad2 libgif7 libmad0 libmpeg2-4 libmpg123-0 libvorbisidec1
Suggested packages:
  pulseaudio-esound-compat mplayer-doc netselect | fping
The following NEW packages will be installed:
  esound-common liba52-0.7.4 libaudiofile1 libdca0 libdirectfb-1.2-9 libesd0 libfaad2 libgif7 libmad0 libmpeg2-4 libmpg123-0 libvorbisidec1
  mplayer
0 upgraded, 13 newly installed, 0 to remove and 469 not upgraded.
Need to get 3,661 kB of archives.
After this operation, 9,628 kB 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://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libaudiofile1 amd64 0.3.6-2ubuntu0.16.04.1 \[94.4 kB\]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 esound-common all 0.2.41-11 \[9,558 B\]                                           
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libesd0 amd64 0.2.41-11 \[16.7 kB\]                                               
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libfaad2 amd64 2.8.0~cvs20150510-1 \[164 kB\]                                     
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libmad0 amd64 0.15.1b-8ubuntu1 \[71.5 kB\]                                        
Get:7 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libmpeg2-4 amd64 0.5.1-7 \[59.1 kB\]                                              
Get:8 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libdca0 amd64 0.0.5-7build1 \[93.7 kB\]                                            
Get:9 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 liba52-0.7.4 amd64 0.7.4-18 \[33.8 kB\]                                           
Get:10 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgif7 amd64 5.1.4-0.3~16.04 \[30.5 kB\]                                   
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libmpg123-0 amd64 1.22.4-1 \[124 kB\]                                            
Get:12 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libvorbisidec1 amd64 1.0.2+svn18153-0.2 \[83.0 kB\]                              
Get:13 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 mplayer amd64 2:1.2.1-1ubuntu1 \[2,275 kB\]                              
Fetched 3,661 kB in 35s (103 kB/s)                                                                                                              
Selecting previously unselected package libdirectfb-1.2-9:amd64.
(Reading database ... 177900 files and directories currently installed.)
Preparing to unpack .../libdirectfb-1.2-9\_1.2.10.0-5.1\_amd64.deb ...
.
.
.
Setting up libmpg123-0:amd64 (1.22.4-1) ...
Setting up libvorbisidec1 (1.0.2+svn18153-0.2) ...
Setting up mplayer (2:1.2.1-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...


To open MPS-youtube tool run the following command and execute it.


root@linuxhelp1:~# mpsyt
                                        \_ \_\_ \_\_\_  \_ \_\_  \_\_\_       \_   \_  \_\_\_  \_   \_| |\_ \_   \_| |\_\_   \_\_\_
                                       | ' \_ \` \_ | ' \_ / \_\_|\_\_\_\_\_| | | |/ \_ | | | | \_\_| | | | ' \_  / \_ 
                                       | | | | | | |\_) \\\_\_ \\\_\_\_\_\_| |\_| | (\_) | |\_| | |\_| |\_| | |\_) |  \_\_/
                                       |\_| |\_| |\_| .\_\_/|\_\_\_/      \\\_\_, |\\\_\_\_/ \\\_\_,\_|\\\_\_|\\\_\_,\_|\_.\_\_/ \\\_\_\_|
                                                 |\_|              |\_\_\_/ v0.2.5

Enter /search-term to search or \[h\]elp                                                                                                           
>  

To configure the MPS- youtube to play only video files and not audio files is because of the default configuration settings. Run the below command to disable the audio mode.


\>  set search\_music false
Key                 Value                                                                                                                   
  api\_key           : AIzaSyCIM4EzNqi1in22f4Z3Ru3iYvLaY8tc3bo
  checkupdate       : True
  colours           : True
  columns           :
  ddir              : /home/user1/Downloads/mps
  download\_command  :
  encoder           : 0 \[None\]
  fullscreen        : False
  max\_res           : 2160p
  notifier          :
  order             : relevance
  overwrite         : True
  player            : mpv
  playerargs        :
  search\_music      : False
  show\_mplayer\_keys : True
  show\_status       : True
  show\_video        : False
  user\_order        :
  window\_pos        :
  window\_size       :
search\_music set to False


Next enable the show video option by executing the following command.


\>  set show\_video true
Key                 Value                                                                                                                    
  api\_key           : AIzaSyCIM4EzNqi1in22f4Z3Ru3iYvLaY8tc3bo
  checkupdate       : True
  colours           : True
  columns           :
  ddir              : /home/user1/Downloads/mps
  download\_command  :
  encoder           : 0 \[None\]
  fullscreen        : False
  max\_res           : 2160p
  notifier          :
  order             : relevance
  overwrite         : True
  player            : mpv
  playerargs        :
  search\_music      : False
  show\_mplayer\_keys : True
  show\_status       : True
  show\_video        : True
  user\_order        :
  window\_pos        :
  window\_size       :

< ads2>

To search for a video using a key word put / before the keyword and search for any file the user desires and execute the command.


\>  /linux
Searching for ' linux' 
Num  Title                                                                                                                                 Time
 1   What is Linux?                                                                                                                       05:42
 2   Introduction to Linux and Basic Linux Commands for Beginners                                                                         18:46
 3   What is Linux? Linux Vs Windows? No Virus?                                                                                           07:07
 4   Introduction to Linux                                                                                                                48:08
 5   Top 10 Linux Job Interview Questions                                                                                                 16:04
 6   Introduction to Linux                                                                                                                04:39
 7   10 Reasons why Linux is Better Than MacOS or Windows                                                                                 10:32
 8   Comparing Windows 10 to Linux Mint 18.1!
.
.
.
.
.


Use the p or n keyword for navigating between the previous and next pages of the searched result. Now choose any file and play it.

Wasn' t that an easy installation process? The MPS-Youtube also searches complete albums and album titles.

FAQ
Q
why we need to install Mplayer in ubuntu?
A
The MPS-youtube package is installed successfully in the terminal. Then install MPlayer package and press y to continue with the installation process.
# apt-get install mplayer -y
Q
how to open the MPS-Youtube in terminal
A
open MPS-youtube tool run the following command and execute it
# mpsyt
Q
which command to install the package of MPS-Youtube in ubuntu?
A
install the package for MPS-youtube and press y to continue with the installation process.
# apt-get install mps-youtube -y
Q
what is the purpose of MPS-Youtube in ubuntu?
A
The MPS-Youtube is a free and open source command line tool where the user can play and download youtube videos via the terminal. It can play all types of youtube videos and can transcode audio to mp3 ot OGG is also possible.
Q
Can I use an external application for downloads of MPS-Youtube?
A
Yes, use set download_command to specify a custom command to use for downloading.

Type help dl-command from within mps-youtube for more help