SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-06-13 08:35:11

aeqel
Member
From: Australia
Registered: 2012-06-12
Posts: 25
Website

HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

Disclaimer: This is only a guide on how I managed to successfully build the current MPlayer2 and SMPlayer on Crunchbang #! 64-bit stable. This probably will work on Debian Squeeze. I take no responsibility of any damage which following this guide may cause. PROCEED AT YOUR OWN RISK

All commands are done as your own user unless sudo is specified. This guide assumes you have not got mplayer already installed. If you have mplayer installed already you will need to remove it entirely. This is a fairly terse guide if you have problems just ask!


Step 1: Install Build Dependencies.

I required all the following dependencies to install MPlayer2 and SMplayer. I may already have some dependencies which were already installed that are required:

aptitude install libxv-dev libasound2-dev libfreetype6-dev libfontconfig1-dev libavutil-dev libavcodec-dev libavformat-dev libswscale-dev libpostproc-dev autotools-dev automake autoconf yasm git libtool shtool autogen libvdpau-dev build-essential libfribidi-dev libqt4-dev python3

Step 2: Get the latest MPlayer2 from Git!

After moving into your working directory, I tend to use:

cd ~/software/source/
git clone git://git.mplayer2.org/mplayer2-build.git
cd mplayer2-build

Step 3: Install MPlayer2

./init --shallow
make
sudo make install

Step 4: Test if MPlayer2 has installed with VDPAU support.

mplayer -vc help | grep vdpau
mplayer -vo help | grep vdpau

Should return an output.

Step 5: Installing SMPlayer and/or SMPlayer2 from Source:

Download the Linux source from the official website here: http://smplayer.sourceforge.net/downloads.php

Extract the source into a working folder and change directory into that folder and simply run:

make
sudo make install

-----
EDIT: Optionally you can install SMPlayer2 as suggested by arclance. It is a fork of SMPlayer that claims to have better MPlayer2 support. You can have both installed simultaneously. Following the same sort of method except you need to install cmake before you can build SMPlayer2.
EDIT2: I'm using SMPlayer2 and can personally confirm it's very nice and works well; I still have both installed though. More info in the thread.

sudo aptitude install cmake
cd ~/software/source
git clone https://github.com/lachs0r/SMPlayer2.git
cd SMPlayer2
cmake .
make
sudo make install

-----
mplayer2_smplayer_vdpau_crunchbang_64bit_debian_squeeze.png
Large Image

Enjoy!

Update 21/07/2012: http://crunchbanglinux.org/forums/post/244370/#p244370

Further Reading:
HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable
configure: error: cannot find install-sh, install.sh, or shtool in “.” “./..” “./.
building mplayer2 in debian
Safe CFLAGS for CPU Optimisation
Installing software from source in Linux

Last edited by aeqel (2012-07-21 06:24:43)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-06-13 08:52:18

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

You might wanna build the latest ffmpeg as well. Run sudo apt-get build-dep ffmpeg if you run into issues, I didn't get any problems.

Offline

#3 2012-06-13 10:30:11

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

cool aeqel! i always get those VDPAU-errors so i was meaning to figure that stuff out, someday. this how-to will surely help me out. plus, i'll be able to let you know whether it also works on Sid (it should, but still).

Offline

#4 2012-06-13 15:26:23

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

el_koraco wrote:

You might wanna build the latest ffmpeg as well. Run sudo apt-get build-dep ffmpeg if you run into issues, I didn't get any problems.

That's what mplayer2-build does, except it uses the libav fork of ffmpeg.

@aeqel
You should build SMPlayer2 instead it has been updated to be more compatible with mplayer2.
SMplayer2 has all the settings for the improved subtitle support in mplayer2.

Offline

#5 2012-06-13 15:31:24

aeqel
Member
From: Australia
Registered: 2012-06-12
Posts: 25
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

arclance wrote:

@aeqel
You should build SMPlayer2 instead it has been updated to be more compatible with mplayer2.
SMplayer2 has all the settings for the improved subtitle support in mplayer2.

I hadn't heard of this project! I will have to try it out!

EDIT: Added a guide to the original post to install SMPlayer2. Thanks arclance.

Last edited by aeqel (2012-06-13 16:02:56)

Offline

#6 2012-06-13 16:02:31

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ It's nice, they made a few other changes for mplayer2 but the subtitle controls are the most different.

They also added a dbus interface for now playing information to SMPlayer2 so you can have a mplayer progress bar in conky.
2f0659192877873.gif

Offline

#7 2012-06-17 16:18:02

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ Very cool arclance.  Would you please post that conky over in the Conky thread or PM it to me?


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#8 2012-06-17 16:23:59

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

Very nice Dual How To aeqel... cool

Added to Quick References


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#9 2012-06-17 16:41:18

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

VastOne wrote:

^ Very cool arclance.  Would you please post that conky over in the Conky thread or PM it to me?

Sure, I just posted it in the conky thread.
You will have to compile SMPlayer2 if you want to use it since there is no package for it anywhere.

Offline

#10 2012-06-17 16:43:53

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ Thanks...

SMPlayer2 Version: 0.7.3 is in Sid... cool and it is running perfectly


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#11 2012-06-17 16:53:11

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ Weird it's not there for me.
And I don't think there is a Version: 0.7.3 the latest commit gives me Version: 0.7.2 r166 ae96ed9

Offline

#12 2012-06-17 17:01:13

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ Interesting, I am getting it from deb-multimedia.org

$ apt-cache policy smplayer2
smplayer2:
  Installed: 0.0+20120604-dmo1
  Candidate: 0.0+20120604-dmo1
  Version table:
 *** 0.0+20120604-dmo1 0
        990 http://www.deb-multimedia.org/ sid/main amd64 Packages
        100 /var/lib/dpkg/status

I see from the email on this scrot that lachs0r is the same name as on github

screenshot-06172012-115614am.php

The dbus info is showing in d-feet just as you have it setup in the python and the script does in fact display dbus output.


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#13 2012-06-17 17:18:50

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ Yes that would be why, I am not using deb-multimedia.org.

I think whoever made that package changed the version number to be more user friendly.

lachs0r doesn't put version numbers on his windows builds which can be found here.
I don't know why deb-multimedia.org links that as the smplayer2 website either since it is for the windows builds and not the source code.

Here is what that screenshot looks like when you build from source.
aawbj2lU.jpg

Last edited by arclance (2012-06-17 17:20:38)

Offline

#14 2012-06-17 17:20:16

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ I'll try to track down the package container/holder and see if it can be remedied...

Edit - must be a Windows user because NO debian package maintainer (in his right mind) would have changed the "version number to be more user friendly".  sad


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#15 2012-06-17 17:48:55

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^ I was surprised at that version number since lahcs0r has only one branch and never does a "stable" update to change the version number.

I think he does that because he wants to write a whole new gui from the ground up.
Working on SMPlayer2 was probably because he wanted something better for mplayer2 while he was working on his new gui.
It may also have been a way to learn what he would need to know to write his own gui.

Edit:
Actually it looks like I missed a commit and it is 0.7.3 now (it was hidden in another commit).
I still get a different version, Version: 0.7.3 r171 d3ca825, than the package.

aaqZ0Bkm.jpg

Last edited by arclance (2012-06-17 18:19:48)

Offline

#16 2012-06-18 04:29:50

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 1,965

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

Nice thread. I didn't even know there was an smplayer2 until I read this, thanks!

Offline

#17 2012-07-21 06:23:46

aeqel
Member
From: Australia
Registered: 2012-06-12
Posts: 25
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

I just tried installing mplayer2 on my Laptop with Crunchbang and found that python3 is now also a dependency and have added to the list of dependencies above. It may have been due to an update of the mplayer2 version and the list may be outdated/include bloat now - but I can confirm it works.

Offline

#18 2012-07-21 19:45:30

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

I assume that I can skip step 5 if I only want mplayer2, yeah?

Offline

#19 2012-07-22 01:05:51

aeqel
Member
From: Australia
Registered: 2012-06-12
Posts: 25
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

sunfizz98 wrote:

I assume that I can skip step 5 if I only want mplayer2, yeah?

Correct!

Offline

#20 2012-07-24 02:06:39

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

Suppose I want to use apt-get instead of aptitude, what would I do instead?

Offline

#21 2012-07-24 02:48:01

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

From the beginning:

apt-get install

or do I understand something wrong? smile

Offline

#22 2012-07-24 16:27:38

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

^Oh and here I was thinking that I would have to hunt for extra packages.

Offline

#23 2012-08-28 21:32:11

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 906

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

libquvi-dev has been added to mplayer2 as an optional dependency.

This enables playing URLs from libquvi supported streaming sites directly, e.g. "mplayer http://www.youtube.com/watch?v=...."

You can read the full details here.

Offline

#24 2013-04-04 12:46:46

nabu
Member
Registered: 2011-03-30
Posts: 27

Re: HOWTO: Build the latest MPlayer2 + SMPlayer with VDPAU on #! Stable

I am confused about one thing here:
It is claimed that newer nvidia proprietary drivers include vdpau. I installed 313.30 version on #! stable.
But when I try to install mplayer it pulls an old libvdpau1 with other dependencies. If I unmark libvdpau1, it  triggers some other removals that I don't like.
So, is it possible to install mplayer without libvdpau1 from the repos, and still to use the embedded vdpau from nvidia driver - i.e. -
will mplayer use that embedded vdpau?

I have been struggling with vdpau for some time now, and the only temporal solution was to use xbmc media center until I install mplayer with proper vdpau support (vlc is out of league regarding g accel).

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo