You are not logged in.
Pages: 1
hello, i spent all my sunday trying to make coreavc work with mplayer.. and nothing. i used mplayer-no-gui from AUR but with no success.
# Maintainer: Thomas Bächler <thomas@archlinux.org>
# Contributor: Sorin Ionescu <sorin.ionescu@gmail.com>
pkgname=mplayer-no-gui
_pkgname=MPlayer
pkgver=1.0rc2
pkgrel=3
pkgdesc="A movie player for linux with many goodies, less the GUI"
arch=(i686 x86_64)
depends=('libxxf86dga' 'libxv' 'libmad' 'libungif' 'cdparanoia'
'sdl' 'lame' 'libtheora' 'xvidcore'
'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit'
'x264>=20070616' 'faac' 'lirc-utils' 'ttf-dejavu')
license=('GPL')
url="http://www.mplayerhq.hu/"
makedepends=('libcaca' 'unzip' 'live-media' 'libdca' 'mesa' 'subversion')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
conflicts=('mplayer')
provides=('mplayer')
install=mplayer-no-gui.install
source=(http://www.mplayerhq.hu/${_pkgname}/releases/${_pkgname}-${pkgver}.tar.bz2
http://www.mplayerhq.hu/${_pkgname}/patches/demux_audio_fix_20080129.diff
http://www.mplayerhq.hu/${_pkgname}/patches/demux_mov_fix_20080129.diff
http://www.mplayerhq.hu/${_pkgname}/patches/url_fix_20080120.diff
http://www.mplayerhq.hu/${_pkgname}/patches/stream_cddb_fix_20080120.diff
# CoreAVCDecoder.ax
coreavc.codecs.conf.diff
gnome-screensaver.diff)
md5sums=('7e27e535c2d267637df34898f1b91707'
'320af7daa1b248ee8e8c15d34d7923e3'
'ce999929155f509a3e6bee41d9d613ed'
'6a2c124586e1e6c44ae4ca1b4be9b6e4'
'c7d1bcdd61fcceb7598d61fe2213c587'
# '66e5e5a55c49ca93307eb7efe95cbcb3'
'f18b2d3eeacd63953d43a652736a3606'
'0dbf70cf2212fc6df98abedfeec84d47')
build() {
# Custom CFLAGS break the mplayer build
unset CFLAGS
# Checkout the CoreAVC patch
svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ ${startdir}/src/coreavc-for-linux
cd ${startdir}/src/coreavc-for-linux
# Generate the CoreAVC patch
./mplayer/build_patch.pl ${startdir}/src/${_pkgname}-${pkgver} > coreavc.diff || return 1
cd ${startdir}/src/${_pkgname}-${pkgver}
# Patch MPlayer with CoreAVC support
patch -p0 -i ${startdir}/src/coreavc-for-linux/coreavc.diff || return 1
# Add support for gnome screensaver
patch -p0 -i ${startdir}/src/gnome-screensaver.diff || return 1
# Fix security issues
for p in demux_audio_fix_20080129.diff demux_mov_fix_20080129.diff url_fix_20080120.diff stream_cddb_fix_20080120.diff; do
patch -p0 -i ../${p} || return 1
done
cd ${startdir}/src/${_pkgname}-${pkgver}/etc/
# Add CoreAVC to codecs.conf
patch -p0 -i ${startdir}/src/coreavc.codecs.conf.diff || return 1
# Fix the desktop file
sed 's/gmplayer\( %U\)\?/mplayer/g' mplayer.desktop | tee mplayer.desktop.tmp && mv mplayer.desktop.tmp mplayer.desktop
cd ${startdir}/src/${_pkgname}-${pkgver}
./configure --prefix=/usr --disable-gui --disable-arts --enable-x11 \
--enable-runtime-cpudetection --confdir=/etc/mplayer --disable-nas \
--enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
--disable-liblzo --disable-speex --disable-openal \
--disable-fribidi --disable-libdv --disable-musepack \
--language=all --disable-dvdnav --disable-esd --disable-mga \
--disable-mencoder --with-extraincdir=/usr/lib/live-media
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make -j1 DESTDIR=${startdir}/pkg install || return 1
cp etc/{codecs.conf,input.conf,example.conf} ${startdir}/pkg/etc/mplayer/ || return 1
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${startdir}/pkg/usr/share/mplayer/subfont.ttf || return 1
# Install the mplayer.desktop file
install -D -m 644 etc/mplayer.desktop ${startdir}/pkg/usr/share/applications/mplayer.desktop || return 1
rm -rf ${startdir}/pkg/usr/share/mplayer/font
# Required for CoreAVC support
install -m 751 loader/registercodec ${startdir}/pkg/usr/bin/
# Install and register the CoreAVC codec (not distributed for the obvious reason.
install -D -m 644 ${startdir}/src/CoreAVCDecoder.ax ${startdir}/pkg/usr/lib/codecs/CoreAVCDecoder.ax || return 1
./loader/registercodec -r ${startdir}/pkg/etc/mplayer/registry -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\User" -v "blabla" || return 1
./loader/registercodec -r ${startdir}/pkg/etc/mplayer/registry -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "blablabla" || return 1
}
CoreAVCDecoder.ax is in his place /usr/lib/codecs/ and i created registery link in ~/.mplayer/ also but i still get "Forced video codec: coreserve
Cannot find codec matching selected -vo and video format 0x31637661." Any thoughts what i am doing wrong?
Last edited by FireSoul (2008-06-01 16:39:22)
Offline
Offline
Pages: 1