[MPlayer-dev-eng] [PATCH]Add support for CoreAVC h264 codec

Alan Nisota alannisota at gmail.com
Tue Oct 3 03:20:59 CEST 2006


I posted a similar patch to the mplayer-cygwin list 6 months ago, but
figured I might as well clean it up and post it here in case mplayer
devs are interested in using it.

What it does is to enhance the dshow codec support such that the
CoreAVC h264 codec will run under mplayer.  This codec is ~30% more
efficient than ffh264 by my testing with mplayer.

As this codec must be registered, it requires registry entries be
present to use.  I have added support for updating registry entries
throgh the codecs.conf file to support this.

There are changes to the wine code to support the codec, including
some nasty tricks with the memory handler which may not be portable.

There are also changes to the dshow filter code to pass correct data
to the codec for intialization.  These changes need to be tested to
make sure they don't break other dshow codecs.

Anyhow, the patch is built against SVN 20017.
Install the patch, then add the following to your codecs.conf file:
videocodec coreavc
  info "CoreAVC DShow H264 decoder for x86 - http://corecodec.org/"
  status untested
  format 0x10000005
  fourcc H264,h264
  fourcc X264,x264
  fourcc avc1,AVC1
  fourcc davc,DAVC
  fourcc VSSH
  driver dshow
  dll "CoreAVCDecoder.ax"
  regval "SOFTWARE\\Licenturion GmbH\\0000032D\\Product Key"
"ABCD-EFGH-IJKL-MNOP-QRST-UVWX"
  regval "SOFTWARE\\Licenturion GmbH\\0000032D\\User ID" "Joe User"
  guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c,
0x7c, 0x31
  out YV12,IYUV,I420,YUY2

(replace the User Id and Product Key with your registration
key...which can be obtained via regedit or by installing under wine,
and getting the values from the user.reg file)
It has been tested with CoreAVC 0.0.4, 1.0, and 1.1.0.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coreavc.patch
Type: application/octet-stream
Size: 21506 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061002/eee59c4b/attachment.obj>


More information about the MPlayer-dev-eng mailing list