CoreAVC 1.8.5 on Ubuntu 8.10 x86_64 (Intrepid Ibex) HOWTO

This is small HOWTO about running the CoreAVC decoder (dshowserver) on a 64Bit Unbuntu 8.10 (Intrepid Ibex)
This should work for other 64bit Linux-Distros, like Debian, Fedora, SuSE, Gentoo, etc… also. With the CoreAVC decoder for Linux you should be able to play back H.264 content in FullHD (1920x1080p, VC1 is not supported). In comparison to the the native mplayer H.264 playback, only CoreAVC is able to utilize all cores of your CPU simultaneously at the moment. Please consider, NVIDIA has published a Beta driver (180.06, 180.08, 180.11), which allows already now a rudimentary hardware acceleration support for HD content (including VC1). Feedback welcome.


CoreAVC 1.8.5 on Linux 64Bit HowTo

1) Download the ia32 static build (for use on x86_64) of dshowserver
or build it yourself in a 32bit environment with the “STATIC=1” switch.

2) Untar it and copy it into the right place

tar xvfj dshowserver-ia32-r77-acme.tar.bz2
cp dshowserver/dshowserver /usr/bin
cp loader/registercodec /usr/bin

3) Download the coreavc-for-linux to given revision number (#77)

svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ coreavc-for-linux-read-only
cd corecodec-for-linux
svn update -r 77

4) download mplayer to a given revision number (#27800) (else it doesn’t compile)

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
svn update -r 27800
./configure
patch -p0 < path-to-your-coreavc-for-linux/mplayer/dshowserver.patch
make -j2 && make -j2 install

Bas suggested to use

patch -p0 -i path-to-your-coreavc-for-linux/mplayer/dshowserver.patch

because it didn’t work for him with the redirector. Thanks Bas.

If’ve been using mplayer #27818 the fist time and got this:

dsputil.c:4527: error: 'ENABLE_SH4' undeclared (first use in this function)

It’s likely this issue we’ll be solved in a few days and you don’t need to be exactly on revision #27800, but I advice you to use it anyway, since coreavc-for-linux is also more or less loosely bound to a certain mplayer revision level.
[UPDATE] Erik reported, he compliled with revision #27818 on Hardy Heron, and it worked just fine.

If you compile mplayer from scratch on a fresh Ubuntu, you’ll need at least these packages too:

aptitude subversion patch libxv-dev libsdl-dev

5) Copy codecs.conf to your HOME directory:

cp your-mplayer-source-path-here/etc/codecs.conf $HOME/.mplayer

and add this at the end:

videocodec coreserve
info "CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/"
status working
format 0x10000005
fourcc H264,h264 H264
fourcc X264,x264
fourcc avc1,AVC1 AVC1
fourcc davc,DAVC
fourcc VSSH
driver dshowserver
dll "CoreAVCDecoder.ax"
guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c, 0x7c, 0x31
out YV12,IYUV,I420,YUY2

Or download the codecs.conf from here.
6) Now register it with your serial number which has been given to you by CoreCodec on purchase.

export REGISTRY=$HOME/.mplayer/registry32
registercodec -r $REGISTRY -k
"HKLM\Software\CoreCodec\CoreAVC Pro\Serial" -v "55555-55555-CORE-55555-55555"
cp $HOME/.mplayer/registry32 $HOME/.mplayer/registry

60 thoughts on “CoreAVC 1.8.5 on Ubuntu 8.10 x86_64 (Intrepid Ibex) HOWTO

  1. Erik

    While following your instructions, I encountered this error when trying to patch:

    Reversed (or previously applied) patch detected! Assume -R? [n]

    I said ‘y’ and it compiled fine. However, I don’t get video:

    Forced video codec: coreserve
    Requested video codec family [coreserve] (vfm=dshowserver) not available.
    Enable it at compilation.
    Cannot find codec matching selected -vo and video format 0×31637661.

  2. Erik

    I re-traced all my steps, and now I don’t get the first error when patching, but I still get no video at all with the same 2nd error.

  3. Erik

    I feel like I’m going crazy, because I’m recompiling mplayer over and over again and getting different results. This time I get:

    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    sh: Syntax error: “(” unexpected
    DirectShow filter failedVDecoder init failed :(
    Cannot find codec matching selected -vo and video format 0×31637661.

  4. acmelab68 Post author

    Hello Erik,
    does the dshowserver test work for you?
    And could you post here the mplayer command line, you’re using?

    Btw: “-R” means to revert the patch, which means “undo the patch”. Unfortunaely it never worked for me, and I had to delete the whole directory, and I had to download mplayer (via svn) from scratch.

    It’s also important, that you follow these steps:
    1) run .configure first, then
    2) patch your mplayer (patch -p0 < ..)
    3) make && make install (check the timestamp of /usr/local/bin/mplayer)

    Additionally your dshowserver test must have run successfully.
    And be sure, the user for which you appended your $/HOME/.mplayer/codecs.conf is also the user which starts mplayer.

  5. acmelab68 Post author

    @Erik
    Could you please post your mplayer line here? (cut&paste)
    and did the dshowserver test run successfully?

  6. Erik

    The dshowserver test always works fine since the latest patch.

    “And be sure, the user for which you appended your $/HOME/.mplayer/codecs.conf is also the user which starts mplayer.”

    D’oh! I was running as root. However I still get the above error “sh: Syntax error: “(” unexpected” Will try another patch and recompile.

  7. Erik

    for .TS files I have tried:

    /usr/local/bin/mplayer -demuxer lavf -vc coreserve -nocorrect-pts /file.ts

    For .MKV files I use:

    /usr/local/bin/mplayer -demuxer mkv -vc coreserve /file.mkv

  8. Erik

    I Ijust deleted everything and recompiled. That part works fine. The error is when playing a file. IT eventually goes on to play the audio only:

    libavformat file format detected.
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    [lavf] Subtitle stream found, -sid 0
    [lavf] Subtitle stream found, -sid 1
    VIDEO: [H264] 1920×800 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    ==========================================================================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    sh: Syntax error: “(” unexpected
    DirectShow filter failedVDecoder init failed :(
    Cannot find codec matching selected -vo and video format 0×34363248.
    Read DOCS/HTML/en/codecs.html!
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback…

    or…

    [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
    [mkv] Track ID 2: audio (A_AC3) “AC3 640 Kbps”, -aid 0, -alang eng
    [mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
    [mkv] Track ID 4: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
    [mkv] Will play video track 1.
    Matroska file format detected.
    VIDEO: [avc1] 1920×800 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    ==========================================================================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    sh: Syntax error: “(” unexpected
    DirectShow filter failedVDecoder init failed :(
    Cannot find codec matching selected -vo and video format 0×31637661.
    Read DOCS/HTML/en/codecs.html!
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback…

    /usr/lib/win32$ dshowserver -c CoreAVCDecoder.ax -s 1280×720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0×34363248 -o 0×30323449
    No id specified, assuming test mode
    Opening device
    Called unk_IsDebuggerPresent
    len: 992
    ProductVersion: 1.8.5
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    Initialization is complete

  9. Erik

    Some info:

    OS: Hardy Heron 64bit, 2.6.24-21, Compiz-Fusion
    CoreAVC: 1.8.5
    mplayer: dev-SVN-r27800-4.2.4
    dshowserver: dshowserver-ia32-r77-acme.tar.bz2

  10. acmelab68 Post author

    @Erik
    tbh, i’m clueless atm.
    could you post here the result of these two command?
    1) date
    2) ls -l /usr/local/bin/mplayer

  11. Erik

    # date
    Fri Oct 24 02:02:02 PDT 2008

    # ls -l /usr/local/bin/mplayer
    -rwxr-xr-x 1 root root 10024224 2008-10-24 01:22 /usr/local/bin/mplayer

  12. acmelab68 Post author

    @Erik
    could you check the permissions of the affected files and folders?
    1) ls -ld /usr/lib/win32
    2) ls -l /usr/lib/win32/Core*
    3) ls -l $HOME/.mplayer/codecs.conf
    4) ls -ld $HOME/.mplayer
    5) ls -l /usr/bin/dshowserver
    6) ls -l /usr/bin/register*

    EDIT: and check your codecs.conf (typos, permissions, whatever)

  13. Erik

    Found the problem! I had a version of codecs.conf.orig which contained from previous instructions:

    videocodec coreserve
    info “CoreAVC DShow H264 decoder 1.3 for x86 – http://corecodec.org/
    status working
    format 0×10000005
    fourcc H264,h264 H264
    fourcc X264,x264
    fourcc avc1,AVC1 AVC1
    fourcc davc,DAVC
    fourcc VSSH
    driver dshowserver
    dll “CoreAVCDecoder.ax”
    guid 0x09571a4b, 0xf1fe, 0x4c60, 0×97, 0×60, 0xde, 0x6d, 0×31, 0x0c, 0x7c, 0×31
    out YV12,IYUV,I420,YUY2

    I think you’re missing ht elast 3 lines on your instructions above. Now it plays the matroska, at least. WIll try the .TS now.

    Also, I compiled this with the latest svn, #27818. I basically skipped the step to revert.

  14. acmelab68 Post author

    @Erik
    So it was my fault! I’m relly sorry for this cut&paste bug.
    Thanks a lot for your patience. I’ve updated/corrected my bug above, and added also the info, that #27818 worked for you.
    Again: Sorry, and a big thanks!

    Regards,
    Andreas

  15. Erik

    Well, the Matroska works now, but the .TS files don’t. I get:

    /usr/local/bin/mplayer -vc coreserve -nocorrect-pts /media/SATA1/Movies/Men.In.Black.Blu-ray.REMUX.1080P.H264.disk2.ts
    MPlayer dev-SVN-r27800-4.2.4 (C) 2000-2008 MPlayer Team
    CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15, Model: 35, Stepping: 2)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
    129 audio & 259 video codecs

    Playing /media/SATA1/Movies/Men.In.Black.Blu-ray.REMUX.1080P.H264.disk2.ts.
    TS file format detected.
    VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)! PROGRAM N. 1
    FPS seems to be: 23.976025
    ==========================================================================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs

    MPlayer interrupted by signal 11 in module: init_video_codec

    The ffmpeg codec plays the movie, but it stutters. Oh well.

  16. acmelab68 Post author

    @Erik
    Well, I can see it’s a H264 encoding, thus it should work actually. (I’m not sure, but I thing VC1 from Microsoft is not supported [FIXME], which also sometimes is used for BluRay).
    And I think, you’ve alredy tried leaving out “-nocorrect-pts” and tried stuff line “-fps 24″ or “-demuxer lavf”.
    And did it worked for you in the past?

  17. Bas

    Thanks for the guide!
    Now beginning with step 5, could you modify step 4:
    patch -p0 < path-to-your-coreavc-for-linux/mplayer/dshowserver.patch

    with adding -i, because it didn’t work without it

  18. LaoLiulaoliu

    Hi acmelab68,
    I am using Debian testing.
    cpu:Intel T2370
    display card:intel X3100(Mobile GM965/GL960)
    mplayer revision:27872 ;coreavc-for-linux revision:82
    I compiled core-for-linux and mplayer follow your instruction and thank you for that.
    Now I can player mkv smoothly:mplayer -demuxer mkv -vc coreserve *.mkv.But it is using a little higher cpu than “mplayer *.mkv”.The only advantage is it can let my two cpu collaborate,and it is important.
    When I playe the ts file with the command:mplayer -demuxer lavf -vc coreserve *.ts,an error came.
    ——————————
    Forced video codec: coreserve
    Cannot find codec matching selected -vo and video format 0×31435657.
    Read DOCS/HTML/en/codecs.html!
    ——————————
    And there was no video.
    If I used “mplayer *.ts”,there was a black image all the time.
    My ~/.mplayer/config
    #vf=screenshot
    #vf=expand=:::::8/5:2
    ao=alsa
    mixer=/dev/mixer
    af=volnorm
    #softvol=1
    #softvol-max=300
    vo=xv
    #dr=yes
    framedrop=yes
    double=yes
    autosync=30
    ontop=1
    cache=8192
    cache-min=20
    cache-seek-min=50
    #unicode=yes
    subcp=cp936
    overlapsub=1
    subalign=0
    sub-fuzziness=1
    subfont-autoscale=2
    subfont-text-scale=3
    subfont-osd-scale=3
    monitoraspect=8:5
    loop=0
    stop-xscreensaver=1

    Can you help me?Thanks for that!

  19. acmelab68 Post author

    AFAIK CoreAVC can’t handle VC1. Could you check if there’s anything regarding this in the mplayer output?

  20. LaoLiulaoliu

    1.mplayer -demuxer lavf -vc coreserve *.ts
    MPlayer dev-SVN-r27872-4.3.2 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz (Family: 6, Model: 15, Stepping: 13)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    129 audio & 259 video codecs

    Playing Cosmic.Voyage.IMAX.Blu-ray.REMUX.VC-1.1080P.DD51.SILUHD.disk1.ts.
    Cache fill: 0.00% (0 bytes)
    libavformat file format detected.
    LAVF: Program 1
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    VIDEO: [WVC1] 1920×1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    ==========================================================================
    Forced video codec: coreserve
    Cannot find codec matching selected -vo and video format 0×31435657.
    Read DOCS/HTML/en/codecs.html!
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback…
    A: 5.1 (05.0) of 1799.4 (29:59.4) 1.0% 88%

    MPlayer interrupted by signal 2 in module: play_audio

    MPlayer interrupted by signal 2 in module: enable_cache
    A: 5.1 (05.0) of 1799.4 (29:59.4) 1.0% 88%

    2.mplayer *.ts
    MPlayer dev-SVN-r27872-4.3.2 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz (Family: 6, Model: 15, Stepping: 13)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    129 audio & 259 video codecs

    Playing Cosmic.Voyage.IMAX.Blu-ray.REMUX.VC-1.1080P.DD51.SILUHD.disk1.ts.

    TS file format detected.
    VIDEO VC1(pid=4129) AUDIO A52(pid=4133) NO SUBS (yet)! PROGRAM N. 1
    Searching for VC1 sequence header… found
    VIDEO: VC-1 1920×1080, 23.976 fps, header len: 33
    ==========================================================================
    Opening video decoder: [dmo] DMO video codecs
    DMO dll supports VO Optimizations 0 1
    DMO dll might use previous sample when requested
    GetOutput r=0×0 size:6220800 align:1
    StreamCount r=0×0 1 1
    Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
    Decoder is capable of YUV output (flags 0x1b)
    VDec: vo config request – 1920 x 1080 (preferred colorspace: Packed YUY2)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined – no prescaling applied.
    VO: [xv] 1920×1080 => 1920×1080 Planar YV12
    [ASPECT] Warning: No suitable new res found!
    [ASPECT] Warning: No suitable new res found!
    [ASPECT] Warning: No suitable new res found!
    Selected video codec: [wmvvc1dmo] vfm: dmo (Windows Media Video (VC-1) Advanced Profile Decoder)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback…
    ProcessInputError r:0xffffff9c=-100 (keyframe: 1)
    ProcessInputError r:0×80004005=-2147467259 (keyframe: 1)??,?% 0 0 99%
    ProcessInputError r:0×80004005=-2147467259 (keyframe: 1)??,?% 1 0 98%
    ProcessInputError r:0×80004005=-2147467259 (keyframe: 1)??,?% 1 0 98%

  21. acmelab68 Post author

    @LaoLiulaoliu
    Well, I’m not sure about that. At least it seams to be right for Linux. And without CoreAVC on Linux it’s damn slow -> unusable. Sorry, that I can’t be more precise about that, but I’m simply don’t know.

  22. Andy

    FYI – I got this working on Hardy (32-bit) using the latest SVN revisions of mplayer (rev:29001) and coreavc-for-linux (rev:82).

    Thanks for the guide, it was a big help! Something I noticed – you need to be very careful when copying and pasting the codecs.conf (step 5). The “x” characters in the hex codes on the “guid” line were not being properly parsed by mplayer, which took me some time to figure out! I was still getting “Cannot find codec matching selected -vo and video format 0×31435657″ until I replaced the characters using vim.

  23. acmelab68 Post author

    @Nicholas Polydor
    yes, he’s talking about latest trunk, it’s very likely the error is gone now in the meantime. Just try to run coreavc-for-linux #82 againts mplayer #27903.

  24. Nicholas Polydor

    I’m running 8.10 Intrepid 32-bit (thought it would be OK due to Andy’s advice) on an eee PC 901. I’ve downloaded both coreavc-for-linux #77 and #82 and all the SVN revisions of mplayer listed above, and have followed the above instructions exactly. However, after multiple attempts, using all these different versions and on both 2.6.27.7-eeepc-lean and 2.6.27.8-generic, I have failed in having a window open and playing video (although sound has played fine).

    Here is my output:

    $ /usr/local/bin/mplayer -demuxer mkv -vc coreserve 720p-matroska-movie.mkv

    MPlayer dev-SVN-r27904-4.3.2 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    129 audio & 259 video codecs

    Playing /media/SECONDDISK/_FILMS_/Black.Snake.Moan.2006.DVD5.720p.HDDVD.x264-REVEiLLE/black.snake.moan.2006.dvd5.720p.hddvd.x264-reveille.mkv.
    [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
    [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
    [mkv] Will play video track 1.
    Matroska file format detected.
    VIDEO: [avc1] 1280×528 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
    [cyberblade] Error occurred during pci scan: Operation not permitted
    [mach64] Error occurred during pci scan: Operation not permitted
    [mga] Error occurred during pci scan: Operation not permitted
    [mga] Error occurred during pci scan: Operation not permitted
    [nvidia_vid] Error occurred during pci scan: Operation not permitted
    [pm3] Error occurred during pci scan: Operation not permitted
    [radeon] Error occurred during pci scan: Operation not permitted
    [rage128] Error occurred during pci scan: Operation not permitted
    [s3_vid] Error occurred during pci scan: Operation not permitted
    [SiS] Error occurred during pci scan: Operation not permitted
    [unichrome] Error occurred during pci scan: Operation not permitted
    ==========================================================================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    shm:/dshow_shm.b7dc2930
    sem1:/dshow_sem1.b7dc2930
    sem2:/dshow_sem2.b7dc2930
    Opening device
    len: 992
    ProductVersion: 1.8.5
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    VDec: vo config request – 1280 x 528 (preferred colorspace: Packed YUY2)
    [PP] Using codec’s postprocessing, max q = 4.
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 2.42:1 – prescaling to correct movie aspect.
    VO: [null] 1280×528 => 1280×528 Planar YV12
    Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder 1.3 for x86 – http://corecodec.org/)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback…
    Initialization is complete
    A: 0.1 V: 0.2 A-V: -0.082 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
    pts value <= previous
    A: 0.1 V: 0.0 A-V: 0.096 ct: -0.004 0/ 0 ??% ??% ??,?% 1 0
    A: 0.2 V: 0.1 A-V: 0.074 ct: -0.008 0/ 0 ??% ??% ??,?% 1 0
    A: 0.2 V: 0.1 A-V: 0.059 ct: -0.011 0/ 0 ??% ??% ??,?% 2 0
    A: 0.2 V: 0.2 A-V: 0.022 ct: -0.014 0/ 0 ??% ??% ??,?% 2 0
    A: 0.2 V: 0.2 A-V: -0.012 ct: -0.017 0/ 0 ??% ??% ??,?% 2 0
    A: 0.2 V: 0.2 A-V: -0.025 ct: -0.020 0/ 0 ??% ??% ??,?% 2 0

    ************
    in-frames: 328 out-frames: 322
    ************
    Destroying filter
    Exiting… (Quit)

  25. acmelab68 Post author

    @Nicholas Polydor
    mplayer behaves like this, if it’s unpatched. Maybe you’re just jusing the already installed one.
    invoke fully qualified “/usr/local/bin/mplayer -your-switches-here …”
    If not, check your ~/.mplayer/codecs.conf for strange chars, I’ve posted accidentally a bogus codecs.conf. Make sure the user, who starts mplayer, is the user who owns codecs.conf. Don’t be root, else you might not be able to open DISPLAY, or invoke as the login-user “xhost +” in command line.

  26. Johannes Wilm

    Hey, I have been trying for a few hours, mostly recompiling mplayer over and over again. But no matter what I try to play, I get an:
    “Forced video codec: corecodec
    Cannot find codec matching selected -vo and video format 0×10000005.”

    However, the very end of my ~/.mplayer/codecs.conf is:


    videocodec coreserve
    info “CoreAVC DShow H264 decoder 1.3 for x86 – http://corecodec.org/
    status working
    format 0×10000005
    fourcc H264,h264 H264
    fourcc X264,x264
    fourcc avc1,AVC1 AVC1
    fourcc davc,DAVC
    fourcc VSSH
    driver dshowserver
    dll “CoreAVCDecoder.ax”
    guid 0x09571a4b, 0xf1fe, 0x4c60, 0×97, 0×60, 0xde, 0x6d, 0×31, 0x0c, 0x7c, 0×31
    out YV12,IYUV,I420,YUY2

    Now I read something about problems with X’es. Which ones would those be? I edit with nano. The dshowserver test seems to be working fine.

  27. acmelab68 Post author

    @Johannes Wilm
    Hallo Johannes. The lines, which starts with “guid 0×95..”. Replace every “x” to be sure, there’s no special char in this line. I’ve checked my lines above, and it seems correct. Your codecs.conf looks wrong.
    Anyhow, sorry for the inconvenience.

  28. Johannes Wilm

    @Johannes Wilm
    Ehm, well, I just noticed in the example how “coreserve” and “corecodec” were mixed. Even with that fixed though, ti still doesn’t work. I now get a segfault. I’ll compile mplayer with “./configure –enable-debug” and give more feedback on that.

  29. acmelab68 Post author

    @Johannes Wilm
    1) make sure user is the user for the codecs.(recheck for strange chars in it)
    2) check for read permissions
    3) ensure the right mplayer is invoked (/usr/local/mplayer)
    4) if you’re doing all as root, make “xhost +” as default user, so you can open DISPLAY
    5) does dshowserver test worked successfully.
    6) dump the mplayer line, you’re using here.
    7) are you really on 64bit environment (uname -a)

  30. Johannes Wilm

    1) the folder ~/.mplayer and all its contents are owned by user “johanneswilm” who is also executing mplayer
    2) of what?
    3) I did that, and to make sure I removed the /usr/bin/mplayer
    4) am not doing it as root
    5) yes
    6) mplayer -fps 60 -vc coreserve johanneswilm.mts
    7) no, but I recompiled dshowserver and registercodec on my machine, so they should be 32bit, right? I run i686 on a Macbook Intel 2 core…

  31. centx86_64

    Opening video decoder: [dshowserver] DirectShowServer video codecs
    shm:/dshow_shm.51297710
    sem1:/dshow_sem1.51297710
    sem2:/dshow_sem2.51297710
    Opening device
    len: 992
    ProductVersion: 1.8.5
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    Initialization is complete
    DirectShow filter failedVDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

    Howto Fix it ?

  32. dhanar_10

    I have just got mplayer and coreavc working.

    Computer: Acer Aspire One (Intel Atom 1.6GHz, RAM 1Gb, HDD 160Gb)
    OS: Ubuntu 8.10

    Mplayer: 1.0rc2 (I got it from packages.ubuntu.com)
    coreavc-linux: r82
    coreavc: 1.8.5

    I had to apply the patch manually since the patch does not fit the mplayer source perfectly.

    I tested it with 1280×720 H264/AAC MKV file. It works well (no lags), but the picture sometimes get pixelated on fast scene. I am still trying to figure out what the cause is.

    If anyone need more information about this, please let me know.

  33. dhanar_10

    I have just compiled mplayer r27949 with coreavc-for-linux r82 successfully. Now, it can play most of my 1280×720 H264/AAC files perfectly. It does not get pixelated anymore on fast scenes.

    However, if I activate ASS rendering on some files whose subtitle contains Japanese characters, It lags badly. The workaround for this is by disabling the ASS rendering. Does anyone know how to actually solve this problem?

  34. chx

    With the latest revs, I used the build_patch.pl script in the mplayer directory like this …./build_patch.pl . |patch -p0 and it worked.

  35. acmelab68 Post author

    @chx
    hmm, good point. And mplayer’s ‘./configure’ does recognize the presence of these additional libs on its own, and handle the rest automatically, right?

  36. Viper

    dhanar_10, I guess you installed dshowserver r82 according to CoreAVC revision, didn’t you?

    Where did you get dshowserver r82 source to compile or the binaries already compiled?

  37. acmelab68 Post author

    It’s all here: http://code.google.com/p/coreavc-for-linux/source/checkout,
    except the last binary for the x86_64 edition. As far as I can see, I’m the only one who’s offering this for download atm. But of course you can compile it on a 32bit machine with the STATIC=1 switch, and use it on a x86_64 box then. It’s just some people don’t have two machines to complile on, or even some don’t know how to compile at all(yes, they are out there ;-)

  38. Viper

    Actually I meant the static build, I realized the source code comes with coreAVC. I tried to compile myself with STATIC=1 but I got some errors. My O.S. is also Ubuntu 8.10, could you upload to megaupload dshowserver and registercodec already compiled???

    Did just “sudo make -C STATIC=1″ work?

    I got some error compiling loader too.

    Thank you very much

  39. acmelab68 Post author

    @Viper
    Sorry, I though we are talking about this one: http://blog.mymediasystem.net/?p=727
    I’ve build already an binary package for x86_64 Ubuntu 8.10. Just download and install it like described.
    Btw: There are other interesting posts regarding H264 acceleration in this blog. Look for “vdpau” or NVIDIA, they’ve got hardware acceleration working now for NVIDIA cards. (Beta!)

    Regards,
    Andreas

  40. Pingback: Penguin Dreams » Blog Archive » 1080 Video in Linux with CoreAVC

  41. evelkeneevel

    i used coreavc-for-linux after following your instructions, and it worked perfectly! Still, a few days ago i discovered the multithreaded ffmpeg version, and mplayer’s playback is less CPU-intensive that way in my system, compared to coreavc-for-linux. If anyone is interested, follow the instructions of the first post, it worked just fine for me!

    http://www.gossamer-threads.com/lists/mythtv/mythtvnz/367718

  42. acmelab68 Post author

    @evelkeneevel
    Thanks!
    Almost lost ffmpeg-mt out of my focus. Actually it was the first thing I’ve tried at all, before I began to focus on CoreAVC.
    Few month ago only a few repository changes were made over a couple of weeks, and this made me think the whole project it doomed to die somehow.
    I’m really glad they’re alive and kicking.

  43. Pingback: XBMCFreak.nl » CoreAVC onder Ubuntu

  44. Pingback: best video games

Comments are closed.