[Solved]Building mplayer from deb source - dependency change

Need help with C, C++, perl, python, etc?

[Solved]Building mplayer from deb source - dependency change

Postby milomak » 2009-12-21 23:31

I had a look at the HOWTO thread - viewtopic.php?f=16&t=38976

But it doesn't seem to address my particular issue. I am running Debian Testing on my mythtv box. I use mplayer with vdpau as the option to play mythvideo files (mkv and avi). My current version of mplayer plays nicely with nvidia-libvdpau1 and nvidia-libvdpau1-driver to enable vdpau in mplayer (1:1.0.rc2svn20091101-0.0 - it was a deb from debian multimedia).

The latest mplayer (testing/debain multimedia) depends on libvdpau1. Installing libvdpau1 requires that nvidia-libvdpau1 and nvidia-libvdpau1-driver are removed. The problem becomes that when this happens, mplayer can no longer play files using vdpau.

However, if I download the source (apt-get source mplayer), i can configure mplayer using the --enable-vdpau option (nvidia-libvdpau1-dev is installed and NOT libvdpau1-dev). So it seems to me that the dependant libvdpau1 should not be a dependant.

My ~/.mplayer/config file ensures that vdpau is used where needed.
Code: Select all
vo=vdpau,xv,
vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,


How can I build an mplayer deb that doesn't depend on libdvdpau1 (preferably with vdpau support enabled)?
Last edited by milomak on 2009-12-22 23:25, edited 1 time in total.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1981
Joined: 2009-06-09 22:20

Re: Building mplayer from deb source

Postby milomak » 2009-12-22 23:24

I re-read the HOWTO carefully again. The source mplayer was version 1:1.0.rc2svn20091220.

I first ran debchange -b -v 1:1.0.rc2svn20091222-0.0 to make sure that my build was greater than those from repos.

Then I edited debian/rules (full path ../build/mplayer-dmo-1.0.rc2svn20091222/debian/rules)

I went into that file and added --enable-vdpau to the end of the line CONFIG_MISC

I then also edited debian/control. I removed the reference to libvdpau-dev as a dependency. I then ran dpkg-buildpackage -rfakeroot -us -uc. I installed the resultant debs (in ../build) and all is in order. No libvdpau on my system.

I feel I should report this libvdpau1 issue somewhere. I suspect it will have an impact on mplayer users down the line. Any pointers as to how to go about that?

EDIT: Another option is not to build with vdpau support. Instead edit debian/control and where there is a reference to libvdpau-dev in the dependencies section, change that to read libvdpau-dev | nvidia-libvdpau1-dev.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1981
Joined: 2009-06-09 22:20


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable