How to build a deb package with the latest mplayer from SVN

Everything related to the packages in the Ubuntu PPAs (Personal Package Archive).

How to build a deb package with the latest mplayer from SVN

Postby rvm » Fri Dec 25, 2009 12:58 am

The following document will explain how to build the above package, in case you prefer to compile mplayer yourself.

First let's install Subversion and other packages we're going to need:

Code: Select all
sudo apt-get install subversion devscripts fakeroot

These other packages are necessary to create the html documentation:
Code: Select all
sudo apt-get install docbook-xml docbook-xsl xsltproc libxml2-utils

Now we create a directory to save the mplayer sources:
Code: Select all
mkdir mplayer
cd mplayer

Download the mplayer sources from svn:
Code: Select all
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk svn

Now we're going to download the patches we'll use later:

Code: Select all
wget http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches-ubuntu/debian.diff

Now we download and install all build dependencies for mplayer (this may take a while, it may download up to 37 MB):
Code: Select all
cd svn
sudo apt-get build-dep mplayer

Now we're going to patch the mplayer sources (be sure you're in the svn directory):
Code: Select all
patch -p0 -E -i ../debian.diff

(that patch actually includes all patches)

Now we're ready to start to compile. But first, let's give the script create_deb.sh executable permissions:
Code: Select all
chmod 755 create_deb.sh

Finally, let's compile mplayer:
Code: Select all
./create_deb.sh

That'll take some minutes, depending on your processor's speed.

Now we can install the packages:
Code: Select all
cd ..
sudo dpkg -i mplayer_1.0~rc3svn30108_amd64.deb mencoder_1.0~rc3svn30108_amd64.deb mplayer-doc_1.0~rc3svn30108_all.deb

If it complains about missing dependencies, just let's install them with apt-get.
Code: Select all
sudo apt-get install mplayer-skins


If you want to compile mplayer with support for x264 and dvdnav, you'll need newer versions of x264, libdvdread and libdvdnav. The easiest is to get them from here: https://launchpad.net/~rvm/+archive/libs

Update: libdvdread and libdvdnav are now included in the mplayer source tree, no need to use external packages.
rvm
Site Admin
 
Posts: 2651
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to build a deb package with the latest mplayer from SVN

Postby fredlkrue » Sat Jan 09, 2010 12:53 am

Latest MPlayer's SVN (r30247) fails to build, here's part of the output from the terminal:

Code: Select all
Checked out revision 30247.
--2010-01-08 18:49:53--  http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches-ubuntu/debian.diff
Resolving smplayer.svn.sourceforge.net... 216.34.181.65
Connecting to smplayer.svn.sourceforge.net|216.34.181.65|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `debian.diff'

    [   <=>                                 ] 196,526      320K/s   in 0.6s   

2010-01-08 18:49:54 (320 KB/s) - `debian.diff' saved [196526]

patching file create_deb.sh
patching file version.sh
patching file debian-rvm/control
patching file debian-rvm/compat
patching file debian-rvm/changelog-orig
patching file debian-rvm/mplayer.examples
patching file debian-rvm/mime
patching file debian-rvm/patches/05-ass_for_mencoder_embeddedfonts.dpatch
patching file debian-rvm/patches/10-gnome-screensave.dpatch
patching file debian-rvm/patches/12-codecs.dpatch
patching file debian-rvm/patches/13-wmapro.dpatch
patching file debian-rvm/patches/03-runtime_eq.dpatch
patching file debian-rvm/patches/04-ass_for_mencoder.dpatch
patching file debian-rvm/patches/00list
patching file debian-rvm/patches/11-dshowserver.dpatch
patching file debian-rvm/copyright
patching file debian-rvm/rules
patching file debian-rvm/mplayer-nogui.preinst
patching file debian-rvm/mplayer.preinst
patching file debian-rvm/README
patching file debian-rvm/mplayer.conf
rm: cannot remove `build-gui-stamp': No such file or directory
dh_testdir
dh_testroot
dh_clean -k
/usr/bin/make -f debian/rules install-gui
make[1]: Entering directory `/home/freddy/MPlayer'
test -d debian/patched || install -d debian/patched
dpatch  apply-all 
applying patch 03-runtime_eq to ./ ... ok.
applying patch 05-ass_for_mencoder_embeddedfonts to ./ ... failed.
make[1]: *** [patch-stamp] Error 1
make[1]: Leaving directory `/home/freddy/MPlayer'
make: *** [install] Error 2
freddy@core2duo:~/MPlayer$
fredlkrue
 
Posts: 25
Joined: Sat Jan 02, 2010 1:41 am

Re: How to build a deb package with the latest mplayer from SVN

Postby rvm » Sat Jan 09, 2010 1:02 pm

I think this is fixed now.
rvm
Site Admin
 
Posts: 2651
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to build a deb package with the latest mplayer from SVN

Postby fredlkrue » Sat Jan 09, 2010 6:05 pm

It's working great now, thanks.. Btw, please add the old forum's favicon to this one :)
fredlkrue
 
Posts: 25
Joined: Sat Jan 02, 2010 1:41 am

Re: How to build a deb package with the latest mplayer from SVN

Postby fredlkrue » Sat Feb 20, 2010 2:55 am

MPlayer revision 30660 fails to build, heres the error output:
Code: Select all
test -d debian/patched || install -d debian/patched
dpatch  apply-all 
applying patch 03-runtime_eq to ./ ... ok.
applying patch 05-ass_for_mencoder_embeddedfonts to ./ ... failed.
make[1]: *** [patch-stamp] Error 1
make[1]: Leaving directory `/home/freddy/MPlayer'
make: *** [install] Error 2


btw, wouldn't be better just to compile MPlayer by it self without the GUI and also without Mencoder?
fredlkrue
 
Posts: 25
Joined: Sat Jan 02, 2010 1:41 am

Re: How to build a deb package with the latest mplayer from SVN

Postby rvm » Sat Feb 20, 2010 1:51 pm

I've just fixed it.

BTW, the dshowserver patch failed too. I didn't fix this one, I just disabled it.
rvm
Site Admin
 
Posts: 2651
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to build a deb package with the latest mplayer from SVN

Postby fredlkrue » Sat Feb 20, 2010 7:02 pm

Many thanks...
fredlkrue
 
Posts: 25
Joined: Sat Jan 02, 2010 1:41 am

Re: How to build a deb package with the latest mplayer from SVN

Postby Henrik » Mon Feb 22, 2010 3:53 pm

After compiling..Karmic always wants to update... :(

I changed in create_deb.sh......
Code: Select all
# Add entry to changelog with svn revision
cp debian/changelog-orig debian/changelog
[b]dch -v "2:1.0~rc3+svn`date +%Y%m%d`-0karmic7" "New version"[/b]


Now everything is ok!

Image
Henrik
 
Posts: 6
Joined: Tue Jan 05, 2010 10:05 am

Re: How to build a deb package with the latest mplayer from SVN

Postby Henrik » Tue Mar 09, 2010 9:45 am

Code: Select all
applying patch 03-runtime_eq to ./ ... ok.
applying patch 05-ass_for_mencoder_embeddedfonts to ./ ... failed.
make[1]: *** [patch-stamp] Fehler 1


patch 05 does not work
Henrik
 
Posts: 6
Joined: Tue Jan 05, 2010 10:05 am

Re: How to build a deb package with the latest mplayer from SVN

Postby rvm » Sat Apr 10, 2010 2:19 am

Sorry, I didn't compile a new version of mplayer for awhile.

Patch 05 fails because support for ass in mencoder has finally been added upstream :D

------------------------------------------------------------------------
r30849 | greg | 2010-03-06 00:13:08 +0100 (sáb, 06 mar 2010) | 8 lines

Enable ASS/SSA subtitle support in mencoder

Enable ASS/SSA rendering through libass in mencoder. This duplicates a
bit of code (to parse font attachments, for example). Additionally, add
a filter "fixpts" that generates PTS, simulating fixed fps. PTS
generated by this filter are then used for subtitle timing.

Original patch by Nicolas George. (nicolas.george normalesup.org)
------------------------------------------------------------------------


So that patch won't be necessary anymore :D
rvm
Site Admin
 
Posts: 2651
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Next

Return to Ubuntu PPAs

Who is online

Users browsing this forum: No registered users and 1 guest

cron