You are not logged in.

#1 2006-06-13 23:13:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

mplayer-svn with dvdnav patch - testers needed

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. smile

Offline

#2 2006-06-13 23:29:01

barebones
Member
Registered: 2006-04-30
Posts: 235

Re: mplayer-svn with dvdnav patch - testers needed

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

#3 2006-06-13 23:59:09

Xarturkhann
Member
From: Ankara
Registered: 2006-02-17
Posts: 55

Re: mplayer-svn with dvdnav patch - testers needed

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  roll

Thx for your work tomk.

Ötvös Attila and Mplayer devs need time and work for that.. :twisted:

Offline

#4 2006-06-14 02:00:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: mplayer-svn with dvdnav patch - testers needed

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

#5 2006-06-14 03:01:05

barebones
Member
Registered: 2006-04-30
Posts: 235

Re: mplayer-svn with dvdnav patch - testers needed

That fixed all the compile problems snowman, thanks.

Offline

#6 2006-06-14 06:01:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: mplayer-svn with dvdnav patch - testers needed

Glad you got it working, barebones - did you notice the link to the actual package, as well as the PKGBUILD? wink I probably should have put that first.......

Thanks for the feedback, Xarturkhann - I think if it was perfect, it would be released, right? smile Is it worth adding to the AUR package?

Offline

#7 2006-06-14 09:19:33

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: mplayer-svn with dvdnav patch - testers needed

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

#8 2006-06-14 10:25:38

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: mplayer-svn with dvdnav patch - testers needed

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

#9 2006-06-14 11:03:17

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: mplayer-svn with dvdnav patch - testers needed

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 smile so I must rebuild mplayer-svn or directfb once again smile

Offline

#10 2006-06-14 11:25:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: mplayer-svn with dvdnav patch - testers needed

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

#11 2006-06-14 12:03:07

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: mplayer-svn with dvdnav patch - testers needed

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.

Offline

#12 2006-06-14 12:22:12

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: mplayer-svn with dvdnav patch - testers needed

MAC!EK wrote:
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... wink

Offline

#13 2006-06-14 12:43:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: mplayer-svn with dvdnav patch - testers needed

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

#14 2006-06-14 14:58:48

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: mplayer-svn with dvdnav patch - testers needed

tomk wrote:

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 smile

Offline

#15 2006-06-15 00:04:12

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: mplayer-svn with dvdnav patch - testers needed

About the directfb stuff: There's probably a configure switch (--disable-directfb ?) to prevent mplayer to build with directfb support.

Offline

#16 2006-06-17 09:29:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: mplayer-svn with dvdnav patch - testers needed

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. smile

Offline

Board footer

Powered by FluxBB