Compile mpv player for Ubuntu from source.

mpv is the default player for latest smplayer. Since mplayer didnt work after compiling its latest version from source (see my previous post), I decided to recompile mpv.

Code:

git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build/
sudo apt install libfribidi-dev libfribidi-bin yasm
./rebuild -j4
sudo ./install

Note: There may be other dependencies.
Thus I upgraded my mpv 0.14.0 to 0.25.0-26-gde225e3.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Fix blue border issue in full screen mode in smplayer and mplayer

In smplayer, add the following in Options>Preferences>Advanced:

Mplayer Options: -vo x11

selection_001


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Install all necessary video codecs on Ubuntu

For Ubuntu 15.04 and 14.04 LTS (12.04 or later)

Run the following:

sudo apt-get install curl
curl ftp://ftp.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -
echo "deb ftp://ftp.videolan.org/pub/debian/stable ./" | sudo tee /etc/apt/sources.list.d/libdvdcss.list
sudo apt-get update
sudo apt-get install vlc vlc-data vlc-plugin-pulse browser-plugin-vlc mplayer2 smplayer ubuntu-restricted-extras

Enable full DVD support (depending on which Ubuntu release, these three packages may already be installed)

sudo apt-get install libdvdcss2 libdvdnav4 libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

How to compile the latest development version of smplayer on Ubuntu?

Updated on 2 May, 2017
Compile the latest smplayer on Ubuntu(New):
We’ll be building smplayer, smplayer-themes, and smplayer-skins.
Install dependencies:

sudo apt build-dep smplayer
sudo apt-get install libqt4-dev zlib1g-dev fakeroot build-essential devscripts debhelper g++ mplayer2

Get source from the svn and build each package:

mkdir ~/src
cd ~/src
svn co https://subversion.assembla.com/svn/smplayer/smplayer/trunk/ smplayer
cd smplayer
./create_deb.sh
svn co https://subversion.assembla.com/svn/smplayer/smplayer-skins/trunk/ smplayer-skins
cd smplayer-skins
./create_deb.sh
cd ..
svn co https://subversion.assembla.com/svn/smplayer/smplayer-themes/trunk/ smplayer-themes
cd smplayer-themes
./create_deb.sh
cd ..
sudo dpkg -i smplayer*deb

Hurray, we’ve successfully built and installed the latest dev version of smplayer.

To update to latest version:
smplayer will notify new update releases. Once updated, we can compile new one:

svn update
./create_deb.sh
sudo dpkg -i ../smplayer_17.5.0_amd64.deb

Note: I found that on playing, smplayer did not have any sound. I had to change my default audio device to pulse.
Options:Preferences:
Audio>Output driver: pulse

Older post:
First, download the latest smplayer tarball from the official site.

Eg:

wget http://downloads.sourceforge.net/project/smplayer/SMPlayer/16.9.0/smplayer-16.9.0.tar.bz2

Extract it:

tar jxf smplayer*bz2
cd smplayer*

Install essential prerequisites for building:

sudo apt-get install libqt4-dev zlib1g-dev fakeroot build-essential devscripts debhelper g++ mplayer2
sudo apt-get -f install

Now create the .deb package:

./create_deb.sh

Install the package:

sudo dpkg -i ../smplayer_16.9.0_amd64.deb

Alternately download the .deb after installing the prerequisites:

http://sourceforge.net/projects/smplayer/files/Unstable/ubuntu/

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

HOW TO Compile and install the latest smplayer on Debian

Note: This post is old. Refer to this post for updated instructions (2017).
The version of smplayer in the original Debian repos is too old. This is how you can compile the latest smplayer from sources:

Download the latest source package here

Extract it:

tar -jxvvf smplayer-0.8.2.1.tar.bz2

Install necessary packages as root.

apt-get install libqt4-dev zlib1g-dev fakeroot build-essential devscripts debhelper g++

Now compile into a debian .deb package:

cd smplayer-0.8.2.1
./create_deb.sh
su
dpkg -i ../smplayer_0.8.2.1_i386.deb

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.