You are not logged in.
This was getting a bit OT here, so here's a new thread.
I've added the dvdnav patch, which provides support for DVD menus, to the existing mplayer-svn PKGBUILD. It compiles successfully, but I don't have a DVD drive, so I can't test it. Here's the PKGBUILD:
<edit>
Added unset CFLAGS, as advised by kth5.
# Contributor: lucke <lucke>
# Contributor: Tom K <tomk>
pkgname=mplayer-svn
pkgver=18699
pkgrel=1
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'codecs' 'sdl' 'xvidcore'
'libjpeg' 'lame' 'libtheora' 'esd' 'faad2' 'ttf-bitstream-vera'
'libxxf86dga' 'fontconfig' 'libxinerama' 'libxv' 'libpng' 'libxxf86vm')
makedepends=('subversion')
source=(ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.5.tar.bz2
http://www.freeweb.hu/dcxx/mplayer/20060612/mplayer-dvdnav-patch.tar.gz)
md5sums=('371fa9457f0f23295ddaa93b57d862a0' 'cd75eb8942b2f15c653188d2df216e57')
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk/
_svnmod=mplayer
build() {
cd $startdir/src
msg "Connecting to mplayer SVN ...."
svn co $_svntrunk/ $_svnmod --config-dir ./ -r $pkgver
msg "Copying files to build directory ...."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
# Apply files and patches for dvdnav
cp ../mplayer-dvdnav-patch/mplayer-add/libmpdemux/* libmpdemux
cp ../mplayer-dvdnav-patch/mplayer-add/libmpcodecs/* libmpcodecs
cp -r ../mplayer-dvdnav-patch/mplayer-add/libmpdvdnav .
patch -Np0 -i ../mplayer-dvdnav-patch/navmplayer.patch || return 1
patch -Np0 -i ../mplayer-dvdnav-patch/navgui.patch || return 1
unset CFLAGS
./configure --prefix=/usr --enable-gui --disable-arts --disable-smb
--enable-sdl --enable-x11 --enable-theora --confdir=/etc/mplayer
--with-win32libdir=/usr/lib/win32 --enable-external-faad --enable-menu
--enable-tv-v4l --enable-tv-v4l2 --disable-liblzo --enable-largefiles
--disable-libdv --disable-aa --enable-xvid --disable-divx4linux
--enable-dvdnav
make || return 1
make DESTDIR=$startdir/pkg install
cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/usr/share/mplayer
ln -s /usr/share/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
rm -rf $startdir/pkg/usr/share/mplayer/font
mv $startdir/src/Blue $startdir/pkg/usr/share/mplayer/skins/default
rm -rf ../$_svnmod-build
}
<edit> Supplied package removed, as it was too specific to the build machine.
The link above gives full details of what this patch can and cannot do.
I'll run the package here to make sure existing functionality is OK, but I'd be grateful if others could try out the DVD stuff and report back. If it's good enough, I'll include it in the AUR package.
Thanks.
Offline
It won't build for me.
Weirdness:
I get this in the beginning of the build
==> WARNING: MD5sums are missing or incomplete. Cannot verify source integrity.
This is super weird because I checked the md5's on both of the files, and they're both good. The build continues after that though, so it doesn't seem like a problem, untill...
Error:
Unknown parameter:
./PKGBUILD: line 41: --enable-sdl: command not found
./PKGBUILD: line 42: --with-win32libdir=/usr/lib/win32: No such file or directory
./PKGBUILD: line 43: --enable-tv-v4l: command not found
./PKGBUILD: line 44: --disable-libdv: command not found
./PKGBUILD: line 45: --enable-dvdnav: command not found
Makefile:7: config.mak: No such file or directory
make: *** No rule to make target `config.mak'. Stop.
I could try and build it without those options, but since one of them is dvdnav itself, I won't bother. Is it possable there's a dependency that this package needs that mplayer-svn doesn't? Mplayer-svn builds fine for me.
Offline
Not perfect!!! :?
- Menu music not work.Only intresting sound like a crash.
- Some double layer dvd's not work
- Ogle menu much better than that
Thx for your work tomk.
Ötvös Attila and Mplayer devs need time and work for that.. :twisted:
Offline
barebones: If you're cut-n-pasting the PKGBUILD in this thread, make sure there's no space after the for line continuation. I't probably causing the errors you're getting.
Offline
That fixed all the compile problems snowman, thanks.
Offline
Glad you got it working, barebones - did you notice the link to the actual package, as well as the PKGBUILD? I probably should have put that first.......
Thanks for the feedback, Xarturkhann - I think if it was perfect, it would be released, right? Is it worth adding to the AUR package?
Offline
well it doesn´t work here.
old dvdplayback method works, but dvd-nav gives this:
Playing dvdnav://.
URL:
libdvdnav: Using dvdnav version 0.1.10 from http://dvd.sf.net
libdvdnav: DVD Title: A_NEW_HOPE
libdvdnav: DVD Serial Number: 2004061712145800
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/mic/.dvdnav/A_NEW_HOPE.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
MPlayer interrupted by signal 11 in module: demux_open
Offline
disabling runtime cpu-detection is of almost no use unless you unset CFLAGS.
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
ldd `which mplayer`
...
libdirectfb-0.9.so.24 => not found
...
directfb packages should be added to dependencies ( it's in AUR marked as Safe)
PS. But in AUR it's 0.9 25 so I must rebuild mplayer-svn or directfb once again
Offline
kth5 - thanks for that. I've added it to the PKGBUILD.
MAC!EK - every mplayer config option, including directfb, is autodetected, so if it's there, mplayer will use it - if it's not, it won't. That does not mean mplayer depends on them. This PKGBUILD provides a package that is identical to the stock Arch package, apart from functionality that is only available in the newer code, so the options that are specifically enabled are the ones chosen for that package.
Offline
MAC!EK - every mplayer config option, including directfb, is autodetected, so if it's there, mplayer will use it - if it's not, it won't. That does not mean mplayer depends on them. This PKGBUILD provides a package that is identical to the stock Arch package, apart from functionality that is only available in the newer code, so the options that are specifically enabled are the ones chosen for that package.
OK but...
$ sudo pacman -R directfb
removing directfb... done.
$ mplayer Batman.wmv
mplayer: error while loading shared libraries: libdirectfb-0.9.so.24: cannot open shared object file: No such file or directory
Mayby I didn't understood somethin fro myour post, but this doesn't look like autodetection.
Offline
tomk wrote:MAC!EK - every mplayer config option, including directfb, is autodetected, so if it's there, mplayer will use it - if it's not, it won't. That does not mean mplayer depends on them. This PKGBUILD provides a package that is identical to the stock Arch package, apart from functionality that is only available in the newer code, so the options that are specifically enabled are the ones chosen for that package.
OK but...
$ sudo pacman -R directfb removing directfb... done. $ mplayer Batman.wmv mplayer: error while loading shared libraries: libdirectfb-0.9.so.24: cannot open shared object file: No such file or directory
Mayby I didn't understood somethin fro myour post, but this doesn't look like autodetection.
I guess he meant autodetcted by the configure-script before compiling...
Offline
Right - I think I see what's happened. You're using the package I posted above, which I built on my machine, which has directfb on it - correct? I get the same error if I remove directfb.
Probably better to build your own, and let the autodetection do its thing. I think I'l take the package down.
Offline
Right - I think I see what's happened. You're using the package I posted above, which I built on my machine, which has directfb on it - correct? I get the same error if I remove directfb.
Yes, I installed that package
Offline
About the directfb stuff: There's probably a configure switch (--disable-directfb ?) to prevent mplayer to build with directfb support.
Offline
Given the overwhelming response to this thread (!), I don't think anyone will be surprised that I'm shelving dvdnav for the moment, at least as far as the mplayer-svn package is concerned.
My thanks to the testers among you.
Offline