You are not logged in.

#1 2008-05-25 07:49:07

Perre
Member
Registered: 2008-01-22
Posts: 189

How do I install CoreAVC?

Hi!

I'm using freevo as a media center, but I'm getting some stuttering/slow play with big 1080p files. So I did some searching and came across the CoreAVC decoder http://code.google.com/p/coreavc-for-linux/.

I then found this thread http://bbs.archlinux.org/viewtopic.php? … 58#p371758, but I'm having some problems getting CoreAVC installed. Can anyone help me?

I used this PKBUILD (thanks to 'genkipseudo'):

# Mplayer-svn-coreavc
# mplayer-svn patched with support for coreavc
# Modified : me
# Original PKGBUILD by below-----
# Maintainer: Tom Killian <tom@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>

pkgname=mplayer-svn-coreavc
pkgver=26871
pkgrel=1
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'sdl' 'xvidcore'
         'lame' 'libtheora' 'faac' 'libxxf86dga' 'libxv' 'libgl'
         'smbclient' 'aalib' 'lirc-utils' 'x264>=20071202-1'
         'jack-audio-connection-kit')
makedepends=('subversion' 'pkgconfig' 'libcaca' 'unzip' 'live-media' 'libdts')
source=(ftp://ftp.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2) 
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
arch=('i686' 'x86_64')

_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer

_coreavctrunk=http://coreavc-for-linux.googlecode.com/svn/trunk
_coremod=coreavc-for-linux

build() {
  cd $startdir/src

  svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
    
  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build
  
  unset CFLAGS

  ./configure --prefix=/usr --confdir=/etc/mplayer --with-extraincdir=/usr/lib/live-media \
  --enable-gui --enable-runtime-cpudetection --enable-largefiles --enable-menu \
  --enable-x11 --enable-gl --language=all \
  --disable-libdv --disable-liblzo --disable-speex --disable-fribidi --disable-arts \
  --disable-dvdnav --disable-openal --disable-musepack --disable-esd --disable-mga
  
  [ "$CARCH" = "i686" ] &&  sed 's|-march=i486|-march=i686|g' -i config.mak
# Lines for coreavc-for-linux
  cd $startdir/src
  svn co $_coreavctrunk $_coremod
  cp -r $_coremod $_coremod-copy
  cd $_coremod-copy
  make -C dshowserver
  mkdir -p $startdir/pkg/usr/local/bin
  cp dshowserver/dshowserver $startdir/pkg/usr/local/bin
  cp loader/registercodec $startdir/pkg/usr/local/bin
  cd $startdir/src/$_svnmod-build
  patch -p0 < $startdir/src/$_coremod-copy/mplayer/dshowserver.patch
# End of lines for coreavc-for-linux

  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
  cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/etc/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
}
md5sums=('e4e2020d11b681aac898103b3ba723c4')

I've never compiled before so I really don't know what to do with the files that gets downloaded. Does the compiling install anything or just download the files? I tried following the install instructions on the CoreAVC home page, but I can't get it to work. How do I remove what the compiling did? Do I just delete the files in the "Packages" folder I use or has it installed files all over the system (in case I can't get it to work tongue)

Thanks!

Offline

#2 2008-05-25 08:27:12

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I install CoreAVC?

Do I just copy everything the PKGBUILD compiled into my "packages" folder over to the respective folders?

When I try to install the compiled file I get this:

[per@arch packages]$ sudo pacman -Up mplayer-svn-coreavc-26874-1-i686.pkg.tar.gz 
Passord: 
loading package data...
checking dependencies...
error: replacing packages with -A and -U is not supported yet
error: you can replace packages manually using -Rd and -U
error: failed to prepare transaction (conflicting dependencies)
:: mplayer-svn-coreavc: conflicts with mplayer

Last edited by Perre (2008-05-25 14:59:54)

Offline

#3 2008-05-25 15:46:32

FALK
Member
From: Denmark
Registered: 2008-03-24
Posts: 95

Re: How do I install CoreAVC?

Remove mplayer with pacman -R mplayer first?

Offline

#4 2008-05-25 16:08:10

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I install CoreAVC?

FALK wrote:

Remove mplayer with pacman -R mplayer first?

I was thinking about that. smile

The config files will be safe though? They're located in my home folder...

Offline

#5 2008-05-25 17:10:28

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I install CoreAVC?

Ok, I managed to install the compiled version of Mplayer. Anyone know what I need to do to get CoreAVC working??

Edit: After a lot of try and fail'ing I managed to start Mplayer with "-vc coreserve" and it started the movie. But the performance is worse than anything I ever had before. What am I doing wrong?

Edit2: I was using a test version of CoreAVCDecoder.ax that seems to be version 0.0.0.4 roll This might be the problem. Guess I need to buy the real thing.

Last edited by Perre (2008-05-25 19:03:54)

Offline

#6 2008-05-26 07:28:57

droog
Member
Registered: 2004-11-18
Posts: 877

Re: How do I install CoreAVC?

I tested it with the real coreavcdecoder.ax and performance was worse than ffmpeg on my computer, I was playing hq h264 videos.

Offline

#7 2008-05-26 08:18:08

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I install CoreAVC?

droog wrote:

I tested it with the real coreavcdecoder.ax and performance was worse than ffmpeg on my computer, I was playing hq h264 videos.

Really? Damn, I was hoping CoreAVC would give the extra performance to get even big 1080p to play smooth. I'll have to try and see for myself. Did you enable multiple cores etc.??

Offline

#8 2008-05-26 09:33:13

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: How do I install CoreAVC?

droog wrote:

I tested it with the real coreavcdecoder.ax and performance was worse than ffmpeg on my computer, I was playing hq h264 videos.

you need to use

-nocorrect-pts

with mplayer

Offline

#9 2008-05-26 17:18:11

FALK
Member
From: Denmark
Registered: 2008-03-24
Posts: 95

Re: How do I install CoreAVC?

Watched the first indy-movie in 1080p (using smplayer, 1.6 ghz low-voltage c2d). Coreavc clearly lowered the cpu-usage and made it possible to watch the movie without any jerkiness.

Offline

#10 2008-05-26 18:21:34

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I install CoreAVC?

FALK wrote:

Watched the first indy-movie in 1080p (using smplayer, 1.6 ghz low-voltage c2d). Coreavc clearly lowered the cpu-usage and made it possible to watch the movie without any jerkiness.

Hmm... I've got a Athlon 64 X2 (M) 4200+ 2.2 GHz, GeForce 7800 GTX and 2GB ram and running this file:

File Name: Dirty.Dancing.1987.1080p.BluRay.DTS.x264-HDV
Runtime: 1:40:11
File Size: 10.0 GB (10,845,246,077 bytes)
Codec: x264, 2pass - L4.1
Bitrate: 12917 Kbps
Resolution: 1920x1080
Framerate: 23.976 fps

(Girlfriend had to have it)

is painfully slow. Am I doing something wrong? Do I need some other codecs too? Am I supposed to use xv??

Edit: And by looking at the PKGBUILD I've used... what codecs do I need to get? I get only sound playing quicktime movies in firefox, WMV doesn't play at all. Before I deleted and compiled player all files played perfectly so I guess I'm a few codecs short sad

Edit2: YES! I tried to play the movie with freevo and it's smooth as silk. Don't know why freevo is able to use the CoreAVC codec to its full extent, but I can't complain. lol

Please give me some tips about the quicktime- and WMV promlem though if you got any. tongue

Last edited by Perre (2008-05-26 19:56:31)

Offline

Board footer

Powered by FluxBB