7) Install coreavc with wine, or just copy the CoreAVCDecoder.ax file into /usr/lib/win32. Create this folder, if it’s not there yet.
wine coreavc_professional_edition-setup.exe
mkdir /usr/lib/win32
cp "$HOME/.wine/drive_c/Program Files/CoreCodec/CoreAVC Professional Edition/CoreAVCDecoder.ax" /usr/lib/win32
8 ) Test your dshowserver:
dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449
This is what you should see:
No id specified, assuming test mode
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
9) We’re almost there. Now start mplayer:
/usr/local/bin/mplayer -demuxer mkv -vc coreserve my-matroska-movie-here.mkv
Now you should see a window with your playback. Use the command 'top'
at a command line and see if dshowserver
is running (should be at the top position), and press the key ‘1
‘ to see how dshowserver
is utilizing your CPU cores. If it also works without the ‘-demuxer mkv
‘ switch, leave it away.
If you don’t see a video, and you can hear sound only, check, if your mplayer have really been built recently. Check it like this
it should have the current timestamp:
ls -l /usr/local/bin/mplayer
-rwxr-xr-x 1 root root 9267480 2008-10-23 22:38 /usr/local/bin/mplayer
If you still can’t get it to work, please check the coreavc-for-linux site for updates.
NOTE: The playback of AVCHD footage from my camcorder (Canon HF100) doesn’t work properly. I’ve got only a few frames per second. I’ve addressed this issue already. Use the search function in this Blog.
For AVCHD playback you should use for Panasonic the lavf
demuxer or for Canon the -fps 50
or NTSC 60 switch. See also here in this Blog. But like already mentioned: It’s not working atm.
Please report errors. Thanks.
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 0x31637661.
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.
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 0x31637661.
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.
@Erik
Could you please post your mplayer line here? (cut&paste)
and did the dshowserver test run successfully?
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.
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
@Erik
Does error come from the ‘mplayer’, or from your ‘make’ command?
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 0x34363248.
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 0x31637661.
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 0x34363248 -o 0x30323449
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
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
oh and the ~/.mplayer/codecs.conf has the arbitrary date “release 20081020
“
@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
# 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
@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)
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 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
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.
@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
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.
@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?
It’s never worked with CoreAVC in Linux. It works under Windows XP.
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
@Bas
Thanks, I’ve added your version, too.
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 0x31435657.
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!
AFAIK CoreAVC can’t handle VC1. Could you check if there’s anything regarding this in the mplayer output?
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 0x31435657.
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=0x0 size:6220800 align:1
StreamCount r=0x0 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:0x80004005=-2147467259 (keyframe: 1)??,?% 0 0 99%
ProcessInputError r:0x80004005=-2147467259 (keyframe: 1)??,?% 1 0 98%
ProcessInputError r:0x80004005=-2147467259 (keyframe: 1)??,?% 1 0 98%
All my *.ts files are VC1,so can not be supported by coreserve.Right?
@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.
Thank you.I know the result.
Is there a method for using CoreAVC 1.8.5 for Ubuntu 8.10 32Bit?
@Jeremy
Read here the complete wiki documentation: http://code.google.com/p/coreavc-for-linux/w/list
32Bit is actually the the default target platform
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.
@Andy
Thanks a lot! I’ve corrected these ‘X’-chars.
And sorry for the mistake.
Andy, do you actually mean revision 27901 ?
@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.
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)
@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.
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 0x10000005.”
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 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
”
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.
@Johannes Wilm
Hallo Johannes. The lines, which starts with “guid 0x95..”. 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.
@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.
Apparently there is no back-trace, even when compiled with –enable-debug. Well, I have no idea. Any clues?
@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)
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…
@Johannes Wilm
Sorry, but I really don’t know.
You could try (If you not already did) to post your problem here: http://code.google.com/p/coreavc-for-linux/issues/list
I think it’s the right place, although it might get not that interactive like it is here.
Sorry.
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 ?
would you please post your mplayer line?
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.
One more thing, I also needed to modify a bit the codecs.conf.
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?
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.
Sorry, I was wrong, I tried to apply mplayer.patch…
Dont forget that for OSD you need the libfontconfig-dev and the libfreetype6-dev packages…
@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?
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?
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 ๐
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
@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
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
@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.