Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: HOWTO: CoreAVC for Linux installation guide

  1. #21
    Join Date
    Dec 2006
    Beans
    1

    Re: HOWTO: CoreAVC for Linux installation guide

    Some problem here

    What steps will reproduce the problem?
    1. I followed all insturctions
    2. dshowserver test outputs correctly
    3. mplayer svn patches nicely (using patch found in issues section of coreavc for linux website
    4. mplayer builds nicely.
    5. mplayer from CLI runs with what look like happy output but I get sound and NO VIDEO.. Just black screen.

    What is the expected output? What do you see instead?
    If i run
    mplayer -demuxer lavf -vc coreserve -vo xv -fs working.mkv
    on a short (5 second) 720p test video i download i get a squak of sound the
    screen flashes and then instantly its over.. Here is my output from that.

    MPlayer dev-SVN-r27496-4.2.3 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
    Stepping: 11)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    128 audio & 258 video codecs

    Playing working.mkv.
    libavformat file format detected.
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    [lavf] Subtitle stream found, -sid 0
    VIDEO: [H264] 1280x688 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    Clip info:
    name: Paprika (2006)
    ================================================== ========================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    shm:/dshow_shm.b5a3d760
    sem1:/dshow_sem1.b5a3d760
    sem2:/dshow_sem2.b5a3d760
    Opening device
    Called unk_IsDebuggerPresent
    len: 992
    ProductVersion: 1.7.0
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    Initialization is complete
    VDec: vo config request - 1280 x 688 (preferred colorspace: Packed YUY2)
    [PP] Using codec's postprocessing, max q = 4.
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.86:1 - prescaling to correct movie aspect.
    VO: [xv] 1280x688 => 1280x688 Planar YV12 [fs]
    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
    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)
    Starting playback...
    A: 0.4 V: 0.0 A-V: 0.353 ct: 0.000 0/ 0 ??% ??% ??,?% 59 0
    ************
    framecount=0
    ************
    Destroying filter
    Exiting... (End of file)
    duncan@blackbox:~/Desktop$ mplayer -demuxer lavf -vc coreserve -vo xv -fs
    working.mkv
    MPlayer dev-SVN-r27496-4.2.3 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
    Stepping: 11)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    128 audio & 258 video codecs

    Playing working.mkv.
    libavformat file format detected.
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    [lavf] Subtitle stream found, -sid 0
    VIDEO: [H264] 1280x688 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    Clip info:
    name: Paprika (2006)
    ================================================== ========================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    shm:/dshow_shm.b5a1f760
    sem1:/dshow_sem1.b5a1f760
    sem2:/dshow_sem2.b5a1f760
    Opening device
    Called unk_IsDebuggerPresent
    len: 992
    ProductVersion: 1.7.0
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    Initialization is complete
    VDec: vo config request - 1280 x 688 (preferred colorspace: Packed YUY2)
    [PP] Using codec's postprocessing, max q = 4.
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.86:1 - prescaling to correct movie aspect.
    VO: [xv] 1280x688 => 1280x688 Planar YV12 [fs]
    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
    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)
    Starting playback...
    A: 0.1 V: 0.0 A-V: 0.078 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
    ************
    framecount=0
    ************
    Destroying filter
    Exiting... (End of file)


    If i run the same mplayer command on a Huge 1080P file I get a black screen
    but the correct sound and this output is waiting when i hit escape.

    MPlayer dev-SVN-r27496-4.2.3 (C) 2000-2008 MPlayer Team
    CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
    Stepping: 11)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
    128 audio & 258 video codecs

    Playing Planet.Earth.02.Mountains.2006.1080p.HDDVD.x264-AJP.mkv.
    libavformat file format detected.
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    [lavf] Subtitle stream found, -sid 0
    VIDEO: [H264] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
    ================================================== ========================
    Forced video codec: coreserve
    Opening video decoder: [dshowserver] DirectShowServer video codecs
    shm:/dshow_shm.b5a43760
    sem1:/dshow_sem1.b5a43760
    sem2:/dshow_sem2.b5a43760
    Opening device
    Called unk_IsDebuggerPresent
    len: 992
    ProductVersion: 1.7.0
    Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
    Decoder is capable of YUV output (flags 0x2b)
    Setting fmt
    Starting
    Initialization is complete
    VDec: vo config request - 1920 x 1080 (preferred colorspace: Packed YUY2)
    [PP] Using codec's postprocessing, max q = 4.
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    [swscaler @ 0x8da2170]using unscaled yuv420p -> rgb32 special converter
    VO: [gl] 1920x1080 => 1920x1080 BGRA [fs]
    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
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ================================================== ========================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...






    What version of the product are you using? On what operating system?
    Gutsy Gibbson. Ubuntu 8.04
    Coreacv 1.7.0
    mplayer svn as of Aug 29 08



    Any ideas how I'm getting no errors but I can't see any video?

  2. #22
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Re: HOWTO: CoreAVC for Linux installation guide

    Linux lacks GPU acceleration for video decoding for AVC / H.264.

    If you dont want to compile, easiest is to use totem with the gstreamer backend and install the following gstreamer plugins:

    good
    bad
    ugly
    Including all multiverse variants
    ffmpeg plugin

    Then you will have a working AVC/H.264 decoder that is faster than CoreAVC through WINE.
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  3. #23
    Join Date
    Sep 2008
    Beans
    13

    Re: HOWTO: CoreAVC for Linux installation guide

    Hi,

    Having trouble compiling the source code. Did everything in http://ubuntuforums.org/showthread.php?t=558538 . used ./configure and then make. See compilation errors:

    swscale.c: In function 'yuv2rgbXinC_full':
    swscale.c:808: error: 'SwsContext' has no member named 'oy'
    swscale.c:808: error: 'SwsContext' has no member named 'cy'
    swscale.c:808: error: 'SwsContext' has no member named 'cvr'
    swscale.c:808: error: 'SwsContext' has no member named 'cvg'
    swscale.c:808: error: 'SwsContext' has no member named 'cug'
    swscale.c:808: error: 'SwsContext' has no member named 'cub'
    swscale.c:820: error: 'SwsContext' has no member named 'oy'
    swscale.c:820: error: 'SwsContext' has no member named 'cy'
    swscale.c:820: error: 'SwsContext' has no member named 'cvr'
    swscale.c:820: error: 'SwsContext' has no member named 'cvg'
    swscale.c:820: error: 'SwsContext' has no member named 'cug'
    swscale.c:820: error: 'SwsContext' has no member named 'cub'
    In file included from swscale.c:909:
    swscale_template.c: In function 'yuv2yuv1_MMX2':
    swscale_template.c:995: warning: initialization from incompatible pointer type
    swscale_template.c:995: warning: initialization from incompatible pointer type
    swscale_template.c:995: warning: initialization from incompatible pointer type
    swscale_template.c: In function 'rgb24ToUV_MMX2':
    swscale_template.c:2089: warning: unused variable 'i'
    swscale_template.c: In function 'swScale_MMX2':
    swscale_template.c:3087: warning: cast from pointer to integer of different size
    swscale_template.c:3095: warning: cast from pointer to integer of different size
    swscale.c: In function 'sws_setColorspaceDetails':
    swscale.c:1956: error: 'SwsContext' has no member named 'cy'
    swscale.c:1957: error: 'SwsContext' has no member named 'oy'
    swscale.c:1958: error: 'SwsContext' has no member named 'cvr'
    swscale.c:1959: error: 'SwsContext' has no member named 'cvg'
    swscale.c:1960: error: 'SwsContext' has no member named 'cug'
    swscale.c:1961: error: 'SwsContext' has no member named 'cub'
    swscale.c: In function 'sws_getCachedContext':

  4. #24
    Join Date
    Feb 2006
    Beans
    25

    Re: HOWTO: CoreAVC for Linux installation guide

    What does export REGISTRY actually do? I tried both these options:

    option 1: If you are using dshowserver (for mythtv) do:
    export REGISTRY=$HOME/.mplayer/registry32

    option 2: If you are using mplayer or xine do:
    export REGISTRY=$HOME/.mplayer/registry

    And then this but with my key:

    then do this: (for coreavc v1.7)
    registercodec -r $REGISTRY -k
    "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "55555-55555-CORE-55555-55555"

    It doesn't seem to work for me. I still get an error that there is no serial number.

    Do I need a windows installation to export registry?

  5. #25
    Join Date
    Nov 2008
    Beans
    2

    Re: HOWTO: CoreAVC for Linux installation guide

    Hi Guys,

    Could someone help me?

    When i try to import the key from the registry it tells me

    Must specify '-r' and either '-k' or '-l'

    And i cant get anywhere =/

  6. #26
    Join Date
    Sep 2008
    Beans
    13

    Re: HOWTO: CoreAVC for Linux installation guide

    Hi DCJuggler,
    Did you export REGISTRY=$HOME/.mplayer/registry32 , before invoking registercodec?
    The error message you're getting is returned when REGISTRY is not defined

  7. #27
    Join Date
    Jun 2007
    Location
    Heraklion/Crete/Greece
    Beans
    18
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: CoreAVC for Linux installation guide

    Firstly it's better not to split the commands in two line. Use it like this:

    Code:
    registercodec -r $REGISTRY -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "55555-55555-CORE-55555-55555"
    Secondly (and most importantly) "55555-55555-CORE-55555-55555" is not a valid CoreAVC key. You must use your own key. To find your key type
    Code:
    regedit
    The Windows Registry Editor will open. Then go to HKEY_LOCAL_MACHINE\Software\CoreCodec\CoreAVC Pro and copy the value of Serial. This is your valid CoreAVC key. After that, try the above command, using your own key (quotas included).

    As for mplayer arguments, I use

    Code:
    -softvol-max 5000 -cache 30000 -autosync 30 -fs -zoom -quiet -monitoraspect 16:10 -lavdopts threads=2:fast:skiploopfilter=all -noslices -sws 0 -vc coreserve
    -vc coreserve -> Makes mplayer to use CoreAVC
    -softvol-max -> Give you sound amplify (x50)
    -cache -> Precaches 30MB for better fps
    -autosync -> Auto resync A/V
    -fs -> To have fullscreen
    -zoom -> To have proper fullscreen
    -quiet -> No output
    -monitoraspect -> Sets the monitor aspect
    -lavdopts threads=2:fast:skiploopfilter=all -> Read the man for more
    -noslices -> try it out. Sometimes gives better fps, sometimes not.

    I use these to gnome-mplayer in a Turionx2 TL52 (1.6 GHz), 2 GB Ram, GForce Go 7300 and I can get 1080p with under 60% CPU usage.

  8. #28
    Join Date
    Sep 2006
    Beans
    72

    Re: HOWTO: CoreAVC for Linux installation guide

    Thanks, just did this on my 64bit. Download codec pack, extract with wine. Copy codec and reg-key, patch mplayer, install, edit config. Pretty strait forward if you ask me. Playback is much better now.

    Here are a few options I use for smoother playback: If you got an external sound system and hook it up whit spdif "-ao alsa:device=spdif" this makes your external audio receiver decode the audio giving your cpu less work.

    Got an opengl compatible screencard? "-vo gl" or "-vo gl2" makes your videocard take some of the load of your cpu.

    Now I can play 1080p content smoothly on my 3800+ 64 X2 AMD Athlon.

    Your guide could be a little shorter though:

    download codec and keyg*n from torrent site
    wine coreavc_professional_edition-setup.exe
    wine keyg*n.exe
    finish install, save key to text file.
    cp $HOME/.wine/drive_c/Program\ Files/CoreCodec/CoreAVC\ Professional\ Edition/CoreAVCDecoder.ax /usr/lib/win32/
    download and extract http://code.google.com/p/coreavc-for...downloads/list
    cp dshowserver /usr/local/bin
    cp ../loader/registercodec /usr/local/bin
    export REGISTRY=$HOME/.mplayer/registry32
    registercodec -r $REGISTRY -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "your-key-here"
    thats why I made you save it, you can just generate a new one though.
    run "dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449" to make sure it worked, valid output should end in "Starting, Initialization is complete"

    Mplayer:
    svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ coreavc-for-linux
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
    cp coreavc-for-linux/mplayer/* .
    cd mplayer
    patch -p0 < ../dshowserver.patch
    ./configure
    make
    make install

    cp etc/codec.conf ../.mplayer
    add:
    videocodec coreserve
    info "Whatever 8.0 x86_64"
    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

    to .mplayer/codec.conf
    Done.

    If you want you can add something like this to .bashrc
    alias play='/usr/bin/mplayer -nojoystick -nolirc -msgcolor -vo gl -fs -zoom'
    alias hd-play='/usr/local/bin/mplayer -nojoystick -nolirc -fs -ao alsa:device=spdif -vo gl -vc coreserve -nocorrect-pts'

    This way the command "play" plays files using your apt-get mplayer while "hd-play" uses the one you just made. Note the commands above is an example I just copied from my bashrc, you might want/need diffrent options. You need to run "source $HOME/.bashrc" for the aliases to take effect, bash autocompletion work whit aliases and more flags can still be added on the commandline, example "play -playlist playlistfile"

    Thanks for this very useful guide OP!
    Last edited by tripmix; January 27th, 2009 at 02:23 AM. Reason: fix mistake

  9. #29
    Join Date
    May 2008
    Beans
    4

    Re: HOWTO: CoreAVC for Linux installation guide

    Does anybody know if its possible to route the video through the framebuffer? The ivtv one?

    I get "cannot find codec matching selected -vo and video format"

    I'm thinking it might not be configured to allow the use of the framebuffer for the coreserv codec?

    Any ideas?

    Thanks for a great thread...

  10. #30
    Join Date
    Sep 2006
    Beans
    72

    Re: HOWTO: CoreAVC for Linux installation guide

    Can't say I really understand what you mean? But if your talking about the ivtv mpeg4 decoder from a TV-card that will only be able to decode mpeg streams. High end video-cards have native x264 decoding, but only in win. If you are taking about the regular framebuffer ie: -vo fbdev, the question would be why?? If your box is to slow to run X there is no way you'll ever get high-def output. What happens if you use xv, x11 or gl? What kind of file are you trying to play?

    EDIT: if you have a TV-card with native x264 decoding capabilities I don't see why not, but I only have a old WinTV card so I don't know how.Maybe -vo mpegpes
    Last edited by tripmix; January 27th, 2009 at 06:50 AM.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •