PDA

View Full Version : [Howto] MPlayer with CoreAVC



Pages : 1 [2]

Talix
December 26th, 2009, 04:48 AM
It's because the Ubuntu pastebin decided it requires people to login now, so when you tried to download the text with wget, you got a nice error message instead, which patch obviously didn't understand.
Hmm, seems a bit pointless as any eventual spammers / bandwidth bitches (I suppose it is because of these that they implement logins now) would obviously be able to make accounts too, thus being able to hog on... Or is their some good reason for it?

Anyway, thank you both for your help on the subject, I can now get back to my shows on the eeepc (well, if it works :s ) - I hate using x264 especially for all the live-action :/

trapperjohn
December 26th, 2009, 04:21 PM
But any real-life movie you open gets out of sync once in a few half minutes, it's kinda annoying.

With mplayer-mt? Not in my case.

Master One
December 26th, 2009, 08:38 PM
trapperjohn, how about the AVC 720p episodes from Riese - The Series (http://www.youtube.com/user/Riesetheseries) (which is a free webseries, means a legal download)? For example, here the first episode (http://www.youtube.com/watch?v=4UVy7uUceXw), which I downloaded using the Firefox plugin "DownloadHelper". There are several versions of the file available for download, it's important to choose the [HQ22] file with .mp4 ending, which is 720p using H.264 / AVC video codec, and MPEG-4 AAC audio codec.

Do such files play on your Atom N270 machine without any problems using mplayer-mt?

On my DualCore Atom 330 setup, neither the default videoplayer of Ubuntu (Totem), nor mplayer from the Ubuntu repos or VLC can playback these files, whereas mplayer + CoreAVC can do it with not more than 50-70% CPU power, still didn't try mplayer-mt though.

Still no clue about getting CoreAVC 2.0.0 to run with this mplayer + dshowserver setup? I guess I am just not into it deep enough, I follow this thread, but I have no clue where else to look for more info on that matter.

Bachstelze
December 26th, 2009, 08:45 PM
Still no clue about getting CoreAVC 2.0.0 to run with this mplayer + dshowserver setup? I guess I am just not into it deep enough, I follow this thread, but I have no clue where else to look for more info on that matter.

I can't do any testing without a trial version of CoreAVC 2. I'm not buying it since I now use VDPAU. BetaBoy said there would be a trial version shortly after release but we're still waiting...

ogooreck
December 27th, 2009, 02:06 PM
I can't get coreavc 2.0 to work either.
When I try to run it in mplayer, I get "Called unk_GetModuleHandleW" repeatedly.

I get the same message.
GetModuleHandleW is not implemented in loader/win32.c. Probably that's the problem.

http://source.winehq.org/source/dlls/kernel32/module.c

Unicode version of GetModuleHandleA

Master One
December 27th, 2009, 02:38 PM
Ok, getting somewhere, but this will be interesting now, since the coreavc-for-linux project on code.google.com is pretty much dead (last update to the source tree on 28th October 2008 ), someone else will have to come up with a solution.

I guess it's not as easy as just replacing mplayer-with-coreavc/coreavc-for-linux/loader/module.c and(?) mplayer-with-coreavc/mplayer/loader/module.c with http://source.winehq.org/source/dlls/kernel32/module.c, is it?

loader/module.c from coreavc-for-linux and mplayer are not the same, and both say "Modified for use with MPlayer" at the beginning of the file.

Are we stuck now?

Can someone please give Bachstelze the CoreAVCDecoder.ax file and a registration? ;)

The present state is quite annoying, on one hand some claim to have it working, on the other hand no info on how it's done, most likely the only one able to fix the problem (Bachstelze) can not investigate the issue due to the lack of a trial-version, I found out that I have quite some files affected by those (weighted P and/or B-frames) picture distortions, and my wife is bugging me, because we still can't watch those files... :(

trapperjohn
December 27th, 2009, 03:54 PM
trapperjohn, how about the AVC 720p episodes from Riese - The Series (http://www.youtube.com/user/Riesetheseries) (which is a free webseries, means a legal download)? For example, here the first episode (http://www.youtube.com/watch?v=4UVy7uUceXw), which I downloaded using the Firefox plugin "DownloadHelper". There are several versions of the file available for download, it's important to choose the [HQ22] file with .mp4 ending, which is 720p using H.264 / AVC video codec, and MPEG-4 AAC audio codec.

Do such files play on your Atom N270 machine without any problems using mplayer-mt?

I tried it on my Atom netbook with mplayer-mt and the episode runs fine, no issues so far. Of course, this was on a smaller screen (1024x600). I'll try it on my TV when I'm home.

What errors do you get when running the default mplayer? What mplayer options do you use?

Master One
December 27th, 2009, 04:25 PM
When I try to play any AVC 720p file with the default mplayer, I just get the "Your system is too slow to play this file" message, and the playback it total crap with jerking picture and out of sync audio. The sames goes for Totem videoplayer.

I use SMplayer as the frontend, and I already tried different settings for cache, number of threads, filter and output-device, but this AVC decoding inefficiency just can not be tweaked.

I don't know, can mplayer with coreavc and mplayer-mt be installed at the same time, and can SMplayer be used for both? I don't want to mess up my system just for trying out mplayer-mt.

Bachstelze
December 27th, 2009, 05:28 PM
I don't know, can mplayer with coreavc and mplayer-mt be installed at the same time, and can SMplayer be used for both? I don't want to mess up my system just for trying out mplayer-mt.

Yes, mplayer-mt just uses multithreaded versions of the ffmpeg libraries instead of the "reguular" ones. Whether or not your ffmpeg libraries are multithreaded makes no difference as far as CoreAVC is concerned.

ogooreck
December 27th, 2009, 06:40 PM
I guess it's not as easy as just replacing mplayer-with-coreavc/coreavc-for-linux/loader/module.c and(?) mplayer-with-coreavc/mplayer/loader/module.c with http://source.winehq.org/source/dlls/kernel32/module.c, is it?


It's not as easy.
I woked it around but now I get:

Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
Opening device
Called unk_IsDebuggerPresent
GetModuleHandleA('SHELL32.dll') => 0x132
GetModuleHandleA('ADVAPI32.dll') => 0x0
GetModuleHandleA('ole32.dll') => 0x0
GetModuleHandleA('OLEAUT32.dll') => 0x131
GetModuleHandleA('USER32.dll') => 0x0
GetModuleHandleA('VERSION.dll') => 0x0
GetModuleHandleA('COMCTL32.dll') => 0x133
GetModuleHandleA('KERNEL32.dll') => 0x120
GetModuleHandleA('GDI32.dll') => 0x0
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
src: KERNEL32.DLL
Called unk_InitializeCriticalSectionAndSpinVirtualQuery
DirectShow filter failed

InitializeCriticalSectionAndSpinVirtualQuery ???
I give up.

GraceDivine
December 27th, 2009, 09:58 PM
Bachstelze, could you possibly upload the old 64-bit Dshowserver and Registercodec files that you made available before the release of Karmic? I lost all of my mplayer binaries that I previously built : ( Thanks in advance!

Bachstelze
December 27th, 2009, 10:02 PM
http://itsuki.fkraiem.org/stuff/dshowserver-ia32-r82.tar.bz2

chuckman78
December 28th, 2009, 08:15 AM
Ok, getting somewhere, but this will be interesting now, since the coreavc-for-linux project on code.google.com is pretty much dead (last update to the source tree on 28th October 2008 ), someone else will have to come up with a solution.

I guess it's not as easy as just replacing mplayer-with-coreavc/coreavc-for-linux/loader/module.c and(?) mplayer-with-coreavc/mplayer/loader/module.c with http://source.winehq.org/source/dlls/kernel32/module.c, is it?

loader/module.c from coreavc-for-linux and mplayer are not the same, and both say "Modified for use with MPlayer" at the beginning of the file.

Are we stuck now?

Can someone please give Bachstelze the CoreAVCDecoder.ax file and a registration? ;)

The present state is quite annoying, on one hand some claim to have it working, on the other hand no info on how it's done, most likely the only one able to fix the problem (Bachstelze) can not investigate the issue due to the lack of a trial-version, I found out that I have quite some files affected by those (weighted P and/or B-frames) picture distortions, and my wife is bugging me, because we still can't watch those files... :(

I am in the same situation, I think. I am watching lots of artifacts and distortion when playing lots of 720p and 1080p mkv files. I am using coreavc 1.9.5.

Also, Is there a way to configure coreavc in Ubuntu? It has some config options under windows...

Regards,

Carlos.

Bachstelze
December 28th, 2009, 08:28 AM
Also, Is there a way to configure coreavc in Ubuntu? It has some config options under windows...


They are all stored in the registry. This page (http://code.google.com/p/coreavc-for-linux/wiki/RegisterCoreAVC) gives more detail (scroll down a bit).

trapperjohn
December 28th, 2009, 01:31 PM
I tried it on my Atom netbook with mplayer-mt and the episode runs fine, no issues so far. Of course, this was on a smaller screen (1024x600). I'll try it on my TV when I'm home.



Okay, runs fine on 1280x720, too. Though it seems the file has a low bitrate (or a bad encoding) which is sometimes noticeable when watching the episode.

I tried to also open it with mplayer+CoreAVC but it doesn't even show up. After a while, mplayer just exits with an error. Does the file work for you using CoreAVC?

And yes, mplayer-mt (installed from the mentioned ppa repos) runs fine next to another mplayer because it uses its own binary as "mplayer-mt".

Master One
December 28th, 2009, 03:05 PM
I tried to also open it with mplayer+CoreAVC but it doesn't even show up. After a while, mplayer just exits with an error. Does the file work for you using CoreAVC?
That's what the dshowserver patch is for.

BagRackRider
December 28th, 2009, 06:05 PM
I can't get coreavc 2.0 to work either.
When I try to run it in mplayer, I get "Called unk_GetModuleHandleW" repeatedly.

I get the unk_GetModuleHandleW message too but after a while the video plays.
I THOUGHT it was working but i noticed it was using FFMPEG code as fallback. :(

EDIT:
I tried adding GetModuleHandleW myself but I think the wine code dshowserver uses needs updating. Just adding in GetModuleHandleW requires too much work as it is now, at least for me as I'm not skilled enough on C/C++.

Master One
December 29th, 2009, 04:46 PM
Since there is still no solution for using CoreAVC 2.0.0 with MPlayer, I now tried mplayer-mt on my Atom 330, and it indeed does the job.

I just tested it with the options "-cache 8192 -lavdopts threads=4:skiploopfilter=all" on one of the problematic files, which causes those picture distortions when using mplayer with CoreAVC 1.9.5, and playback was just fine, no distortions and no jerking, all 4 CPUs (DualCore with HyperThreading) stay between 60% and 80% most of the time.

So as long as CoreAVC 2.0.0 can not be used, mplayer-mt is indeed a working option. :)

BTW It's easy to use SMplayer as frontend for both (mplayer with CoreAVC and mplayer-mt), by just replacing "mplayer" with "mplayer-mt" (or the other way around) in the appropriate field in Options >> General.

BagRackRider
December 29th, 2009, 09:53 PM
Well, seems like I managed to add GetModuleHandle but I'm stuck at getting IsDebuggerPresent to return a FALSE value (i think).

This is what mplayer outputs now:

Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
Opening device
MSGBOX 'I'm sorry, this application will not run while Soft-Ice is running.' '(null)' (16)
EXIT - code 1

I can't get past that, it thinks I'm running a debugger. :(

EDIT:
Looks like they packed the CoreAVC codec with PECompact with extra options added. The previous version was also PECompact protected but they probably enabled more "anti-debugging/hacking" routines when packing the codec with PECompact this time.

EDIT2:
I think it's the GetModuleHandle code I added that caused the debug error msg to appear, I've done what I can but I give up on this. Hope someone else can fix it.

ogooreck
January 1st, 2010, 12:36 AM
Just a thought.
Maybe will be possible to compile dshowserver for windows (mingw for example) and run on wine ?

Starks
January 3rd, 2010, 12:40 AM
Is there any way to use CoreAVC 2.0 with mplayer-build?

Sölve
January 3rd, 2010, 02:14 AM
registercodec is no longer supported... A lot has changed in the code of dshowserver... Look at coreavc-for-linux site...

Starks
January 3rd, 2010, 04:14 AM
Almost have it working...


eric@kingfisher:~/mplayer/mplayer$ ./mplayer -vc coreserve ~/Videos/[gg]_Umineko_no_Naku_Koro_ni_-_23_[1F55F7E5].mkv
MPlayer UNKNOWN-4.4.2 (C) 2000-2009 MPlayer Team
134 audio & 285 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/eric/Videos/[gg]_Umineko_no_Naku_Koro_ni_-_23_[1F55F7E5].mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "480p H.264", -vid 0
[mkv] Track ID 2: audio (A_AAC) "2.0 AAC", -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/***) "***", -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 848x480 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Xlib: extension "NV-GLX" missing on display ":0.0".
[vdpau] Error when calling vdp_device_create_x11: 1
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
dshowserver --codec /home/eric/CoreAVCDecoder.ax --size 848x480 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 20927 --id b779e730 --numpages 10 --port 0 &
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x60): stub
fixme:thread:SetThreadIdealProcessor (0x64): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using semaphore based mutex
Unknown type specified: 2
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.
================================================== ========================
================================================== ========================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Il giudizio finale sta per essere emesso
A: 1.7 (01.6) of 1394.8 (23:14.7) 1.4%

MPlayer interrupted by signal 2 in module: play_audio
A: 1.8 (01.7) of 1394.8 (23:14.7) 1.4%
Exiting... (Quit)

ripps818
January 3rd, 2010, 04:34 AM
I've started work on setting up my coreavc-for-ubuntu ppa to use fta's ppabot to update and build dshowserver and mplayer. So give me a week or two to set things up.

Starks
January 3rd, 2010, 05:09 AM
Getting closer... For any give file, only the first frame is rendering at the moment.

The coreavc-for-linux guy is working out the last few bugs with me.

Starks
January 3rd, 2010, 06:41 AM
It works. A pain in the *** to achieve, but CoreAVC 2.0 works! I'd like to thank Alan (the coreavc-for-linux guy) for all of his help.

http://img205.imageshack.us/img205/8159/successc.png

I'll try to write a howto later.


eric@kingfisher:~/mplayer/mplayer$ ./mplayer -*** -vo gl:yuv=4 -ao pulse -vc coreserve "/home/eric/sample.mkv"
MPlayer UNKNOWN-4.4.2 (C) 2000-2009 MPlayer Team
141 audio & 322 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/eric/sample.mkv
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Sample", -vid 0
[mkv] Track ID 2: audio (A_VORBIS) "2.0 Vorbis", -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/***) "***", -sid 0, -slang eng
[mkv] Track ID 4: subtitles (S_TEXT/UTF8) "SRT", -sid 1, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
Couldn't open video filter '***'.
***: cannot add video filter
[***] Init
[***] Updating font cache
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
dshowserver --codec /home/eric/CoreAVCDecoder.ax --size 1280x720 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 16616 --id b7829730 --numpages 10 --port 20185 &
Opening device (port is 20185)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x4c): stub
fixme:thread:SetThreadIdealProcessor (0x50): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using socket based mutex
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 1280x720 => 1280x720 Planar YV12
EINPROGRESS in connect() - selecting
Dshowserver Connected to host
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShowServer)
================================================== ========================
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
================================================== ========================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Decreasing video pts: 0.042000 < 0.292000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.083000 < 0.292000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.125000 < 0.292000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.167000 < 0.292000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.209000 < 0.292000 0/ 0 ??% ??% ??,?% 1 0
Decreasing video pts: 0.250000 < 0.292000 0/ 0 ??% ??% ??,?% 2 0

ogooreck
January 3rd, 2010, 01:13 PM
It works.


Thanks Alan !

It works here too.

My steps:

1. checkout mplayer from svn (or prepare your sources for patching)
2. checkout coreavc-for-linux
3. apply dshowserver.patch to mplayer sources
4. configure mplayer sources
5. make install mplayer
6. Install wine
7. Install coreavc on wine
8. Copy dshowserver.exe to CoreAVC install dir
9. Create a wrapper script to run dshowserver.exe - see code. Name it dshowserver and place in PATH. "Disable" old dshowserver.
10. Configure mplayer - old codecs.conf configuration just works. There are new tips how to workaround fourcc issues in README
11. Enjoy your movies


#!/bin/sh

DSHOWSERVEREXE="c:\\Program Files\\CoreCodec\\CoreAVC Professional Edition\\dshowserver.exe"
wine "${DSHOWSERVEREXE}" "$@"
# if you wish to run dshowserver with elevated priority comment out line above and uncomment line below
# nice -n -5 wine "${DSHOWSERVEREXE}" "$@"

BagRackRider
January 3rd, 2010, 02:39 PM
Sweet! I gotta try this when I get home!

But isn't there going to be a performance loss? I mean now it's using wine itself as the "middle hand" in all this.

Sölve
January 3rd, 2010, 03:08 PM
When I trying to play a mkv file with new dshowserver and fresh compiled mplayer, console throws:


[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "To Aru Kagaku no Railgun - 13", -vid 0
[mkv] Track ID 2: audio (A_AAC) "AAC 2.0", -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/***), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
SUB: error recoding line.
SUB: Added subtitle file (1): /media/wszystko/Anime2/To Aru Kagaku no Railgun/[Mazui]_To_Aru_Kagaku_no_Railgun_-_13v2_[54AB9810].***
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
dshowserver --codec CoreAVCDecoder.ax --size 1280x720 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 20012 --id b6994700 --numpages 10 --port 0 &
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x74): stub
fixme:thread:SetThreadIdealProcessor (0x7c): stub
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Unknown type specified: 2
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using semaphore based mutex
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.
================================================== ========================
================================================== ========================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...The command is:

-vo gl:yuv=2:force-pbo:ati-hack -vc coreserve -demuxer mkv
And yes, I updated my codecs.conf. What can I do?

ogooreck
January 3rd, 2010, 05:21 PM
When I trying to play a mkv file with new dshowserver and fresh compiled mplayer, console throws:
...
What can I do?

Check sources.
Do You have latest release r85 ? look at vd_dshowserver.c. First line should be uncommented and second commented out.


ds_mpi->sem = timed_seminit(DS_SOCKET, &port, 1);
//ds_mpi->sem = timed_seminit(DS_SEMAPHORE, id, 1);

BagRackRider
January 3rd, 2010, 05:53 PM
This is what happens to me after putting dshowserver.exe in system32 and running the codec test:

$ wine dshowserver.exe -c "c:\\Program Files\\CoreCodec\\CoreAVC Professional Edition\\CoreAVCDecoder.ax" -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449 -d

No id specified, assuming test mode
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x6c): stub
fixme:thread:SetThreadIdealProcessor (0x70): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete


But playing a file doesn't work:
$ mplayer -vc coreserve test.mkv

MPlayer SVN-r29945-4.3.4 (C) 2000-2009 MPlayer Team
141 audio & 309 video codecs

Playing test.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x688 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
nice: cannot set niceness: Permission denied
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.

BagRackRider
January 3rd, 2010, 05:59 PM
Check sources.
Do You have latest release r85 ? look at vd_dshowserver.c. First line should be uncommented and second commented out.


ds_mpi->sem = timed_seminit(DS_SOCKET, &port, 1);
//ds_mpi->sem = timed_seminit(DS_SEMAPHORE, id, 1);


Don't even have that file in the svn release I just fetched.

ogooreck
January 3rd, 2010, 06:00 PM
I am in the same situation, I think. I am watching lots of artifacts and distortion when playing lots of 720p and 1080p mkv files. I am using coreavc 1.9.5.

Also, Is there a way to configure coreavc in Ubuntu? It has some config options under windows...

Regards,

Carlos.

You may be hit by this issue

http://code.google.com/p/coreavc-for-linux/issues/detail?id=37&can=1


with newest dshowserver release one can use configuration dialog under wine

ogooreck
January 3rd, 2010, 06:10 PM
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
nice: cannot set niceness: Permission denied
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.

remove nice from wrapper:


#!/bin/sh

DSHOWSERVEREXE="c:\\Program Files\\CoreCodec\\CoreAVC Professional Edition\\dshowserver.exe"
wine "${DSHOWSERVEREXE}" "$@"


or modify your /etc/security/limits.conf (I think):

user - nice -20

ogooreck
January 3rd, 2010, 06:15 PM
Don't even have that file in the svn release I just fetched.

file is created when You apply dshowserver.patch .

In mplayer sources:

libmpcodecs/vd_dshowserver.c

BagRackRider
January 3rd, 2010, 06:18 PM
Now I got the same error as Sölve. Probably because of the mplayer patch I never applied. (using the old mplayer coreavc build)

ogooreck
January 3rd, 2010, 06:25 PM
Now I got the same error as Sölve. Probably because of the mplayer patch I never applied. (using the old mplayer coreavc build)

You need new patch it changed it is mendatory.

BagRackRider
January 3rd, 2010, 07:27 PM
I think we might have a minor issue...
This patch http://pastebin.com/pastebin.php?dl=f7ca459d ain't applied to the dshowserver sources now. Not that I can see anyway. Therefor all movies won't play.

AVC sources play fine, H264/h264 don't.

Sölve
January 3rd, 2010, 07:42 PM
Dont use this patch. Use patch from sources downloaded from SVN (coreavc-for-linux).
In coreavc-for-linux wiki are new howtos. Maybe someone can write full tutorial?

ogooreck
January 3rd, 2010, 07:45 PM
I think we might have a minor issue...
This patch http://pastebin.com/pastebin.php?dl=f7ca459d ain't applied to the dshowserver sources now. Not that I can see anyway. Therefor all movies won't play.

AVC sources play fine, H264/h264 don't.

There is no need to apply this patch. it should be extended because it breaks avi file (h264 in avi) playing. The workaround is to change codecs.conf as described in vd_dshowserver.c source file.

BagRackRider
January 3rd, 2010, 08:11 PM
There is no need to apply this patch. it should be extended because it breaks avi file (h264 in avi) playing. The workaround is to change codecs.conf as described in vd_dshowserver.c source file.

Well, as it is now my H264 .mp4 don't play. I only get a black picture... so something must be wrong?

EDIT:
Using fourcc in this order solved my problem:

fourcc H264,h264 AVC1
fourcc X264,x264
fourcc avc1,AVC1 AVC1
fourcc davc,DAVC
fourcc VSSH


So it's finally working. ;)

ogooreck
January 3rd, 2010, 08:22 PM
Well, as it is now my H264 .mp4 don't play. I only get a black picture... so something must be wrong?

Did You try this in codecs.conf ?


videocodec coreserve
info "CoreAVC DShow H264 decoder"
status working
format 0x10000005
fourcc H264,h264 AVC1
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

Sölve
January 3rd, 2010, 11:28 PM
Okay. I tried a way from coreavc-for-linux wiki and I must say it really work!
I build a winelib, and I don't saw any decrease in performance.
I tried with r100.

AlanNisota
January 4th, 2010, 02:12 AM
There were a few comments I saw here that I thought I'd respond to.
1) Using wine wil lnot affect performance in any significant way. the number of Win32 calls is small, all the real work is done inside the Codec itself. The Wine emulator is doing exactly the same task as the 'loader' code that was in use before and should be as efficient as well. Now, switching from semaphores to sockets could have a performance impact, but in my tests, it was negligible.

2) Make sure to use the latest code (currently R100)

3) The wiki has been updated with the latest instructions, including proper installation instructions. If there are issues please give me feedback and I'll try to improve it.

4) As of 2009-09-01 mplayer no longer properly will pass AVC1 headers to CoreAVC. As noted in the source, this can be fixed via a hack to the codecs.conf file, but that may break non AVC1 streams. altrnatively, you can comment out this in libmpdemux/mp_taglists.c:


{ CODEC_ID_H264, MKTAG('H', '2', '6', '4')},This only affects using the lavf demuxer. I don't know how to properly fix this issue.

5) you can now use dshowserver -c CoreAVCDecoder.ax --config to configure CoreAVC, but you need to install dcom98 into Wine first.

AlanNisota
January 4th, 2010, 02:15 AM
Additionally, there should be no difference between building with winelib, or using the precompiled .exe

Using winelib allows using semaphore message passing if you are interested in playing with that, but otherwise the code should behave exactly the same. No amount of compile-time optimizations will make a significant performance impact, so there isn't much point, unless you don't trust binaries, which is perfectly understandable

Sölve
January 4th, 2010, 02:31 AM
Hmm, but I noticed, Wine longer loads a dshowserver than "loader".
Can the loading time be shortened?

AlanNisota
January 4th, 2010, 02:37 AM
you mean the startup time? I don't think much can be done about that. The only thing I can think of is that you can start the wineserver manually and leave it running in the background. I didn't notice a significant difference in startup time myself. Once it is started, decoding should have identical performance. You could probably try running a profiler and see what is going on. I've never tried using one under Wine though.

Starks
January 4th, 2010, 03:11 AM
The dcom98 overrides for CoreAVC configuration break wine.


eric@kingfisher:~/coreavc/dshowserver$ dshowserver -c CoreAVCDecoder.ax --config
Starting wine dshowserver.exe.so
err:module:attach_process_dlls "rpcrt4.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\usr\\share\\dshowserver\\dshowserver.exe" failed, status c0000005

AlanNisota
January 4th, 2010, 03:55 AM
The dcom98 overrides for CoreAVC configuration break wine.


eric@kingfisher:~/coreavc/dshowserver$ dshowserver -c CoreAVCDecoder.ax --config
Starting wine dshowserver.exe.so
err:module:attach_process_dlls "rpcrt4.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\usr\\share\\dshowserver\\dshowserver.exe" failed, status c0000005

Is that a clean wine install?

I did (be aware that this will purge all programs installed into wine. you can alternatively use WINEPREFIX instead)


rm -rf ~/.wine
wine <path to Core AVC Setup.exe>
winetricks dcom98
dshowserver -c CoreAVCDecoder.ax --config


I've tried it on the latest Wine from git as well as 1.1.9 and it worked fine with both.

Starks
January 4th, 2010, 04:19 AM
The config works after clearing my .wine, but then I can't run dshowserver without the config flag.

ripps818
January 4th, 2010, 08:46 AM
Awesome, I've got working dshowserver and mplayer packages running coreavc-2.0 in my Lucid staging ppa. Now all I have to do is setup up some ppabot configs so I can easily backport this work to older Ubuntu releases.

ogooreck
January 4th, 2010, 11:52 AM
There were a few comments I saw here that I thought I'd respond to.
1) Using wine wil lnot affect performance in any significant way. the number of Win32 calls is small, all the real work is done inside the Codec itself. The Wine emulator is doing exactly the same task as the 'loader' code that was in use before and should be as efficient as well. Now, switching from semaphores to sockets could have a performance impact, but in my tests, it was negligible.

I can't see any performance loss with precompiled binary. Actually things works better now maybe because better coreavc 2.0 performance. Overall performance is better, at least on my computer.


3) The wiki has been updated with the latest instructions, including proper installation instructions. If there are issues please give me feedback and I'll try to improve it.

You could mention about following issues:

1. -framdrop
http://code.google.com/p/coreavc-for-linux/issues/detail?id=37

2. expand filter issue
http://code.google.com/p/coreavc-for-linux/issues/detail?id=63

3.
http://code.google.com/p/coreavc-for-linux/issues/detail?id=29

Thank You once again

BagRackRider
January 4th, 2010, 01:06 PM
Yes, the codec seems to work better here too.

And for me, the loading times ain't really noticable. If you think they're slow, try "apt-get install preload", then run mplayer/coreavc a few times and see if it helps.

TBH, I'm quite impressed by the achivement. Good work all who were involved. ;)

wiiaboo
January 4th, 2010, 05:14 PM
Using r100, it is indeed working with me too.

AlanNisota
January 4th, 2010, 05:33 PM
Here is a patch (ported from ticket 37) that you can try to address the framedrop issue. apply it after applying the directshow patch:


Index: libmpcodecs/vd_dshowserver.c
================================================== =================
--- libmpcodecs/vd_dshowserver.c.orig 2010-01-04 08:27:18.000000000 -0800
+++ libmpcodecs/vd_dshowserver.c 2010-01-04 08:27:15.000000000 -0800
@@ -241,10 +241,6 @@
int ret;
if(len<=0) return NULL; // skipped frame

- if(flags&3) {
- // framedrop:
- return NULL;
- }
ds_mpi->vd->cmd = VD_DECODE; //'2' is cmd for decoding
ds_mpi->vd->pts = (uint64_t)(sh->buffered_pts[0]*1E9);
memcpy(ds_mpi->data, data, len);
@@ -263,6 +259,10 @@
ds_mpi->vd->buflen = len;
timed_sempost(ds_mpi->sem);
ret = timed_semwait(ds_mpi->sem, 10);
+ if(flags&3) {
+ // framedrop:
+ return NULL;
+ }
//printf("len: %d, PTS (ret:%d,vd_ret:%d): %f -> %f\n", len, ret, ds_mpi->vd->ret, sh->buffered_pts[0], (double)ds_mpi->vd->pts/1E9);
//printf("PTS (%d): %f(%d) -> %d\n", ds_mpi->vd->ret, sh->buffered_pts[0], pts-1, ds_mpi->vd->pts);
if(ret == 1 && ds_mpi->vd->ret && ! (ds_mpi->vd->ret & (1<<31))) {


The reason I hadn't included it before is that it doesn't really do anything. You are still decoding every frame, just not displaying it, so you don't really save any CPU unless you need to do software conversion from YUV to RGB. There doesn't seem to be any way to actually not process frames other than dropping B-frames, which I'm not sure that coreAVC supports. Anyhow let me know if the patch is better. It certainly shouldn't be any worse than what is in the codebase today.

ogooreck
January 4th, 2010, 07:53 PM
Thank You, I will check if it is better then using -noframedrop mplayer option. I think it is, because in my opinion it's better ignore this option then have distorted picture.

And another note on fourcc issue. Attached patch forces mplayer to select mov demuxer by default (like mkv demuxer) for files that seems to be affected by this issue. lavf demuxer can be selected with -demuxer lavf as always. I also tried to compile mplayer with --disable-demuxer=mov but this caused errors in mplayer's file type detection (it reported mp4 stream as mp3 stream).


--- libmpdemux/demux_lavf.c (revision 30118)
+++ libmpdemux/demux_lavf.c (working copy)
@@ -177,7 +177,7 @@
"gxf",
"nut",
"nuv",
- "mov,mp4,m4a,3gp,3g2,mj2",
+// "mov,mp4,m4a,3gp,3g2,mj2",
"mpc",
"mpc8",
"mxf",

Zorael
January 4th, 2010, 10:55 PM
I'm about to give this another go and I'm overwhelmed by the patches and whatnot mentioned in only the last few pages.

I'm currently using the binaries from ripps818's ppa. aptitude wants to replace mplayer (2:1.0~rc3+svn20090426-1ubuntu10+coreavc1) with the version from karmic-updates, but I told it to forbid that version for the time being. 'dshowserver -c CoreAVCDecoder.ax' works nicely.

$ dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x6c): stub
fixme:thread:SetThreadIdealProcessor (0x70): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete

But when I try to play something, it fails to produce any video. (scroll down)

$ mplayer -vc coreserve the.usual.suspects.1995.dvd5.720p.bluray.x264.samp le-hv.mkv
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing the.usual.suspects.1995.dvd5.720p.bluray.x264.samp le-hv.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "The Usual Suspects", -vid 0
[mkv] Track ID 2: audio (A_DTS) "DTS 5.1", -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x544 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
Starting wine dshowserver.exe
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x7c): stub
fixme:thread:SetThreadIdealProcessor (0x80): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Unknown type specified: 2
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using semaphore based mutex
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.
Read DOCS/HTML/en/codecs.html!
================================================== ========================
================================================== ========================
Opening audio decoder: [libdca] DTS decoding with libdca
Stream with high frequencies VQ coding
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
================================================== ========================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.3 (02.2) of 61.5 (01:01.5) 29.5%

MPlayer interrupted by signal 2 in module: key_events
A: 2.3 (02.2) of 61.5 (01:01.5) 29.3%
Exiting... (Quit)
The error message isn't precisely verbose.

Thinking I need to build it myself, I fail at even compiling dshowserver.

make[1]: Leaving directory `/home/zorael/src/mplayer/coreavc-for-linux/loader'
winegcc -o dshowserver ../objs-winelib/server.o ../objs-winelib/timeout_sem.o ../objs-winelib/defaults.o ../objs-winelib/crc32.o ../objs-winelib/libloader.a -lm -lole32 -loleaut32 -lrt -lpthread
/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
make: *** [dshowserver] Error 2
Anything obvious I'm doing wrong?

edit: Giving it a second browse I see it's the same issue Stark describes a few pages back, but he doesn't elaborate as to how he got around it.

Running dshowserver normally (i.e. not testing CoreAVCDecoder.ax) makes it immediately crash, by the way.

$ dshowserver
Starting wine dshowserver.exe
No id specified, assuming test mode
wine: Unhandled page fault on read access to 0x00000000 at address 0xb74defb7 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0xb74defb7).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:b74defb7 ESP:0063fd58 EBP:0063fda8 EFLAGS:00010282( - 00 - RIS1)
EAX:00000000 EBX:b75aaff4 ECX:00000001 EDX:00000000
ESI:00000000 EDI:0063fe90
Stack dump:
0x0063fd58: 00126ed8 00000002 00000000 0000002e
0x0063fd68: 7edd24bb 7edf3ff4 00000001 7edfa100
0x0063fd78: 0063fdb8 7edd2fc4 00000001 7edf1540
0x0063fd88: 00000001 7bc41aee 00126328 001103e0
0x0063fd98: 00000001 7bc8aff4 00000000 0063fe90
0x0063fda8: 0063fdc8 7bc68844 00000000 0040d0f0
Backtrace:
=>1 0xb74defb7 strstr+0x17() in libc.so.6 (0x0063fda8)
2 0x7bc68844 NTDLL_strstr+0x24() in ntdll (0x0063fdc8)
3 0x00402458 in dshowserver (+0x2458) (0x0063fdf8)
4 0x00401c35 in dshowserver (+0x1c35) (0x0063fea8)
5 0x004011e9 __mingw_CRTStartup+0xd9() [/build/buildd/mingw32-runtime-3.13/build_dir/src/mingw-runtime-3.13-20070825-1/crt1.c:237] in dshowserver (0x0063fee8)
6 0x00401233 in dshowserver (+0x1233) (0x0063ff08)
7 0x7b877f48 in kernel32 (+0x57f48) (0x0063ffe8)
0xb74defb7 strstr+0x17 in libc.so.6: movzbl 0x0(%edx),%eax
Modules:
Module Address Debug info Name (58 modules)
PE 400000- 440000 Stabs dshowserver
ELF 7b800000-7b93c000 Export kernel32<elf>
\-PE 7b820000-7b93c000 \ kernel32
ELF 7bc00000-7bca7000 Export ntdll<elf>
\-PE 7bc10000-7bca7000 \ ntdll
ELF 7bf00000-7bf04000 Deferred <wine-loader>
ELF 7e556000-7e561000 Deferred libxcursor.so.1
ELF 7e561000-7e567000 Deferred libxfixes.so.3
ELF 7e567000-7e56b000 Deferred libxcomposite.so.1
ELF 7e56b000-7e574000 Deferred libxrandr.so.2
ELF 7e574000-7e57e000 Deferred libxrender.so.1
ELF 7e57e000-7e581000 Deferred libxinerama.so.1
ELF 7e581000-7e5a2000 Deferred imm32<elf>
\-PE 7e590000-7e5a2000 \ imm32
ELF 7e5a2000-7e5a7000 Deferred libxdmcp.so.6
ELF 7e5a7000-7e5c5000 Deferred libxcb.so.1
ELF 7e5c5000-7e5c9000 Deferred libxau.so.6
ELF 7e5c9000-7e5ce000 Deferred libuuid.so.1
ELF 7e5ce000-7e6fd000 Deferred libx11.so.6
ELF 7e6fd000-7e70d000 Deferred libxext.so.6
ELF 7e70d000-7e713000 Deferred libxxf86vm.so.1
ELF 7e713000-7e72e000 Deferred libice.so.6
ELF 7e72e000-7e737000 Deferred libsm.so.6
ELF 7e74e000-7e7e8000 Deferred winex11<elf>
\-PE 7e760000-7e7e8000 \ winex11
ELF 7e8b5000-7e8dc000 Deferred libexpat.so.1
ELF 7e8dc000-7e909000 Deferred libfontconfig.so.1
ELF 7e909000-7e91f000 Deferred libz.so.1
ELF 7e91f000-7e995000 Deferred libfreetype.so.6
ELF 7e995000-7e9c2000 Deferred ws2_32<elf>
\-PE 7e9a0000-7e9c2000 \ ws2_32
ELF 7e9c2000-7ea68000 Deferred oleaut32<elf>
\-PE 7e9d0000-7ea68000 \ oleaut32
ELF 7ea68000-7ea7c000 Deferred libresolv.so.2
ELF 7ea93000-7eab2000 Deferred iphlpapi<elf>
\-PE 7eaa0000-7eab2000 \ iphlpapi
ELF 7eab2000-7eb15000 Deferred rpcrt4<elf>
\-PE 7eac0000-7eb15000 \ rpcrt4
ELF 7eb15000-7ebb4000 Deferred gdi32<elf>
\-PE 7eb30000-7ebb4000 \ gdi32
ELF 7ebb4000-7ecff000 Deferred user32<elf>
\-PE 7ebd0000-7ecff000 \ user32
ELF 7ecff000-7eda5000 Deferred ole32<elf>
\-PE 7ed10000-7eda5000 \ ole32
ELF 7eda5000-7ee0f000 Deferred msvcrt<elf>
\-PE 7edc0000-7ee0f000 \ msvcrt
ELF 7ee0f000-7ee61000 Deferred advapi32<elf>
\-PE 7ee20000-7ee61000 \ advapi32
ELF 7ef8d000-7ef99000 Deferred libnss_files.so.2
ELF 7ef99000-7efa4000 Deferred libnss_nis.so.2
ELF 7efa4000-7efbb000 Deferred libnsl.so.1
ELF 7efbb000-7efc3000 Deferred libnss_compat.so.2
ELF 7efc3000-7efe9000 Deferred libm.so.6
ELF b7467000-b746b000 Deferred libdl.so.2
ELF b746b000-b75af000 Export libc.so.6
ELF b75b0000-b75c9000 Deferred libpthread.so.0
ELF b75e0000-b7716000 Deferred libwine.so.1
ELF b7718000-b7735000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008 (D) Z:\usr\share\dshowserver\dshowserver.exe
00000009 0 <==
0000000c
00000013 0
00000012 0
0000000e 0
0000000d 0
0000000f
00000015 0
00000014 0
00000011 0
00000010 0
Backtrace:
=>1 0xb74defb7 strstr+0x17() in libc.so.6 (0x0063fda8)
2 0x7bc68844 NTDLL_strstr+0x24() in ntdll (0x0063fdc8)
3 0x00402458 in dshowserver (+0x2458) (0x0063fdf8)
4 0x00401c35 in dshowserver (+0x1c35) (0x0063fea8)
5 0x004011e9 __mingw_CRTStartup+0xd9() [/build/buildd/mingw32-runtime-3.13/build_dir/src/mingw-runtime-3.13-20070825-1/crt1.c:237] in dshowserver (0x0063fee8)
6 0x00401233 in dshowserver (+0x1233) (0x0063ff08)
7 0x7b877f48 in kernel32 (+0x57f48) (0x0063ffe8)

Sölve
January 4th, 2010, 11:10 PM
You must install wine-dev packet. You can do this in Synaptic. If this fail, install wine1.2-dev (this automatically remove wine packet).
//EDIT:
You can use precompiled binaries too. I recommend a clean installation of wine1.2.

BagRackRider
January 5th, 2010, 01:20 AM
Zorael, I don't think you can run dshowserver from the commandline without a valid arg. It crashes here too if I just type dshowserver.
Have you downloaded mplayer svn and patched it with the mplayer patch in the coreavc sources directory?

Zorael
January 5th, 2010, 02:54 AM
Zorael, I don't think you can run dshowserver from the commandline without a valid arg. It crashes here too if I just type dshowserver.
Well, as long as it's not indicative of an error from my part. :3


Have you downloaded mplayer svn and patched it with the mplayer patch in the coreavc sources directory?
No, I'm using binaries from ripp181's ppa. A few replies back he said he had gotten it to work with CoreAVC 2.0 on Lucid, and was working on a way to backport them to Karmic. Seeing as it doesn't work over here (again, with "DirectShow filter failedVDecoder init failed"), the next step is to try to compile dshowserver myself.

I'm still curious to know how Stark worked around it though, as his code snippet had the same error message I get.

Zorael
January 5th, 2010, 03:23 AM
To follow up, it works after compiling dshowserver myself and replacing ripps818's package with my own files. Stuff plays now, which is a start.

I installed wine1.2 as a whole when I was to get wine-dev, but wine1.2 gets an illegal exception upon start so nothing requiring wine worked. I replaced it with normal wine packages and now I only get a screen full of backtraces (but it works).

Would you recommend I compile mplayer myself anyway and make sure to apply the patches/tweaks mentioned so far?
libmpdemux/mp_taglists.c from #294 (http://ubuntuforums.org/showpost.php?p=8605564&postcount=294)
libmpcodecs/vd_dshowserver.c from #305 (http://ubuntuforums.org/showpost.php?p=8608716&postcount=305)
libmpdemux/demux_lavf.c from #306 (http://ubuntuforums.org/showpost.php?p=8609342&postcount=306)

BagRackRider
January 5th, 2010, 03:57 AM
You have to compile mplayer yourself. I did the same mistake thinking the old mplayer I had for CoreAVC 1.9.5 would work, it doesn't.

ogooreck
January 5th, 2010, 09:35 AM
Would you recommend I compile mplayer myself anyway and make sure to apply the patches/tweaks mentioned so far?

libmpdemux/mp_taglists.c from #294 (http://ubuntuforums.org/showpost.php?p=8605564&postcount=294)
libmpcodecs/vd_dshowserver.c from #305 (http://ubuntuforums.org/showpost.php?p=8608716&postcount=305)
libmpdemux/demux_lavf.c from #306 (http://ubuntuforums.org/showpost.php?p=8609342&postcount=306)



Use patches if You experience issues they correct. Use #294 OR #306 not both. The latter is my own invention, it works for me so far. It has effect similar to adding "-demuxer mov" on command line. It changes default mplayer's demuxer preference.

ripps818
January 5th, 2010, 09:58 AM
Yeah, the dshowserver in the ppa works, but the mplayer doesn't use correct patch yet. I have a working mplayer in another ppa, but my backporting software isn't working nice at the moment. I'll do some manual backports of mplayer to the ppa in the mean time.

UPDATE:
Okay, I've got some new dshowserver patched mplayer packages in the PPA. It seems to work in my Lucid machine, but I'd very much like people to test them. :)

https://launchpad.net/~ripps818/+archive/coreavc/+packages

Zorael
January 6th, 2010, 03:28 PM
UPDATE:
Okay, I've got some new dshowserver patched mplayer packages in the PPA. It seems to work in my Lucid machine, but I'd very much like people to test them. :)

https://launchpad.net/~ripps818/+archive/coreavc/+packages
Your dshowserver package still doesn't work for me. Everything looks right but video doesn't play (see earlier post). My own compiled dshowserver does the trick, though. This is on Karmic.

(edit, no sense in making another post)
Would it be possible to combine this dshowserver-aware mplayer with ffmpeg-mt? I realize CoreAVC does its own threading, but it only plays H264/AVC files, right? And falls back to ffmpeg for the rest?

ripps818
January 6th, 2010, 04:18 PM
Your dshowserver package still doesn't work for me. Everything looks right but video doesn't play (see earlier post). My own compiled dshowserver does the trick, though. This is on Karmic.

(edit, no sense in making another post)
Would it be possible to combine this dshowserver-aware mplayer with ffmpeg-mt? I realize CoreAVC does its own threading, but it only plays H264/AVC files, right? And falls back to ffmpeg for the rest?

First, are you using both the dshowserver and mplayer from the ppa? I didn't compile anything in dshowserver, the package uses the precompiled binaries from svn.

Second, as far as I can recall, in order to get mplayer to use multiple threads, all you need to do is add `-lavdopts threads=n` (where n is the number threads you want, I assume 1 per core of your processor).


UPDATE:
After doing some experimenting, it seems that I get the exact same problem as you when I don't specify the video output. Add '-vo xv' or '-vo gl' or whatever your preferred method is.

Bachstelze
January 6th, 2010, 05:00 PM
Well, the new dshowserver using WINE seems to be a giant step backwards for me. I can't get it to work on a 64bit system (not tried on a 32bit yet). Not to mention that it adds a huge dependency.

Zorael
January 6th, 2010, 05:27 PM
First, are you using both the dshowserver and mplayer from the ppa? I didn't compile anything in dshowserver, the package uses the precompiled binaries from svn.
Yes, both packages from the ppa.

$ apt-cache policy mplayer-nogui dshowserver
mplayer-nogui:
Installed: 2:1.0~rc3+svn20090426-1ubuntu10+coreavc1
Candidate: 2:1.0~rc3+svn20090426-1ubuntu10.1
Version table:
2:1.0~rc3+svn20090426-1ubuntu10.1 0
500 http://se.archive.ubuntu.com karmic-updates/multiverse Packages
*** 2:1.0~rc3+svn20090426-1ubuntu10+coreavc1 0
500 http://ppa.launchpad.net karmic/main Packages
100 /var/lib/dpkg/status
2:1.0~rc3+svn20090426-1ubuntu10 0
500 http://se.archive.ubuntu.com karmic/multiverse Packages
dshowserver:
Installed: 0-svn101-0ubuntu2~ripps1~karmic
Candidate: 0-svn101-0ubuntu2~ripps1~karmic
Version table:
*** 0-svn101-0ubuntu2~ripps1~karmic 0
500 http://ppa.launchpad.net karmic/main Packages
100 /var/lib/dpkg/status
Note that it wants to overwrite yours with the karmic-updates/multiverse package, so I have to tell aptitude to hold it.


Second, as far as I can recall, in order to get mplayer to use multiple threads, all you need to do is add `-lavdopts threads=n` (where n is the number threads you want, I assume 1 per core of your processor).
I have an mplayer-mt package installed alongside the normal mplayer-nogui from your ppa, which I grabbed from some ppa or another a while back. rvm's? It seems to have been deleted now though, but I still have it locally installed.

With it, -lavdopts threads=n does work and I have it set up in my ~/.mplayer/config, but it doesn't work with your mplayer; it still only spawns one mplayer thread. When running with -benchmark, the performance difference is noticeable. After cutting out the irrelevant parts;

$ mplayer -benchmark -nosound -frames 500 -vc ffh264 -lavdopts threads=4 the.usual.suspects.1995.dvd5.720p.bluray.x264.samp le-hv.mkv

[h264 @ 0xb64ca960]Cannot parallelize deblocking type 1, decoding such frames in sequential order

BENCHMARKs: VC: 23.428s VO: 0.810s A: 0.000s Sys: 0.243s = 24.480s
BENCHMARK%: VC: 95.7010% VO: 3.3077% A: 0.0000% Sys: 0.9914% = 100.0000%

------------------------------------------------------------

$ mplayer-mt -benchmark -nosound -frames 500 -vc ffh264 -lavdopts threads=4 the.usual.suspects.1995.dvd5.720p.bluray.x264.samp le-hv.mkv

BENCHMARKs: VC: 18.482s VO: 0.652s A: 0.000s Sys: 0.305s = 19.438s
BENCHMARK%: VC: 95.0792% VO: 3.3518% A: 0.0000% Sys: 1.5690% = 100.0000%
Small sample but mplayer-mt does win out over mplayer consistently. CoreAVC beats both, though.

See also this thread (http://ubuntuforums.org/showthread.php?t=1104967).

I managed to get it working once a few months back by merely copying the ffmpeg directory from the ffpmeg-mt repo in that thread and overwriting the ffmpeg I fetched from the mplayer svn (as the svn version was fresher). I remember I had to tailor the dshowserver patch a bit to make it apply properly. Then something happened in svn mplayer that broke compatibility with the ffmpeg in the ffmpeg-mt repo, and I haven't retried combining them since.

edit: Latest update to the multithreading repo was Sun Nov 15 00:40:24 2009 +0200.

ripps818
January 6th, 2010, 05:50 PM
*Deleted*
Chromium double posted me.

ripps818
January 6th, 2010, 05:52 PM
No, you're not using the latest mplayer package from the ppa. You're using the older version of mplayer that was patched for the old dshowserver. The most recent version in the ppa should be "2:1.0~rc3+svn20100105.30229-0ubuntu2~ripps1~karmic".
Make sure your sources are up to date with 'sudo apt-get update'.

Zorael
January 6th, 2010, 05:54 PM
Ah, I see you're not updating mplayer-nogui, that's why mine isn't getting updated.

Have you applied the framedrop patch to your new package?

ripps818
January 6th, 2010, 06:04 PM
Ah, I see you're not updating mplayer-nogui, that's why mine isn't getting updated.

Have you applied the framedrop patch to your new package?

Yeah, I'm using a modified version the mplayer package from rvm's ppa. It doesn't use mplayer-nogui.

Yes, the latest version of the dshowserver patch from svn has the framedrop fix in it. But from what I read, it doesn't actually improve the performance, it's still trying to render every frame, even if they're not being shown. It just prevents the image from getting corrupted when a frame is dropped.

ogooreck
January 7th, 2010, 02:05 PM
Well, the new dshowserver using WINE seems to be a giant step backwards for me. I can't get it to work on a 64bit system (not tried on a 32bit yet). Not to mention that it adds a huge dependency.

But wine is constantly updated and improved. It's easier to maintain. CoreAVC is windows app after all.

Zorael
January 7th, 2010, 06:34 PM
I finally managed to get a mplayer with dshowserver support and ffmpeg-mt built, but in addition to me sucking at packaging dput now refuses to finish uploading it to my ppa.

I basically pulled mplayer sources from svn, deleted its debian directory and replaced it with the one from ripp818's source. Then I deleted the ffmpeg, libavcodec, libavformat and libavutil subdirectories and pulled ffmpeg-mt from git, replacing the now-deleted ffmpeg directory with it. In it were modified versions of libavcodec, libavformat and libavutil, which I merely moved to the root mplayer directory, again replacing now-deleted equavilents.

There was also a ffmpeg/mt-work/mplayer.diff patch, which I moved to debian/patches and added a mention of in 00list and series. Lastly I incremented the changelog and had a go at building.

Took a while on this netbook, especially since it was configuring it to build mencoder and the GTK gui and a whole lot of garbage I would otherwise have disabled when ./configuring, but I only realized this when I was halfway through.

edit: A ppa search comes up with Hanbin Lee's ppa (https://launchpad.net/~hanbin973/+archive/ppa) containing built packages of mplayer-mt, seemingly very fresh, latest having been uploaded 2010-02-01. It doesn't seem patched to work with dshowserver though.

kamitsukai
January 7th, 2010, 08:11 PM
I keep getting this error when typing make at the dshowserver part...


carl@carl-laptop:~/coreavc-for-linux/dshowserver$ make
mkdir ../objs-winelib
winegcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-winelib/server.o -c server.c
winegcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-winelib/timeout_sem.o -c timeout_sem.c
winegcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-winelib/defaults.o -c defaults.c
winegcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-winelib/crc32.o -c crc32.c
make -C ../loader
make[1]: Entering directory `/home/carl/coreavc-for-linux/loader'
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/DS_Filter.o -c dshow/DS_Filter.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/DS_VideoDecoder.o -c dshow/DS_VideoDecoder.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/allocator.o -c dshow/allocator.c
dshow/allocator.c:117: warning: ‘MemAllocator_CreateAllocator’ defined but not used
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/mediatype.o -c dshow/mediatype.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/cmediasample.o -c dshow/cmediasample.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/guids.o -c dshow/guids.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/inputpin.o -c dshow/inputpin.c
winegcc -D__MINGW32__ -O2 -Icompat -Idshow -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DUSE_SHARED_MEM -o ../objs-winelib/outputpin.o -c dshow/outputpin.c
ar r ../objs-winelib/libloader.a ../objs-winelib/DS_Filter.o ../objs-winelib/DS_VideoDecoder.o ../objs-winelib/allocator.o ../objs-winelib/mediatype.o ../objs-winelib/cmediasample.o ../objs-winelib/guids.o ../objs-winelib/inputpin.o ../objs-winelib/outputpin.o
ar: creating ../objs-winelib/libloader.a
ranlib ../objs-winelib/libloader.a
make[1]: Leaving directory `/home/carl/coreavc-for-linux/loader'
winegcc -o dshowserver ../objs-winelib/server.o ../objs-winelib/timeout_sem.o ../objs-winelib/defaults.o ../objs-winelib/crc32.o ../objs-winelib/libloader.a -lm -lole32 -loleaut32 -lrt -lpthread
/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
make: *** [dshowserver] Error 2

Zorael
January 7th, 2010, 08:32 PM
i keep getting this error when typing make at the dshowserver part...

you must install wine-dev packet. You can do this in synaptic. If this fail, install wine1.2-dev (this automatically remove wine packet).
//edit:
You can use precompiled binaries too. I recommend a clean installation of wine1.2.
:3

BagRackRider
January 7th, 2010, 11:12 PM
I found out something cool, you can use coreavc-for-linux together with ps3mediaserver (http://code.google.com/p/ps3mediaserver/).

Since my server doesn't have a state of the art CPU (p4 2.9ghz celeron) I toyed around with the idea of getting coreavc to decode the mkv/h264 files instead of mencoders builtin codec.

It pretty much worked straight out of the box.
First I disabled deblocking/deinterlacing in coreavc codec to make sure I freed up some CPU power for mencoder. Then all I did was adding this like to PMS.conf (ps3mediaserver's config file)



codec_spec_script = width >= 1279 :: -vc coreserve -quality keyint=25:vqscale=2:vqmin=3 -lavdopts fast


And there you go, coreavc is now decoding your HD content. ;)
Just make sure mencoder is doing the transcoding for you and not ffmpeg, otherwise the above line won't work.

You can ofcourse toy around with the quality settings and ps3mediaserver's other settings but that doesn't belong in this thread.

AlanNisota
January 8th, 2010, 02:22 AM
Well, the new dshowserver using WINE seems to be a giant step backwards for me. I can't get it to work on a 64bit system (not tried on a 32bit yet). Not to mention that it adds a huge dependency.
I'm sorry you don't like it, but keeping CoreAVC working using the loader code required me doing a lot of assembly-level debugging for each release to figure out why things didn't work. It was incredibly tedious and time consuming and I just don' have time.Using Wine, the only thing I need to maintain is the interface code which is pretty stable and should not need to be modified to support future versions of the codec. The old code is still there and someone else is free to maintain it if they like. It is only me working on this, and I'm still happily using CoreAVC 1..7.0 (with Wine), just as I have for the past year or so, so my incentive here is pretty low.

Zorael
January 8th, 2010, 11:00 AM
I'm sorry you don't like it, but keeping CoreAVC working using the loader code required me doing a lot of assembly-level debugging for each release to figure out why things didn't work. It was incredibly tedious and time consuming and I just don' have time.Using Wine, the only thing I need to maintain is the interface code which is pretty stable and should not need to be modified to support future versions of the codec. The old code is still there and someone else is free to maintain it if they like. It is only me working on this, and I'm still happily using CoreAVC 1..7.0 (with Wine), just as I have for the past year or so, so my incentive here is pretty low.
I'm all appreciation over here, much <3 for the work.

freechelmi
January 11th, 2010, 10:54 AM
Hi , sorry if it was already answered I did not read the whole thread :


I currently try to play 4 Mbps/720pH264 on a Sempron 2200 1,5 Ghz, No VPDAU.

XP+CoreAVC is doing a great Job, 98 % Cpu.

Jaunty+ mplayer/dshowserver ripps818 PPA : Noticeable performance boost from FFMPEG But still unwatchable.

In Both case I tried Framedrop option on mplayer and CoreAVC

My question is would Dshowserver/Wine generate such a big performance lost compared To native Use in XP ?


Cheers

ripps818
January 11th, 2010, 12:48 PM
I currently try to play 4 Mbps/720pH264 on a Sempron 2200 1,5 Ghz, No VPDAU.

XP+CoreAVC is doing a great Job, 98 % Cpu.

Jaunty+ mplayer/dshowserver ripps818 PPA : Noticeable performance boost from FFMPEG But still unwatchable.

In Both case I tried Framedrop option on mplayer and CoreAVC

My question is would Dshowserver/Wine generate such a big performance lost compared To native Use in XP ?

Try using renice to change the priority of mplayer and dshowserver.exe to around -2. That should help a little.

I have a script, just run it after the video has started:

#! /bin/bash
## Increase niceness of dshowserver
DSHOW=`pidof dshowserver.exe`
MPLAY=`pidof mplayer`

sudo renice -2 -p $DSHOW
sudo renice -2 -p $MPLAY
sudo ionice -c 1 -p $DSHOW
sudo ionice -c 1 -p $MPLAY

freechelmi
January 12th, 2010, 11:32 AM
Hi ripps818 ! and thanks for your PPA that save me a lot of time !

Actually , I started again by launching mplayer through smplayer ( Nice options windows where you can add conditionnal coreavc flag etc..) and the performance is really better !


for some reason, launching though cmdline made terminal and X consume a lot of CPU(15-20%) . Now dshowserver is at 70/80 % CPU and apart from some really complicated scene , it's watchable !

ok now I need to integrate this in XBMC :-)

ripps818
January 12th, 2010, 10:07 PM
Wanna know a neat trick?
Since the dshowserver in the ppa uses a wrapper script, you can inject additional things before or after loading the dshowserver.exe.

For example, this script will launch gksu, giving you the ability to change the priority of mplayer/dshowserver.exe/wineserver after the video has already started. It even works with mplayer gui's like smplayer and gnome-mplayer.

#!/bin/sh
echo 'Starting wine dshowserver.exe'
wine /usr/share/dshowserver/dshowserver.exe $* &
gksu echo sudo confirmed
DSHOW=`pidof dshowserver.exe`
MPLAY=`pidof mplayer`
WINE=`pidof wineserver`
sudo renice -2 -p $MPLAY
sudo renice -2 -p $WINE
sudo renice -2 -p $DSHOW
sudo ionice -c 1 -p $MPLAY
sudo ionice -c 1 -p $WINE
sudo ionice -c 1 -p $DSHOW


Just put the script in ~/bin/ or /usr/local/bin and it'll be run instead of the regular dshowserver script.

Zorael
January 12th, 2010, 11:03 PM
I've been using a script that I run manually after having started a video. I've set up a wrapper script and a real script, where the wrapper calls the real one with sudo. Then I changed sudo to allow the real one to be run without providing a password.

Wrapper (/usr/local/bin/renicemplayer):

#!/bin/bash

sudo /usr/local/bin/renicemplayer.real
Real (/usr/local/bin/renicemplayer.real):

#!/bin/bash

# Divine pids
mplayer=$(pidof mplayer)
dshowserver=$(pidof dshowserver.exe)

# Display pids (and pad for readability)
echo
echo "mplayer pids: $mplayer"
echo "dshowserver pids: $dshowserver"
echo "-----------------------------------------"

# Renice
renice -n -10 $mplayer $dshowserver
ionice -c 1 -p $mplayer $dshowserver

# Pad for readability
echo
sudoers line (sunspire being my group):

%sunspire ALL=NOPASSWD: /usr/local/bin/renicemplayer.real

I'm not sure I'm catching all the threads with my renicing. pidof dshowserver.exe always only returns one process, while htop shows two of them, on my single-core hyperthreaded Atom cpu (ergo, two threads). Also, wineserver doesn't seem to be using any resources worth mentioning.

--------------------------------------------------------------------------

For instance, I'm currently playing a test clip.
pidof dshowserver.exe: 9061

$ cat /proc/9061/cmdline
/usr/share/dshowserver/dshowserver.exe--codecCoreAVCDecoder.ax--size1280x544--guid09571a4b-f1fe-4c60-9760de6d310c7c31--fourc0x31637661--bits12--outfmt0x32315659--pid9058--idb5177780--numpages10--port54174
Seems real.

htop shows two dshowserver.exe processes: 9079, 9080

$ cat /proc/9079/cmdline
/usr/share/dshowserver/dshowserver.exe--codecCoreAVCDecoder.ax--size1280x544--guid09571a4b-f1fe-4c60-9760de6d310c7c31--fourc0x31637661--bits12--outfmt0x32315659--pid9058--idb5177780--numpages10--port54174

$ cat /proc/9080/cmdline
/usr/share/dshowserver/dshowserver.exe--codecCoreAVCDecoder.ax--size1280x544--guid09571a4b-f1fe-4c60-9760de6d310c7c31--fourc0x31637661--bits12--outfmt0x32315659--pid9058--idb5177780--numpages10--port54174
They also seem real. But neither 9079 nor 9080 show up in ps ux. wat.

I think my ignorance is showing here. What am I not seeing?


Addendum: If you evoke a renicing script directly in the dshowserver script, you may need to add a sleep command to give wine a chance to start up. If I don't add it to mine, it fails to resolve a dshowserver.exe process (since it doesn't exist yet).

$ cat /usr/bin/dshowserver
#!/bin/sh
echo 'Starting wine dshowserver.exe'
wine /usr/share/dshowserver/dshowserver.exe $* &

# Give wine a chance to start properly
sleep 1
sudo /usr/local/bin/renicemplayer.real
And again, provided you've added that renicemplayer.real script to your sudoers file, this shouldn't ever ask for your password.

End result:

[...]

Playing /main/downloads/the.usual.suspects.1995.dvd5.720p.bluray.x264.samp le-hv.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "The Usual Suspects", -vid 0
[mkv] Track ID 2: audio (A_DTS) "DTS 5.1", -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x544 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
dshowserver --codec CoreAVCDecoder.ax --size 1280x544 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 9594 --id b5263780 --numpages 10 --port 17053 &
Starting wine dshowserver.exe

mplayer pids: 9594
dshowserver pids: 9597
-----------------------------------------
9594: old priority 0, new priority -10
9597: old priority 0, new priority -10

Opening device (port is 17053)
len: 992
ProductVersion: 2.0.0

[...]

ogooreck
January 13th, 2010, 12:11 AM
Hi ripps818 ! and thanks for your PPA that save me a lot of time !

Actually , I started again by launching mplayer through smplayer ( Nice options windows where you can add conditionnal coreavc flag etc..) and the performance is really better !


for some reason, launching though cmdline made terminal and X consume a lot of CPU(15-20%) . Now dshowserver is at 70/80 % CPU and apart from some really complicated scene , it's watchable !

ok now I need to integrate this in XBMC :-)

It can be releated to vo driver, vf chain mplayer uses, etc. For best performance it is the best to avoid any colorspace conversions in video chain and use fastest vo for your system. You can compare mplayer output messages to find out what's going on. For me best results gives vo=gl:yuv=2:force-pbo and vo=xv takes second place. When using vo=xv i can see higher X cpu utilization, as you do.

BagRackRider
January 14th, 2010, 10:23 PM
Hmm.. how do you run sudo without prompting for password?!
I mean since you have it in a script.

EDIT:
Nevermind, you can add something like this with visudo:
%foo ALL = NOPASSWD: /usr/bin/ionice

That allows the group foo to sudo ionice without a password.

ripps818
January 14th, 2010, 10:48 PM
Hmm.. how do you run sudo without prompting for password?!
I mean since you have it in a script.

EDIT:
Nevermind, you can add something like this with visudo:
%foo ALL = NOPASSWD: /usr/bin/ionice

That allows the group foo to sudo ionice without a password.

Yes, but I wouldn't recommend doing that, because it gives too much power for someone who happens to get access to your computer to screw up things. Rather, you should have your sudoers point to a script that is saved in /usr/local/bin or somewhere else that only root can write to.

If you open nice/ionice to change higher priority without a password, you open up your computer to be crashed by some random joe who manages to get access and giving some random process -20 niceness. That can effectively freeze your computer.

EDIT:
Also, I've changed the source of mplayer in the ppa to now use the git mplayer-build. Mplayer should now be built to use better ffmpeg multi-threading.

Zorael
January 14th, 2010, 11:12 PM
EDIT:
Also, I've changed the source of mplayer in the ppa to now use the git mplayer-build. Mplayer should now be built to use better ffmpeg multi-threading.
So future package updates will have ffmpeg-mt included? So far I've been downloading your sources, replacing the relevant libav* directories with ffmpeg-mt variants, including the patch and then building manually. Then they keep getting overwritten when you upload a new build, as I'm not completely sure how to change the package name (and binary names) to mplayer-mt. :3

Regardless, many thanks for the ppa, makes things much easier.

edit: Just installed 3:1.0~rc3+git20100108.7602d24-0ubuntu4~ripps3~karmic and now htop shows multiple threads of mplayer when started with -vc ffh264 -lavdopts threads=2. Nice. :>

ripps818
January 15th, 2010, 12:22 AM
Actually, I think mplayer now uses built in ffmpeg-mt. If you look at the package, you'll notice that it doesn't depend on libavcodec anymore.

BagRackRider
January 15th, 2010, 12:25 AM
Yes, but I wouldn't recommend doing that, because it gives too much power for someone who happens to get access to your computer to screw up things. Rather, you should have your sudoers point to a script that is saved in /usr/local/bin or somewhere else that only root can write to.

If you open nice/ionice to change higher priority without a password, you open up your computer to be crashed by some random joe who manages to get access and giving some random process -20 niceness. That can effectively freeze your computer.

Yeah, I know it's a risk but I think its a small one in this case. It's a personal server with few active accounts and worst case scenario is that someone figures out that ionice is open for "hacking" and then crashes the machine. Not to mention that if someone get access to the machine, this person must hack an account whose group is accepted to run ionice.

tpettit
January 17th, 2010, 01:10 PM
I didn't get very far. I'm on a 32bit machine, running Ubuntu 9.10 Karmic Koala, and this line:

wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0

...returns this:

(Stripping trailing CRs from patch.)
patching file loader/dshow/DS_VideoDecoder.c
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- saving rejects to file loader/dshow/DS_VideoDecoder.c.rej

Here are the contents of the rej file using cat:

***************
*** 97,103 ****

}
#define is_avc(cc) (cc == mmioFOURCC('A', 'V', 'C', '1') || \
- cc == mmioFOURCC('a', 'v', 'c', '1'))
char *ConvertVIHtoMPEG2VI(VIDEOINFOHEADER *vih, int *size)
{
struct VIDEOINFOHEADER2 {
--- 97,106 ----

}
#define is_avc(cc) (cc == mmioFOURCC('A', 'V', 'C', '1') || \
+ cc == mmioFOURCC('a', 'v', 'c', '1') || \
+ cc == mmioFOURCC('H', '2', '6', '4') || \
+ cc == mmioFOURCC('h', '2', '6', '4'))
+
char *ConvertVIHtoMPEG2VI(VIDEOINFOHEADER *vih, int *size)
{
struct VIDEOINFOHEADER2 {

I'm sort of new to Linux so I have no clue where to even start in order to fix this... Any help would be greatly appreciated. Thanks.

Master One
January 17th, 2010, 01:49 PM
To be honest, I completely lost the oversight. Can someone post a summary of how to get mplayer-mt + CoreAVC 2.0.0 up and running (with the available patches and which of these are really needed)?

Zorael
January 17th, 2010, 04:34 PM
If you really want to just "get it running", use ripps818's ppa.

If you still want to compile it yourself, perhaps to change a setting or apply a separate patch, just grab the source from ripps818's ppa and use checkinstall or dpkg-buildpackage to make sure it applies the patches in debian/patches.

If you want a fresher mplayer than what's available in his ppa (last update 13 hours ago), you may be able to copy the newer source into a directory containing the ppa source, making sure to not overwrite the debian directory. That way you'll be overwriting the mplayer bits while keeping the patches etc as they are.

That said, the coreavc-for-linux patch has been recently updated (by AlanNisota in this thread), so I'm not sure it needs wget/patching anymore as detailed on the first page.

BagRackRider
January 20th, 2010, 12:10 AM
That said, the coreavc-for-linux patch has been recently updated (by AlanNisota in this thread), so I'm not sure it needs wget/patching anymore as detailed on the first page.

The first page here is outdated.

Jason4108
January 21st, 2010, 02:40 AM
Does ripps818 mplayer-build package have ssa/*** subtitle support enabled?
Thanks

ripps818
January 21st, 2010, 03:19 AM
Does ripps818 mplayer-build package have ssa/*** subtitle support enabled?
Thanks
Yes, if I have SSA/*** support enabled.

Jason4108
January 21st, 2010, 04:16 AM
Yes, if I have SSA/*** support enabled.

hey ripps I'm on hardy amd64 and when I try to install mencoder and mplayer from your repos I get:

mencoder: Depends: libopencore-amrnb0 (>= 0.1.1) but it is not installable
Depends: libopencore-amrwb0 (>= 0.1.1) but it is not installable
mplayer: Depends: libopencore-amrnb0 (>= 0.1.1) but it is not installable
Depends: libopencore-amrwb0 (>= 0.1.1) but it is not installable

I've been looking for the packages but I'm having trouble finding them, do you have an advice?

ripps818
January 21st, 2010, 05:15 AM
hey ripps I'm on hardy amd64 and when I try to install mencoder and mplayer from your repos I get:

mencoder: Depends: libopencore-amrnb0 (>= 0.1.1) but it is not installable
Depends: libopencore-amrwb0 (>= 0.1.1) but it is not installable
mplayer: Depends: libopencore-amrnb0 (>= 0.1.1) but it is not installable
Depends: libopencore-amrwb0 (>= 0.1.1) but it is not installable

I've been looking for the packages but I'm having trouble finding them, do you have an advice?

Sorry, I forgot to move some backports from rvm's ppa into mine. I'll do that now.

Jason4108
January 21st, 2010, 03:20 PM
Sorry, I forgot to move some backports from rvm's ppa into mine. I'll do that now.

hmm for some reason when I use your packages I can't get ssa/*** subs to work. When using rvm's they work fine but coreavc doesn't work with those. I tried downloading your source packages to compile and when I do ./configure it says SSA/*** ... No

Zorael
January 21st, 2010, 04:21 PM
ripps818, do you think you could add a clause to whatever script you're using to make it add the git revision and/or date to the version string?

$ mplayer | grep Team # yours
MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team

$ mplayer-alt | grep Team # old compiled version
MPlayer SVN-r30166-4.4.1 (C) 2000-2009 MPlayer Team
Just a tought.

ripps818
January 22nd, 2010, 12:20 AM
hmm for some reason when I use your packages I can't get ssa/*** subs to work. When using rvm's they work fine but coreavc doesn't work with those. I tried downloading your source packages to compile and when I do ./configure it says SSA/*** ... No
Well, SSA/*** support is automatically enabled based on what development package it detects as being installed. I've been having trouble getting hardy amd64 to build on the ppa, but after checking the buildlogs, the last succesful build of mplayer-amd64-hardy did have SSA/*** enabled.

https://edge.launchpad.net/~ripps818/+archive/coreavc/+files/mplayer_1.0~rc3+git20100116.180c7ca-0ubuntu2~ripps1~hardy_amd64.deb

kub-fu
January 23rd, 2010, 03:12 AM
Hey Ripps, thanks a lot for your packages.

I'm running Karmic x64, and I first tried the guide on the first page, but I had the issue with CoreAVC 2.0, so I kept reading and found your repo.

Unfortunately, mplayer says:


Requested video codec family [coreserve] (vfm=dshowserver) not available.
Enable it at compilation.

I'm using both mplayer and dshowserver from your repository. Also, this is dshowservers output (same command as the guide):

Edit: Ok, so I got further by installing CoreAVC using wine instead of CrossOver, dumb me... Still, although dshowserver now works properly, mplayer keeps showing the same message above, and no video.

I have CoreAVCDecoder.ax in /usr/share/dshowserver

A hand please?

Thanks in advance!

ripps818
January 23rd, 2010, 03:36 AM
Requested video codec family [coreserve] (vfm=dshowserver) not available.
Enable it at compilation.

Okay, first of all, it's vc= not vfm=. Dshowserver is not part of a codec family, at least not yet.




Starting wine dshowserver.exe
err:menubuilder:WinMain unknown option -a
err:menubuilder:WinMain unknown option -r
No id specified, assuming test mode
Opening device (port is 0)
Warning: DS_Filter() could not open DirectShow DLL. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax

I have CoreAVCDecoder.ax in /usr/share/dshowserver

You have the codec in the right place, but did you install it correctly in wine? The new dshowserver relies on the wine configuration for settings and registry, you can't just fake it like you did with the old dshowserver anymore.

kub-fu
January 23rd, 2010, 06:55 AM
Thanks for your reply. I didn't change anything in what I pasted, that's how mplayer shows it (and I did use the -vc flag not -vfm).

I did install it under wine, with my serial, and dshowserver does show "Initialization is complete", so I'm guessing it's installed correctly?

Other thoughts?

ripps818
January 23rd, 2010, 07:35 AM
Thanks for your reply. I didn't change anything in what I pasted, that's how mplayer shows it (and I did use the -vc flag not -vfm).

I did install it under wine, with my serial, and dshowserver does show "Initialization is complete", so I'm guessing it's installed correctly?

Other thoughts?
Hmm....
This might be reaching, but do you have a custom codecs.conf in your .mplayer/ directory? Dshowserver doesn't need a custom codecs.conf for my mplayer build.

If that doesn't help, I'd file a bug on the coreavc-for-linux google project page. I'm not sure what else to do.

UPDATE:
Hold the phones, I've been looking closer at my buildlogs and it seems that with my latest mplayer release, amd64 packages older than lucid haven't been compiling the vd_dshowserver.c file. I don't understand why that's happening, and only with amd64. I'll have to consult some developers.

UPDATE2:
It seem that a series of win32 files aren't being compiled on amd64. I'm still investigating the cause.

UPDATE3:
Okay, I've edited my dshowserver patches to not be dependent on win32dll being enabled in the config. This should hopefully allow it to compile on x64 arches. *crosses fingers*

kub-fu
January 23rd, 2010, 05:23 PM
I do have the codecs.conf file, and I did try removing it, but the same error appears.

I eagerly wait for your updated packages, thanks a lot!

Zorael
January 27th, 2010, 04:49 PM
Hmm, any idea what could be causing this?

$ mplayer out.ogv
MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team

Playing out.ogv.
Ogg stream 0 is of an unknown type
[Ogg] stream 1: video (Theora v3.2.1), -vid 0
Ogg file format detected.
VIDEO: [theo] 672x352 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x88216c0]Missing extradata!


MPlayer interrupted by signal 11 in module: init_video_codec
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

To reproduce, try recording a screencast of a few seconds with recordmydesktop and then playing it with mplayer.

$ recordmydesktop --no-audio
$ mplayer out.ogv

ripps818
January 28th, 2010, 08:52 AM
Hmm, any idea what could be causing this?

$ mplayer out.ogv
MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team

Playing out.ogv.
Ogg stream 0 is of an unknown type
[Ogg] stream 1: video (Theora v3.2.1), -vid 0
Ogg file format detected.
VIDEO: [theo] 672x352 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x88216c0]Missing extradata!


MPlayer interrupted by signal 11 in module: init_video_codec
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

To reproduce, try recording a screencast of a few seconds with recordmydesktop and then playing it with mplayer.

$ recordmydesktop --no-audio
$ mplayer out.ogv

Well, I've managed to reproduce this. Using normal mplayer works, but if I add `-lavdopts threads=2`, than mplayer crashes. So I'm guessing that libtheora isn't multithreaded. I'll look into this, but I'm not sure what else to do.

ogooreck
January 29th, 2010, 05:34 PM
Maybe just use -vc theora, ?

Zorael
January 29th, 2010, 09:13 PM
Well, I've managed to reproduce this. Using normal mplayer works, but if I add `-lavdopts threads=2`, than mplayer crashes. So I'm guessing that libtheora isn't multithreaded. I'll look into this, but I'm not sure what else to do.

Maybe just use -vc theora, ?
Both limiting it to one thread and specifying -vc theora worked. I modified my ~/.mplayer/config file to prefer theora over coreserve, and now mplayer opens the file nicely without giving extra arguments.

ao=alsa,
lavdopts=fast=1:threads=3
vc=theora,coreserve,
nolirc=1
Thanks for the help.

coolme
February 2nd, 2010, 12:49 AM
#!/bin/sh

DSHOWSERVEREXE="c:\\Program Files\\CoreCodec\\CoreAVC Professional Edition\\dshowserver.exe"
wine "${DSHOWSERVEREXE}" "$@"
# if you wish to run dshowserver with elevated priority comment out line above and uncomment line below
# nice -n -5 wine "${DSHOWSERVEREXE}" "$@"

I had to make an account and say Thank You!. Have been messing around with this for some time and nothing i did worked it was driveing me insane. Tried the code and walla!! it works, THank you. Also Thank you Alan for coreavc-for-linux

ripps818
February 4th, 2010, 10:36 AM
Hmm...
I was about to make a post about how a properly tweaked mplayer using only ffmpeg-mt was just as fast (if not faster) than coreavc, but with the latest dshowserver patches for mplayer, It seems that coreavc wins over ffmpeg once again, ever so slightly.

I've already upload the mplayer/dshowserver with patches to the coreavc-for-ubuntu ppa already.

BagRackRider
February 4th, 2010, 11:28 PM
Feel free to post the mplayer-mt guide (unless it's just goes through on how to add ffmpeg-mt support, because there are guides for that already).

Currently, since I switched to a P4 CPU with Hyperthreading, mplayer-mt actually does a better job than coreavc, CoreAVC seem to bug here with HT enabled... stutters madly.

supadid
February 27th, 2010, 10:39 AM
I used rips818 PPA to download the packages (after failing first with compiling my own) and initially it didn't work due to the following message:


wine: cannot find '/usr/local/bin/dshowserver.exe.so'

I fixed this with the following:


sudo cp /usr/share/dshowserver/dshowserver.exe /usr/local/bin/dshowserver.exe.so


HD playback is now very smooth! This really is the Achilles heel in Ubuntu and Linux distributions in general at the moment I feel, playback on HD content is far too difficult for the average user to get working.

Anyway, I hope my fix above helps somebody out. :D and thanks to the OP and rips818 for his fine packages. :D

ripps818
February 27th, 2010, 10:47 AM
I used rips818 PPA to download the packages (after failing first with compiling my own) and initially it didn't work due to the following message:


wine: cannot find '/usr/local/bin/dshowserver.exe.so'

I fixed this with the following:


sudo cp /usr/share/dshowserver/dshowserver.exe /usr/local/bin/dshowserver.exe.so


HD playback is now very smooth! This really is the Achilles heel in Ubuntu and Linux distributions in general at the moment I feel, playback on HD content is far too difficult for the average user to get working.

Anyway, I hope my fix above helps somebody out. :D and thanks to the OP and rips818 for his fine packages. :D

Thanks, I try my best to make coreavc as easy as possible.

Btw, the reason you were having trouble is because you were using wine-gcc to compile dshowserver instead of mingw32. Technically, the wine-gcc should work, but I find it gives too much trouble.

supadid
February 27th, 2010, 11:21 AM
A-ha! Thanks.

The weird thing now is, I can't seem to get CoreAVC running with smplayer, it always seems to choose ffmpeg.

When i select the coreserve codec in the video properties it only plays the audio and seems to lock up a bit, any ideas?

ripps818
February 27th, 2010, 11:28 AM
A-ha! Thanks.

The weird thing now is, I can't seem to get CoreAVC running with smplayer, it always seems to choose ffmpeg.

When i select the coreserve codec in the video properties it only plays the audio and seems to lock up a bit, any ideas?

Every once in a while, it seems that dshowserver.exe doesn't close properly. Just enter in a terminal `killall dshowserver.exe` and that should fix it.

Also, I have another idea why coreserve might be looking for a dshowserver.exe.so in /usr/local, do you have a script installed to /usr/local/bin/dshowserver?
If you installed a file there during your earlier experimenting, it will interfere with the /usr/bin/dshowserver script I install in my package.

supadid
February 27th, 2010, 11:54 AM
Hmm, no sign of dshowserver.exe in the running processes and no sign of dshowserver.exe.so in /usr/local either.

Odd.

supadid
February 27th, 2010, 11:56 AM
Ignore that.

There was a dshowserver.exe.so in the /usr/local/bin and i moved it to dshowserver.exe.so.moved but smplayer still seems the same :(

tito_torrisi
February 27th, 2010, 03:48 PM
I'm using the mplayer build from CoreAVC-for-Ubuntu ppa with SMPlayer on an Atom 330 dual core CPU.
Do I have to add the command "lavdopts=threads=2" to the advanced options for mplayer section in order to work?
And what about the in "threads for decoding" the performance tab of SMPlayer options, do I have to set it to 2 cores as well? Or JUST that?

Are there any other necessary tweaks to get the best performance? (eg. video or audio output driver)

blablu
March 4th, 2010, 01:14 PM
Hi all,

I followed ripps818 guide (https://launchpad.net/~ripps818/+archive/coreavc) to the letter, the only difference being my CoreAVCDecoder.ax was in a slightly different path inside wine's folder.

Now whenever I try

mplayer -vc coreserve someHDfile.mkv

I get only sound (like so many people in the previews posts back in 2009 I see)


Cannot find codec matching selected -vo and video format...

I have no codecs.conf in Ubuntu 9.10.

How can I force mplayer to use coreavc?

Thank you for your time!

ripps818
March 4th, 2010, 01:55 PM
Hi all,
I followed ripps818 guide (https://launchpad.net/~ripps818/+archive/coreavc) to the letter, the only difference being my CoreAVCDecoder.ax was in a slightly different path inside wine's folder.
Now whenever I try

mplayer -vc coreserve someHDfile.mkv
I get only sound (like so many people in the previews posts back in 2009 I see)
I have no codecs.conf in Ubuntu 9.10.
How can I force mplayer to use coreavc?
Thank you for your time!

Are you sure that you're playing an h.264 video? Coreavc can only play AVC/h.264 files, and not all HD videos are encoded in that. Have you tried using `-vc coreserve,` (notice the comma at the end) so that it will fallback to another codec if coreavc can't play it.

Also, I've become aware that some certain stream rips have been encoded with FLV4 and mplayer doesn't know what to do with them, using `-vc +ffvp6f` will force them to playback using the proper codec.

blablu
March 4th, 2010, 03:34 PM
The video I tried is an AVC file.

this is exactly what I did:
1) installed coreavc with wine
2) added your ppa, installed dshowserver and updated mplayer to your version.
3) copied CoreAVCDecoder.ax to /usr/share/dshowserver
4) tried: mplayer -vc coreserve Video[720p][AVC-FLAC].mkv

did I miss something?

thank you very much for your reply!

ripps818
March 4th, 2010, 04:14 PM
The video I tried is an AVC file.

this is exactly what I did:
1) installed coreavc with wine
2) added your ppa, installed dshowserver and updated mplayer to your version.
3) copied CoreAVCDecoder.ax to /usr/share/dshowserver
4) tried: mplayer -vc coreserve Video[720p][AVC-FLAC].mkv

did I miss something?

thank you very much for your reply!
Nope, that's how it's suppose to go. Does coreserve work on other HD videos? I'm just trying to figure out whether it's the video or the your installation.

Btw, give me the entire output mplayer gives, there might be something I'm missing. Try using the -identify flag.

blablu
March 4th, 2010, 05:07 PM
I've tried with many videos. Same thing:


MPlayer SVN-r29748-4.4.1 (C) 2000-2009 MPlayer Team

Playing some_anime_[720p,BluRay,x264,DTS-ES].mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/***) "***", -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
================================================== ========================
Forced video codec: coreserve
Cannot find codec matching selected -vo and video format 0x31637661.
================================================== ========================
================================================== ========================
Requested audio codec family [dts] (afm=libdca) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...


Although I should mention that even whithout coreavc, your mplayer build greatly improved video playback in my machine. Thanks.

ripps818
March 4th, 2010, 05:21 PM
Okay, I think I know what's going on, your not using my patched mplayer packages. Let me guess, you upgraded your mplayer-nogui package. Upstream doesn't support the gmplayer gui anymore, so I renamed the nogui package to just plain mplayer. I thought I fixed this...

Okay, first uninstall mplayer-nogui:

sudo apt-get remove mplayer-nogui

Then reinstall normal mplayer from my ppa:

sudo apt-get install mplayer

And just to be sure, make sure that your mplayer version is correct run:

apt-cache policy mplayer
The installed version should something like: 3:1.0~rc3+git20100226.e28cf6c-0ubuntu1


This is probably my fault, your probably seeing remnants some old packages that used to populate the ppa. I had them all deleted, but I guess it didn't take.
I should probably create a dummy package so that mplayer-nogui will force the installation of my mplayer package.

blablu
March 4th, 2010, 06:08 PM
removing mplayer-nogui made no difference.:cry:

mplayer version is 3:1.0~rc3+git20100226.e28cf6c-0ubuntu1~ripps1~karmic

hd playback it's not a big deal for me though. I'm just curious.

Thanks for your time.:D

ripps818
March 4th, 2010, 07:11 PM
hmm.... weird. The reason I said you were using an older version was because your mplayer copyright string said:

MPlayer SVN-r29748-4.4.1 (C) 2000-2009 MPlayer Team
Which isn't right, because that's the version used by ubuntu.
The version in the ppa should be something similar to this:

MPlayer UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team

Maybe you should check your system to see if you have any old binaries of mplayer in your /usr/local/bin or ~/bin that is taking precedence over the one installed by the ppa.

blablu
March 4th, 2010, 07:49 PM
Maybe you should check your system to see if you have any old binaries of mplayer in your /usr/local/bin or ~/bin that is taking precedence over the one installed by the ppa.

wow man, that was it!

works like a charm...

thanks a million!:D:D:D

wiz_master49
March 10th, 2010, 10:02 AM
Sorry to ask such a dumb question but I just reformatted my laptop to Ubuntu and am looking to play some videos. I have mplayer installed and have installed coreavc using wine but I have no idea what to do other than that. I've read like 15 pages in this thread and my head is spinning lol so if someone could please simplify what I have to do exactly? I have the mplayer and dshowserver from https://launchpad.net/~ripps818/+archive/coreavc version 3.1.

Any help i appreciated. Thanks:D

ripps818
March 10th, 2010, 10:10 AM
Sorry to ask such a dumb question but I just reformatted my laptop to Ubuntu and am looking to play some videos. I have mplayer installed and have installed coreavc using wine but I have no idea what to do other than that. I've read like 15 pages in this thread and my head is spinning lol so if someone could please simplify what I have to do exactly? I have the mplayer from https://launchpad.net/~ripps818/+archive/coreavc version 3.1.

Any help i appreciated. Thanks:D

Easiest possible method, just ignore the previous 37 pages on this thread and just follow the directions in ppa's description.
The majority of this thread was to help people compile their own mplayer and dshowserver binaries. If your using the PPA, you don't need to worry about all of that.

wiz_master49
March 10th, 2010, 07:17 PM
Easiest possible method, just ignore the previous 37 pages on this thread and just follow the directions in ppa's description.
The majority of this thread was to help people compile their own mplayer and dshowserver binaries. If your using the PPA, you don't need to worry about all of that.

Alright, I got it working perfectly thank you. Just one more question, is their some way I can set mplayer to try to use coreavc if possible without having to play videos from the terminal?

ripps818
March 10th, 2010, 07:32 PM
Alright, I got it working perfectly thank you. Just one more question, is their some way I can set mplayer to try to use coreavc if possible without having to play videos from the terminal?
Yes, you just need to add an option to your ~/.mplayer/config. Below [Default] add:
vc=coreserve,

(remember to add the comma at the end, that will tell mplayer to fallback to another codec if coreavc fails)

wiz_master49
March 10th, 2010, 08:11 PM
Yes, you just need to add an option to your ~/.mplayer/config. Below [Default] add:
vc=coreserve,

(remember to add the comma at the end, that will tell mplayer to fallback to another codec if coreavc fails)
Below vo=xv, or below vc=ffmpeg12, ?

Thanks for the help.

ripps818
March 10th, 2010, 09:21 PM
Below vo=xv, or below vc=ffmpeg12, ?

Thanks for the help.
I'd replace the `vc=ffmpeg12,`.

joris1977
March 11th, 2010, 09:30 PM
Wow cool thanks for this thread, the ppa and the mulitthreaded playback. Really easy to set up and now I can just watch HD videos on my netbook; Atom N270 @ 1.60GH

The atom is under heavy load but it works!

:popcorn:

btw SMplayer makes a real nice front end for mplayer

duchai
March 13th, 2010, 10:24 AM
Installing CoreAVC 2.0 and DShowServer r114 works for me but whenever I run the own compiled mplayer svn r30883 with vc coreserve I get no video/black screen. I can only hear the audio.

Mplayer from ripps818's ppa works fine though

but I need to install libggi-target-x{u} libggi2{u} libgii1{u} libgii1-target-x{u} liblircclient0{u} liblzo2-2{u} libsvga1{u}

The compiled mplayer from svn does not need any other libs. Is that the reason why I get no video?

dadou
April 10th, 2010, 02:07 PM
Easiest possible method, just ignore the previous 37 pages on this thread and just follow the directions in ppa's description.
The majority of this thread was to help people compile their own mplayer and dshowserver binaries. If your using the PPA, you don't need to worry about all of that.
Hi ripps,

I've done everything yoiu said and I can actually use the CoreAVC codec with MPlayer. As I can see, when I load a BluRay Rip of 4.8Gios @1080p, it's not laggy, at least far less than VideoLAN is so thanks for that.
Though, I got two questions, first of all, how do I get back a GUI with MPlayer. Since your version is now the one installed through synaptic I don't have a GUI and Im forced to launch vids with the command line. Then, I would like to know if it is normal for my configuration to still have some lags playing HD contents since I got a Lenovo W500, VideoLAN should run those vids flawlessly and using a trick like this one to play it is a bit awkward (and it's not even running full load while playing with VideoLAN, Im puzzled why its laggy).
By the way, thanks again for your effort.

ripps818
April 10th, 2010, 02:42 PM
Hey dadou,
mplayer used to compile with an internal frontend called gmplayer, but that has been discontinued upstream. However, the mplayer I package should work out of the box with the myriad of other guis that are made to use mplayer. SMplayer and Gnome-Mplayer are probably the most popular.

I don't know why vlc isn't able to decode h.246 as well, but I'd wager a guess that it's because coreavc and the provided mplayer are compiled to provide much more efficient multithreaded playback. Vlc might playback better if you increase the number of threads it uses.

dadou
April 10th, 2010, 03:21 PM
Thanks for the quick answer ;)

Hey dadou,
mplayer used to compile with an internal frontend called gmplayer, but that has been discontinued upstream. However, the mplayer I package should work out of the box with the myriad of other guis that are made to use mplayer. SMplayer and Gnome-Mplayer are probably the most popular.
Ok, I was just asking because previously to that upgrade to your version, MPlayer has his own GUI and was shown in the applications menu. Anyway, Im gonna install a GUI and everything would be alright. By the way, Gnome MPlayer is the same as MPlayer? Because it's laggy as it have always been, kinda like it has not been upgraded as well as the command line MPlayer. Maybe I just should reinstall it.
(Yeah I just played the 1080p vid right now with gnome-mplayer and mplayer both in command line, totally not the same, weird uh?)

I don't know why vlc isn't able to decode h.246 as well, but I'd wager a guess that it's because coreavc and the provided mplayer are compiled to provide much more efficient multithreaded playback. Vlc might playback better if you increase the number of threads it uses.

Ok, you're maybe right about the multithreaded issue. It's bummer a machine like this suffer a laggy playback, I don't think VideoLAN was laggy running Windows. Tho it's too messy to run Windows. Let's keep it simple with MPlayer :D

ripps818
April 10th, 2010, 05:02 PM
Ok, I was just asking because previously to that upgrade to your version, MPlayer has his own GUI and was shown in the applications menu. Anyway, Im gonna install a GUI and everything would be alright. By the way, Gnome MPlayer is the same as MPlayer? Because it's laggy as it have always been, kinda like it has not been upgraded as well as the command line MPlayer. Maybe I just should reinstall it.

Both gnome-mplayer and smplayer are just front-ends for mplayer, there isn't too much reason there should be a performance difference between the two. You might need to play around with some of the options and Video Output. Mplayer isn't multithreaded by default, you need to tell how many threads to make by using `-lavdopts threads=n` (where n is the number of threads/cores your cpu can use). Gnome-mplayer has a place in Preferences to specify custom options. Although, if your using `-vc coreserve,` than coreavc should determine how many threads it needs to make.

Many people prefer to use smplayer in Ubuntu (even though it's designed for kde/qt) because it has a lot of robust configuration options and has support for CoreAVC by just clicking a checkbox. Although, I find it uses a few too many video filters that can reduce performance if your on a particularly slower cpu.

dadou
April 20th, 2010, 07:07 PM
Both gnome-mplayer and smplayer are just front-ends for mplayer, there isn't too much reason there should be a performance difference between the two. You might need to play around with some of the options and Video Output. Mplayer isn't multithreaded by default, you need to tell how many threads to make by using `-lavdopts threads=n` (where n is the number of threads/cores your cpu can use). Gnome-mplayer has a place in Preferences to specify custom options. Although, if your using `-vc coreserve,` than coreavc should determine how many threads it needs to make.

Many people prefer to use smplayer in Ubuntu (even though it's designed for kde/qt) because it has a lot of robust configuration options and has support for CoreAVC by just clicking a checkbox. Although, I find it uses a few too many video filters that can reduce performance if your on a particularly slower cpu.

Hi ripps,

Ok, I've played around with mplayer and different of its front ends those last days. As you said, gnome-mplayer and smplayer are just front ends and are giving same results, dunno why I got a laggy gnome-mplayer at this time. Anyway, now I can play HD playback flawlessly (gotta turn off pretty much every others apps in background for 1080p :D ) thanks to the coreserve codec. I hope a free one will pop up soon though.
I switched to ext4 too, can't do any bad either...
And by the way, I noticed the VC-1 support is not perfect as well as the dvd navigation with an iso file.
Thanks again for your work!

t.alex
April 20th, 2010, 07:56 PM
ripps818,

could you please tell me, what mplayer repository you use for your builds (https://launchpad.net/~ripps818/+archive/coreavc)? it's the git version from Uoti Urpala, right?

a while i thought it's that one here:
http://repo.or.cz/w/mplayer.git/shortlog
but according to the git tags it doesn't seem to be so.

ripps818
April 26th, 2010, 10:58 PM
ripps818,

could you please tell me, what mplayer repository you use for your builds (https://launchpad.net/~ripps818/+archive/coreavc)? it's the git version from Uoti Urpala, right?

a while i thought it's that one here:
http://repo.or.cz/w/mplayer.git/shortlog
but according to the git tags it doesn't seem to be so.

Sorry It took me soo long to reply, the repository I use is called mplayer-build, I think it uses the repository you specified as a submodule. My package uses that mplayer with ffmpeg-mt included internally as another submodule.

djerom
April 30th, 2010, 07:52 PM
Hi,

I installed yesterday the new release of Ubuntu (Lucid), then installed wine1.1.42-0ubuntu4, and your built packages of mplayer and dshowserver.

Testing the codec CoreAVCDecoder.ax in /usr/share/dshowserver with your binary dshowserver returned an error :

dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
Warning: DS_Filter() could not open DirectShow DLL. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax

Could it be because of the Wine version ?

Thanks for all your investment.

ripps818
April 30th, 2010, 10:09 PM
Hi,

I installed yesterday the new release of Ubuntu (Lucid), then installed wine1.1.42-0ubuntu4, and your built packages of mplayer and dshowserver.

Testing the codec CoreAVCDecoder.ax in /usr/share/dshowserver with your binary dshowserver returned an error :

dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
Warning: DS_Filter() could not open DirectShow DLL. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax

Could it be because of the Wine version ?

Thanks for all your investment.

Hmm... do you have any leftover scripts from previous coreavc attempts. The default script generated by coreavc-for-linux doesn't work with the setup I use with my dshowserver package. Check your /usr/local/bin and $HOME/bin directories to see if a different script is being run instead of the one installed in /usr/bin.

m45t3r
May 1st, 2010, 05:44 AM
Well, rips818, you rocks:guitar:. I was trying to compile a MPlayer with CoreAVC support using the instructions from the CoreAVC-for-Linux homepage, but it didn't work. Your PPA works like a charm for me (using a fresh install of Ubuntu 10.4, CoreAVC 2.0).

djerom
May 1st, 2010, 12:18 PM
Hmm... do you have any leftover scripts from previous coreavc attempts. The default script generated by coreavc-for-linux doesn't work with the setup I use with my dshowserver package. Check your /usr/local/bin and $HOME/bin directories to see if a different script is being run instead of the one installed in /usr/bin.

Hello,

I was using a codec built from a Windows XP installation. Installing the codec with Wine finally worked great ! No more issue.

MPlayer and this codec rocks !

ripps818
May 2nd, 2010, 04:42 AM
Hello,

I was using a codec built from a Windows XP installation. Installing the codec with Wine finally worked great ! No more issue.

MPlayer and this codec rocks !

Ah, yes. You can't just copy the codec, you have to actually install it. CoreAVC relies on user data stored in the wine windows registry to operate.

baleks
May 12th, 2010, 10:34 PM
Well, rips818, you rocks:guitar:. I was trying to compile a MPlayer with CoreAVC support using the instructions from the CoreAVC-for-Linux homepage, but it didn't work. Your PPA works like a charm for me (using a fresh install of Ubuntu 10.4, CoreAVC 2.0).

+1, thank you very much!!!

djerom
May 16th, 2010, 02:04 PM
Hi rips818,

could your packages be considered as "Debian compatible packages" or are they specific to Ubuntu ? I'm asking it because I search Debian packages for installing them on a linux distribution based on Debian.

Many thanks.

djerom
May 16th, 2010, 02:17 PM
Hi rips818,

could your packages be considered as "Debian compatible packages" or are they specific to Ubuntu ? I'm asking it because I search Debian packages for installing them on a linux distribution based on Debian.

Many thanks.

I guess viewing package details on your Launchpad project "CoreAVC-for-Ubuntu" gave me the answer : some .deb files are present.

qtzlctl
May 17th, 2010, 04:15 PM
uh, I'm failing on step 1: installing CoreAVC with Wine. I've got Wine 1.1.42 (from the software center) and the installer (CoreAVC 2.0 Professional Edition.exe). It shows the installer pop-up, goes silent for 60 seconds then throws a "This application encountered a serious problem and needs to close".

Do I need to install anything to get CoreAVC to install?

*edit

Workaround for anyone who can't get past the installer pop-up:
1. Open a terminal window
2. Type "wine /installer location/"
3. When you see "err:ntdll:RtlpWaitForCriticalSection section 0x7bca27e4 "loader.c: loader_section" wait timed out in thread 001c, blocked by 0009, retrying (60 sec)" wait about 4 seconds and type CTRL+C.
4. You can now continue with the installation.

joris1977
May 25th, 2010, 12:34 PM
Sorry if this is off topic;

But after the success story with CoreAVC and my atom based netbook without an advanced graphic card, I was wondering if it would make sense to use CoreAVC on my desktop. On my desktop I now use Vdpau and mplayer with an Nvidia card. Works pretty well on very low cpu. Is there any advancement I could have by using CoreAVC?

regneva
May 25th, 2010, 05:43 PM
I have installed Mplayer with coreavc. I use this to play HD mkv files. Everything works fine except once in a while the image is garbled as shown in the attached file. After a few seconds it sorts itself out. This usually happens when there is a dramatic change in the scene. This is very annoying. Anyone knows why this happens or how I can fix it? Thanks a ton!

nikmad
May 25th, 2010, 10:52 PM
Hi,

Am a newbie, got past thru the first step of installing wine with difficulty(had the same problem described and solved a few threads back), now having difficulty in installing Dshowserver

I have listed the errors below. All greek to me :)

Any help would be much appreciated

1)

nikmad@nikmad ~/coreavc-for-linux $ cd dshowserver && make
make -C ../loader
make[1]: Entering directory `/home/nikmad/coreavc-for-linux/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nikmad/coreavc-for-linux/loader'
winegcc -o dshowserver ../objs-winelib/server.o ../objs-winelib/timeout_sem.o ../objs-winelib/defaults.o ../objs-winelib/crc32.o ../objs-winelib/libloader.a -lm -m32 -lole32 -loleaut32 -lrt -lpthread
/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
make: *** [dshowserver] Error 2


2)
nikmad@nikmad ~/coreavc-for-linux $ cd dshowserver && make X_COMPILE=1
i586-mingw32msvc-gcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-mingw/server.o -c server.c
make: i586-mingw32msvc-gcc: Command not found
make: *** [../objs-mingw/server.o] Error 127

3)
nikmad@nikmad ~/coreavc-for-linux/precompiled $ sudo make install
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2

nikmad@nikmad ~/coreavc-for-linux/precompiled $ sudo make install X_COMPILE=1
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2


Then i tried installing it through synaptic, that seemed to work, but on testing it, getting a new error

nikmad@nikmad ~ $ dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
Warning: DS_Filter() could not open DirectShow DLL. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax


Could u kindly point out what i am doing wrong.

ripps818
May 26th, 2010, 12:32 AM
Hi,

Am a newbie, got past thru the first step of installing wine with difficulty(had the same problem described and solved a few threads back), now having difficulty in installing Dshowserver

I have listed the errors below. All greek to me :)

Any help would be much appreciated

1)

nikmad@nikmad ~/coreavc-for-linux $ cd dshowserver && make
make -C ../loader
make[1]: Entering directory `/home/nikmad/coreavc-for-linux/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nikmad/coreavc-for-linux/loader'
winegcc -o dshowserver ../objs-winelib/server.o ../objs-winelib/timeout_sem.o ../objs-winelib/defaults.o ../objs-winelib/crc32.o ../objs-winelib/libloader.a -lm -m32 -lole32 -loleaut32 -lrt -lpthread
/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
make: *** [dshowserver] Error 2


2)
nikmad@nikmad ~/coreavc-for-linux $ cd dshowserver && make X_COMPILE=1
i586-mingw32msvc-gcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-mingw/server.o -c server.c
make: i586-mingw32msvc-gcc: Command not found
make: *** [../objs-mingw/server.o] Error 127

3)
nikmad@nikmad ~/coreavc-for-linux/precompiled $ sudo make install
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2

nikmad@nikmad ~/coreavc-for-linux/precompiled $ sudo make install X_COMPILE=1
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2


Then i tried installing it through synaptic, that seemed to work, but on testing it, getting a new error

nikmad@nikmad ~ $ dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
Warning: DS_Filter() could not open DirectShow DLL. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax


Could u kindly point out what i am doing wrong.

woo... okay, let's go through these one by one.

1) Okay, it looks here that you were trying to use the default dshowserver build method. This one uses winegcc to compile the code (which is usually unreliable and buggy for me), but the main issue is that you don't have the wine-dev package installed which supplies the wine headers needed to compile dshowserver this way.
This should be easily solved by installing the wine-dev package.

2) Now this time, you tried the compile it with the X_COMPILE method (which I recommend). This method uses mingw32 to compile the code instead of winegcc. But it seems you didn't install mingw32, so it failed.
Easily solved by installing the mingw32 package.

3) Now, you were trying to install the precompiled dshowserver.exe, which is probably the easist method, and should work on most platforms. But, it seems that it was having trouble installing the execution script. I had this problem too, and I decided to bypass the problem all together by making my own script and installing it manually.
I don't have an easy method of fixing this aside from rewriting the Makefile.

4) Lastly, you tried installing a package through synaptic. I'm going to assume you used my package from the CoreAVC-for-Ubuntu PPA (as I'm the only one that builds a package, as far as I know). Okay, now there could be a number of things going on here, but since you said it worked, I'm going to assume that your problem is trying to load in configuration panel for it. This probably because your wine installation is missing some necessary files,
you can probably fix this by using the winetricks script to install dcom98.

wget http://www.kegel.com/wine/winetricks
And then executing the script to install the component into wine.

sh winetricks dcom98

Other issues with the dshowserver package in the PPA:

CoreAVCDecoder.ax not being installed correctly into /usr/share/dshowserver.
Not installing CoreAVC properly into Wine so the windows registry doesn't have proper registration username and credentials.
There is still some old remnants of previous dshowserver installations messing with the dshowserver package, make sure that there isn't any dshowserver related files remaining in /usr/local.

nikmad
May 26th, 2010, 04:38 AM
woo... okay, let's go through these one by one.

1) Okay, it looks here that you were trying to use the default dshowserver build method. This one uses winegcc to compile the code (which is usually unreliable and buggy for me), but the main issue is that you don't have the wine-dev package installed which supplies the wine headers needed to compile dshowserver this way.
This should be easily solved by installing the wine-dev package.

2) Now this time, you tried the compile it with the X_COMPILE method (which I recommend). This method uses mingw32 to compile the code instead of winegcc. But it seems you didn't install mingw32, so it failed.
Easily solved by installing the mingw32 package.

3) Now, you were trying to install the precompiled dshowserver.exe, which is probably the easist method, and should work on most platforms. But, it seems that it was having trouble installing the execution script. I had this problem too, and I decided to bypass the problem all together by making my own script and installing it manually.
I don't have an easy method of fixing this aside from rewriting the Makefile.

4) Lastly, you tried installing a package through synaptic. I'm going to assume you used my package from the CoreAVC-for-Ubuntu PPA (as I'm the only one that builds a package, as far as I know). Okay, now there could be a number of things going on here, but since you said it worked, I'm going to assume that your problem is trying to load in configuration panel for it. This probably because your wine installation is missing some necessary files,
you can probably fix this by using the winetricks script to install dcom98.

wget http://www.kegel.com/wine/winetricksAnd then executing the script to install the component into wine.

sh winetricks dcom98Other issues with the dshowserver package in the PPA:

CoreAVCDecoder.ax not being installed correctly into /usr/share/dshowserver.
Not installing CoreAVC properly into Wine so the windows registry doesn't have proper registration username and credentials.
There is still some old remnants of previous dshowserver installations messing with the dshowserver package, make sure that there isn't any dshowserver related files remaining in /usr/local.



Thanks for the quick response. :)

1)I tried winetricks first
it returned

~/coreavc-for-linux/dshowserver $ sh winetricks dcom98
err:module:attach_process_dlls "rpcrt4.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\cmd.exe" failed, status c0000005
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string


2)Then i tried the mingw32 method. Installed it thru synaptic,

ran
cd dshowserver && make X_COMPILE=1

and
sudo make install X_COMPILE=1

it returned

sudo make install X_COMPILE=1
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2



:(

ripps818
May 26th, 2010, 08:14 AM
1)I tried winetricks first
it returned

~/coreavc-for-linux/dshowserver $ sh winetricks dcom98
err:module:attach_process_dlls "rpcrt4.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\cmd.exe" failed, status c0000005
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string

Grrr... stupid Wine.
After doing some google searches, I found a discussion about this in the wine-users mailing list: http://osdir.com/ml/wine-users/2010-01/msg00757.html
I'm not sure this a proper fix. I'm not getting this error with 1.1.42-ubuntu4 in Ubuntu Lucid, so I'm not quite sure what to do.



2)Then i tried the mingw32 method. Installed it thru synaptic,

ran
cd dshowserver && make X_COMPILE=1

and
sudo make install X_COMPILE=1

it returned

sudo make install X_COMPILE=1
mkdir -p /usr/local/share/dshowserver
mkdir -p /usr/local/bin
cp dshowserver.exe /usr/local/share/dshowserver/
echo "#!/bin/sh" > /usr/local/bin/dshowserver
/bin/sh: cannot create /usr/local/bin/dshowserver: Is a directory
make: *** [install] Error 2
Yeah, it's goofing when it tries to generate the dshowsever script. I bypassed this by just making my own script.
This one might work with the manual install of dshowserver.
First, create an empty file named dshowserver


#!/bin/sh
echo 'Starting wine dshowserver.exe'
wine /usr/local/share/dshowserver/dshowserver.exe $*

Then, make the file executable

chmod +x dshowserver
and move it to /usr/local/bin.

nikmad
May 26th, 2010, 12:02 PM
Grrr... stupid Wine.
After doing some google searches, I found a discussion about this in the wine-users mailing list: http://osdir.com/ml/wine-users/2010-01/msg00757.html
I'm not sure this a proper fix. I'm not getting this error with 1.1.42-ubuntu4 in Ubuntu Lucid, so I'm not quite sure what to do.


Yeah, it's goofing when it tries to generate the dshowsever script. I bypassed this by just making my own script.
This one might work with the manual install of dshowserver.
First, create an empty file named dshowserver


#!/bin/sh
echo 'Starting wine dshowserver.exe'
wine /usr/local/share/dshowserver/dshowserver.exe $*
Then, make the file executable

chmod +x dshowserverand move it to /usr/local/bin.


:) :) :popcorn:

Your manual Dshowserver worked :) . Now it opens in mplayer from the terminal. First it played only audio and not video. I went into synaptic, and forced reinstall with "version 2:1.0~rc3+svn20090426-1ubuntu16+medibuntu1". Now, it opens from terminal ( "mplayer <file path>"), and plays video with no lag .
But there is no open using mplayer option in the file browser. I tried installing smplayer but on opening it from browser, there is again only audio, no video. A solution for this and am all set. Thank you for all your help :)

ripps818
May 27th, 2010, 04:04 AM
Your manual Dshowserver worked :) . Now it opens in mplayer from the terminal. First it played only audio and not video. I went into synaptic, and forced reinstall with "version 2:1.0~rc3+svn20090426-1ubuntu16+medibuntu1". Now, it opens from terminal ( "mplayer <file path>"), and plays video with no lag .
But there is no open using mplayer option in the file browser. I tried installing smplayer but on opening it from browser, there is again only audio, no video. A solution for this and am all set. Thank you for all your help :)

Umm... if your using the medibuntu mplayer, than you're probably not using dshowserver and CoreAVC. You need to patch mplayer to use dshowserver. You're probably just using FFmpeg to decode your video, which is just fine. FFmpeg has really advanced AVC decoding these days, and I only recommend using CoreAVC if your using a particularly old or slow computer.

Also, mplayer, by it's nature, is a commandline application. Don't expect it to work from a file browser, such as nautilus, without a frontend such as gnome-mplayer or smplayer.

zapbrannigan99
May 28th, 2010, 10:59 PM
Hey just tried following the instructions in post#1 and I'm stuck on the line:

~/mplayer-with-coreavc/coreavc-for-linux$ wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0
(Stripping trailing CRs from patch.)
patching file loader/dshow/DS_VideoDecoder.c
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- saving rejects to file loader/dshow/DS_VideoDecoder.c.rej
patch unexpectedly ends in middle of line


Please help?

ripps818
May 29th, 2010, 03:42 AM
Hey just tried following the instructions in post#1 and I'm stuck on the line:

~/mplayer-with-coreavc/coreavc-for-linux$ wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0
(Stripping trailing CRs from patch.)
patching file loader/dshow/DS_VideoDecoder.c
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- saving rejects to file loader/dshow/DS_VideoDecoder.c.rej
patch unexpectedly ends in middle of line


Please help?

Post #1 and that patch are out of date. I don't think the dshowserver source needs to be patched anymore.

joris1977
May 29th, 2010, 09:18 AM
I tried installing smplayer but on opening it from browser, there is again only audio, no video. A solution for this and am all set. Thank you for all your help :)

To have audio with Smplayer you probably need to change
The audio output driver. In Smplayer preferences -> general -> audio -> audio output driver. Change it from alsa to pulse. (This made my audio work)

Oh and it is possible to use Smplayer with coreavc. Under preferences -> performance -> performance -> There is a checkbox 'use coreavc if no other codec is speciefied'. You can chec the logs in Smplayer if it is using coreavc

speedtortoise
May 29th, 2010, 09:59 AM
One of the steps failed and I cannot move on from there...


$ wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0
missing header for unified diff at line 154 of patch
(Stripping trailing CRs from patch.)
patching file loader/dshow/DS_VideoDecoder.c
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- saving rejects to file loader/dshow/DS_VideoDecoder.c.rej
patch unexpectedly ends in middle of lineDS_VideoDecoder.c.rej contains:


***************
*** 97,103 ****

}
#define is_avc(cc) (cc == mmioFOURCC('A', 'V', 'C', '1') || \
- cc == mmioFOURCC('a', 'v', 'c', '1'))
char *ConvertVIHtoMPEG2VI(VIDEOINFOHEADER *vih, int *size)
{
struct VIDEOINFOHEADER2 {
--- 97,106 ----

}
#define is_avc(cc) (cc == mmioFOURCC('A', 'V', 'C', '1') || \
+ cc == mmioFOURCC('a', 'v', 'c', '1') || \
+ cc == mmioFOURCC('H', '2', '6', '4') || \
+ cc == mmioFOURCC('h', '2', '6', '4'))
+
char *ConvertVIHtoMPEG2VI(VIDEOINFOHEADER *vih, int *size)
{
struct VIDEOINFOHEADER2 {


Please tell me how I can correct this. Thank you.

MidBSD
May 30th, 2010, 12:57 PM
Will the PPA work for 64 bit systems?

Currently I'm having problems with this error when I start gnome-mplayer:

Failed to open Win32 codec CoreAVCDecoder.ax

I copied CoreAVCDecoder64.ax and CoreAVCDecoder.ax into /usr/share/dshowserver.

My ~/.mplayer/config is as follows:


[default]
vc=coreserve,
lavdopts=threads=2

[gnome-mplayer]
msglevel=all=5

zapbrannigan99
May 31st, 2010, 11:59 PM
Hmm...
I was about to make a post about how a properly tweaked mplayer using only ffmpeg-mt was just as fast (if not faster) than coreavc, but with the latest dshowserver patches for mplayer, It seems that coreavc wins over ffmpeg once again, ever so slightly.

I've already upload the mplayer/dshowserver with patches to the coreavc-for-ubuntu ppa already.

Hey Ripps - I found your PPA with the prebuilt mplayer packages - wish I'd seen these at the beginning, installed and they work :)

One question though - your build of mplayer crashes when I try to play anything over smb:// - any idea how to fix this?

Thanks again for the PPA though - worked first time with mplayer (had to move dshowserver.exe to the wine windows folder cause wine couldn't find it...)

trapperjohn
June 10th, 2010, 06:20 PM
Hey there!

I had CoreAVC+mplayer running on my Atom EEE Box using the ppa on Karmic and everything was fine.

Some days ago, my harddisk crashed (:mad:) and everything was lost. I still had the old disk lying around with Jaunty and an old CoreAVC+mplayer installation.

So I made the 2-step update from Jaunty to Karmic to Lucid, added ppa sources to apt, installed dshowserver and mplayer, installed CoreAVC 2.0 with wine and copied the CoreAVCDecoder.ax to /usr/share/dshowserver

I also renamed my old local versions of dshowserver and registercodec, so they don't interfere with the new system.

So far so good.

But when I now run "dshowserver -c CoreAVCDecoder.ax" (or just try to watch a movie using CoreAVC), the following error comes up:



Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x64): stub
fixme:thread:SetThreadIdealProcessor (0x68): stub
err:ole:CoGetClassObject class {1e651cc0-b199-11d0-8212-00c04fc32c45} not registered
err:ole:CoGetClassObject no class object {1e651cc0-b199-11d0-8212-00c04fc32c45} could be created for context 0x1
Warning: DS_Filter() error getting IMemAllocator interface. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax

I'm sure it finds the .ax file, because if I rename it, dshowserver makes a clear error message about the missing file.

What's going on here? Will a clear installation of Lucid help? Or is it because of the crappy Intel graphics in the Eee box in combination with changes in Lucid?

Thanks in advance, any help would be appreciated!

ripps818
June 10th, 2010, 08:59 PM
Will the PPA work for 64 bit systems?

Currently I'm having problems with this error when I start gnome-mplayer:

Failed to open Win32 codec CoreAVCDecoder.ax

I copied CoreAVCDecoder64.ax and CoreAVCDecoder.ax into

/usr/share/dshowserver.

My ~/.mplayer/config is as follows:

[default]
vc=coreserve,
lavdopts=threads=2

[gnome-mplayer]
msglevel=all=5
To be honest, I don't know if it works with 64-bit. I assumed that it would just work under 32-bit mode. You could try compliling dshowserver using mingw-w64 instead of mingw32. But I'm not sure dshowserver will recognize CoreAVCDecoder64.ax. It would probably require editing mplayer's codec.conf.

I'm sorry that I haven't been able to test it, but I don't have a x64 cpu, so I can debug these kind of problems.


Hey Ripps - I found your PPA with the prebuilt mplayer packages - wish I'd seen these at the beginning, installed and they work

One question though - your build of mplayer crashes when I try to play anything over smb:// - any idea how to fix this?

Thanks again for the PPA though - worked first time with mplayer (had to move dshowserver.exe to the wine windows folder cause wine couldn't find it...)
You might want to talk to uau at #mplayer on irc.freenode.net. He's the developer of the mplayer-build branch I source the packages from. He might have an idea what might be up.


Hey there!

I had CoreAVC+mplayer running on my Atom EEE Box using the ppa on Karmic and everything was fine.

Some days ago, my harddisk crashed () and everything was lost. I still had the old disk lying around with Jaunty and an old CoreAVC+mplayer installation.

So I made the 2-step update from Jaunty to Karmic to Lucid, added ppa sources to apt, installed dshowserver and mplayer, installed CoreAVC 2.0 with wine and copied the CoreAVCDecoder.ax to /usr/share/dshowserver

I also renamed my old local versions of dshowserver and registercodec, so they don't interfere with the new system.

So far so good.

But when I now run "dshowserver -c CoreAVCDecoder.ax" (or just try to watch a movie using CoreAVC), the following error comes up:

Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x64): stub
fixme:thread:SetThreadIdealProcessor (0x68): stub
err:ole:CoGetClassObject class {1e651cc0-b199-11d0-8212-00c04fc32c45} not registered
err:ole:CoGetClassObject no class object {1e651cc0-b199-11d0-8212-00c04fc32c45} could be created for context 0x1
Warning: DS_Filter() error getting IMemAllocator interface. (DLL=CoreAVCDecoder.ax)
Failed to create DirectShow filter
Failed to open win32 codec CoreAVCDecoder.ax
I'm sure it finds the .ax file, because if I rename it, dshowserver makes a clear error message about the missing file.

What's going on here? Will a clear installation of Lucid help? Or is it because of the crappy Intel graphics in the Eee box in combination with changes in Lucid?

Thanks in advance, any help would be appreciated!
My best guess is that it's a Wine issue. The best solution I know is to use winetricks (http://wiki.winehq.org/winetricks) to install dcom98.

trapperjohn
June 13th, 2010, 10:23 AM
My best guess is that it's a Wine issue. The best solution I know is to use winetricks (http://wiki.winehq.org/winetricks) to install dcom98.


Nope, didn't work. The error stays the same after DICOM98 installation.

As I need to buy another harddrive anyway, I will try it again after fresh installation of Lucid. ):P

aviramof
June 18th, 2010, 09:46 AM
Whats up with Maverick ppa why do i get partial upgrade messege?

ripps818
June 18th, 2010, 05:54 PM
Whats up with Maverick ppa why do i get partial upgrade messege?
It's probably the the recent ffmpeg update in Maverick. My mplayer shouldn't be affected because it uses it's own statically linked ffmpeg, seperate from the installed libraries. You'll have to wait until it's fixed.

If that's not the problem, you'll need to give me some more details, because I'm not seeing this problem. (btw, try using aptitude from the commandline. It gives alot of useful output)

djerom
June 19th, 2010, 04:58 PM
Hi,

I'm trying to install coreavc on a Linux distro (crunchbang statler) based on Debian Squeeze.
First I've followed the procedure described on coreavc-for-linux (http://code.google.com/p/coreavc-for-linux/) project (code.google hosted) compiling sources. No issue.
But an error occurs when running mplayer on a video file : loop with message "Too many buffered pts".

Then I tried installing your package "dshowserver - 0-svn115-0ubuntu2~ripps1". Same error at running.

My logs:

mplayer -vo xv -vc coreserve glee.s01e09.720p.hdtv.x264-ctu.mkv
MPlayer SVN-r31383-4.4.4 (C) 2000-2010 MPlayer Team
154 audio & 340 video codecs

Playing glee.s01e09.720p.hdtv.x264-ctu.mkv.
libavformat file format detected.
[matroska @ 0xa0893e0]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (ac3), -aid 0
[lavf] stream 1: video (h264), -vid 0
VIDEO: [H264] 1280x720 0bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
SUB: Added subtitle file (1): ./glee.s01e09.720p.hdtv.x264-ctu.srt
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
dshowserver --codec CoreAVCDecoder.ax --size 1280x720 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x34363248 --bits 12 --outfmt 0x32315659 --pid 2385 --id b69d9700 --numpages 10 --port 4512 &
Starting wine dshowserver.exe
Opening device (port is 4512)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x7c): stub
fixme:thread:SetThreadIdealProcessor (0x80): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder x.x for x86 - http://corecodec.org/)
================================================== ========================
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
EINPROGRESS in connect() - selecting
Too many buffered pts
Too many buffered pts
Too many buffered pts
...

Any idea to help me ?

funkwizard
June 19th, 2010, 09:08 PM
3 questions :

1. What is dshowserver?

2. Why is dshowserver necessary?

3. How does dshowserver interact with mplayer?

ripps818
June 20th, 2010, 05:12 AM
3 questions :
1. What is dshowserver?
Dshowserver (or rather dshowserver.exe) is a win32 program designed to simulate Windows directshow server using Windows codecs, such as CoreAVC.

2. Why is dshowserver necessary?
Dshowserver is the only way to use CoreAVC with mplayer on Linux. Right now, CoreAVC is much more efficient than FFMpeg at decoding H.264/AVC video. For people with older/slower CPUs/GPUs, it might be the only way to realistically play 720p HD videos.

3. How does dshowserver interact with mplayer?
Dshowserver.exe is used by Mplayer to decode the video. Dshowserver.exe is run within a wrapper script because it relies on WINE in order to operate.

If you want a more detailed description on how dshowserver works, you'd best take it up with the developer at the coreavc-for-linux (http://http://code.google.com/p/coreavc-for-linux/) project.

funkwizard
June 22nd, 2010, 09:14 PM
Thanks for answering those questions so thoroughly, Ripps.

I have another question :

1. CoreAVC uses CUDA technology on Nvidia Cards (where available). Does the coreAVC-for-linux project (using dshowserver.exe) support CUDA?

Many thanks

ripps818
June 25th, 2010, 01:25 AM
Thanks for answering those questions so thoroughly, Ripps.

I have another question :

1. CoreAVC uses CUDA technology on Nvidia Cards (where available). Does the coreAVC-for-linux project (using dshowserver.exe) support CUDA?

Many thanks
Too be honest, I'm not sure whether CoreAVC CUDA works in Linux or not. Best to contact the developer about it.
But, if you have an Nvidia card, you'd probably have an easier time just using FFMpeg with VDPAU. That would probably give you the best performance.

Red3
June 26th, 2010, 07:12 AM
...
Too many buffered pts
Too many buffered pts
Too many buffered pts
...


I'm also having this problem.

Very frustrating, so close to having it working.
I didn't have this problem 2 months ago when I did this on my Karmic box, now on my Lucid box it doesn't work.

I've tried using "-nocorrect-pts" and "-correct-pts" to no avail.

DuyUn
July 4th, 2010, 12:21 AM
I get pretty confused at this step: (http://code.google.com/p/coreavc-for-linux/wiki/MplayerInstallation)


3) Install patch into mplayer:
cd <path to mplayer source code>
patch -p0 < <path to coreavc-for-linux>/mplayer/dshowserver.patch
make
make installI got mplayer source from svn://svn.mplayerhq.hu/mplayer/trunk
I cant do "make" and "make install" before ./configure. So when should I configure ? before patching or after patching ?

I'm totally newbie to Linux. I own coreavc and would like to use it for my Ubuntu ^^

P/s: I have installed mplayer via Ubuntu software center. Do I need to remove it before following this guide ?

annoyingrob
July 18th, 2010, 10:51 AM
I'm also having this problem.

Very frustrating, so close to having it working.
I didn't have this problem 2 months ago when I did this on my Karmic box, now on my Lucid box it doesn't work.

I've tried using "-nocorrect-pts" and "-correct-pts" to no avail.

Me as well. Running Lucid 64 bit with CoreAVC 1.9.5. I tried a 720p .mkv file, and it played just fine, but when I tried a 1080p .ts file, I would just get the "Too many buffered pts" message repeated over and over. If I use "-nocorrect-pts", I can get the audio, but the video remains black.

Nixton
August 22nd, 2010, 02:48 AM
Hey...I feel like a real nub at the moment...I have been trying to get my mplayer to work with HD Movies. Finaly I found a step by step Howto but I seems that its outdated.



Patch, build and install DShowServer (i386/32bit users)

First, we need to patch the sources to make them compatible with recent versions of MPlayer:



cd coreavc-for-linux
wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0

Then we build the dshowserver and registercodec binaries and copy them into /usr/local/bin.



cd dshowserver
make
sudo cp dshowserver registercodec /usr/local/binAlready this step gives me a headache.


nixton@nixton-1557:~/mplayer-with-coreavc/coreavc-for-linux$ wget -qO - "http://pastebin.com/pastebin.php?dl=f7ca459d" | patch -p0
(Stripping trailing CRs from patch.)
patching file loader/dshow/DS_VideoDecoder.c
Hunk #1 FAILED at 97.
1 out of 1 hunk FAILED -- saving rejects to file loader/dshow/DS_VideoDecoder.c.rej
patch unexpectedly ends in middle of line
I already read that zapbrannigan99 (http://ubuntuforums.org/member.php?u=1084944) had the same problem and that ripps818 (http://ubuntuforums.org/member.php?u=283653) said that it wasn't necessary to patch it. But what does that mean. Can I just go on with the make part (which I tried but this was the outcome)


nixton@nixton-1557:~/mplayer-with-coreavc/coreavc-for-linux/dshowserver$ make
winegcc -I../loader -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D__WINE__ -DNOAVIFILE_HEADERS -DMPLAYER -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -o ../objs-winelib/server.o -c server.c
make: winegcc: Kommando nicht gefunden
make: *** [../objs-winelib/server.o] Fehler 127
This is what the dshowserver directory contains.


nixton@nixton-1557:~/mplayer-with-coreavc/coreavc-for-linux/dshowserver$ ls -al
insgesamt 56
drwxr-xr-x 3 nixton nixton 4096 2010-08-22 03:16 .
drwxr-xr-x 11 nixton nixton 4096 2010-08-22 03:21 ..
-rw-r--r-- 1 nixton nixton 3771 2010-08-22 03:16 crc32.c
-rw-r--r-- 1 nixton nixton 2387 2010-08-22 03:16 defaults.c
-rw-r--r-- 1 nixton nixton 229 2010-08-22 03:16 defaults.h
-rw-r--r-- 1 nixton nixton 2047 2010-08-22 03:16 Makefile
-rw-r--r-- 1 nixton nixton 9642 2010-08-22 03:16 server.c
drwxr-xr-x 6 nixton nixton 4096 2010-08-22 03:16 .svn
-rw-r--r-- 1 nixton nixton 9872 2010-08-22 03:16 timeout_sem.c
-rw-r--r-- 1 nixton nixton 279 2010-08-22 03:16 timeout_sem.h

I also tried chmod +x Makefile and ./Makefile but that also doesn't lead anywhere :(
So what do I have to do???

Looking forward to your help.

P.S. I am using Ubuntu 10.04 on a Intel Core i7

Zorael
August 22nd, 2010, 01:38 PM
@Nixton;

If you merely want it to Just Work I suggest adding ripp818's ppa. A simple upgrade of the mplayer package and an installation of the dshowserver one should get your mplayer sorted. Then it's just a matter of installing CoreAVC via Wine, and copying the CoreAVCDecoder.ax file from where the CoreAVC installer put it to /usr/share/dshowserver/.


$ sudo add-apt-repository ppa:ripps818/coravc
$ sudo aptitude update
$ sudo aptitude full-upgrade mplayer+ dshowserver+

Nixton
August 23rd, 2010, 12:56 AM
Thanks for your fast response. I added the repository and did the upgrade but I seem to have a problem with wine.


Then it's just a matter of installing CoreAVC via Wine, and copying the CoreAVCDecoder.ax file from where the CoreAVC installer put it to /usr/share/dshowserver/.

root@nixton-1557:/home/nixton/Downloads/mplayer/CoreAVC H264 Video Codec Pro v2.0.0# wine coreavc_professional_edition-setup.exe
wine: created the configuration directory '/root/.wine'
fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33cfd4
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\c omponents\\xpti.dat" 1 536870916 (nil) (nil) 0x1923e4 (nil)
fixme:iphlpapi:NotifyAddrChange (Handle 0xa71e8d8, overlapped 0xa71e8e0): stub
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\c omponents\\compreg.dat" 1 536870916 (nil) (nil) 0x1f2a0fc (nil)
wine: configuration in '/root/.wine' has been updated.
err:ntdll:RtlpWaitForCriticalSection section 0x7bca27e4 "loader.c: loader_section" wait timed out in thread 0029, blocked by 0009, retrying (60 sec)
wine: Critical section 7bca27e4 wait failed at address 0x7bc34fdd (thread 0029), starting debugger...
Unhandled exception: wait failed on critical section 0x7bca27e4
err:seh:raise_exception Unhandled exception code c0000194 flags 0 addr 0x7bc34fdd
Process of pid=0008 has terminated
No process loaded, cannot execute 'echo Modules:'
Cannot get info on module while no process is loaded
No process loaded, cannot execute 'echo Threads:'
process tid prio (all id:s are in hex)
root@nixton-1557:/home/nixton/Downloads/mplayer/CoreAVC H264 Video Codec Pro v2.0.0# 0000000c services.exe
00000024 0
0000000e 0
0000000d 0
00000011 explorer.exe
00000012 0
00000021 winedevice.exe
00000027 0
00000026 0
00000023 0
00000022 0
You must be attached to a process to run this command.
No process loaded, cannot execute 'detach'
^C
This is my first experience with wine (so it was freshly installed on my system). Is there something I have to add to the command or should

wine app.exebe enough?

Greetz

EDIT:
Since you said I only need the .ax file I installed CoreAVC on a virtual machine of Win XP in a VBOX. So I now have the CoreAVCDecoder.ax in /usr/share/dshowserver....but what now??? I am really confused!

ShadowKyuzo
September 30th, 2010, 02:59 AM
Thanks Alan !

It works here too.

My steps:

1. checkout mplayer from svn (or prepare your sources for patching)
2. checkout coreavc-for-linux
3. apply dshowserver.patch to mplayer sources
4. configure mplayer sources
5. make install mplayer
6. Install wine
7. Install coreavc on wine
8. Copy dshowserver.exe to CoreAVC install dir
9. Create a wrapper script to run dshowserver.exe - see code. Name it dshowserver and place in PATH. "Disable" old dshowserver.
10. Configure mplayer - old codecs.conf configuration just works. There are new tips how to workaround fourcc issues in README
11. Enjoy your movies


#!/bin/sh

DSHOWSERVEREXE="c:\\Program Files\\CoreCodec\\CoreAVC Professional Edition\\dshowserver.exe"
wine "${DSHOWSERVEREXE}" "$@"
# if you wish to run dshowserver with elevated priority comment out line above and uncomment line below
# nice -n -5 wine "${DSHOWSERVEREXE}" "$@"


Thanks a lot! it worked!!! With CoreAVC 2.0.0

To anyone out there trying to make it work:
Just do exactly as ogooreck says, skipping step 3 (patch doesnt work anymore and its not needed) and it should run fine.

Now i only need to watch some 1080p movie entirely to see if im gonna experience any problems :P

Mplayer installation instructions:
http://code.google.com/p/coreavc-for-linux/wiki/MplayerInstallation (ignore patch process)

Dshowserver:
http://code.google.com/p/coreavc-for-linux/wiki/DshowserverInstall

hope it helps someone,
cya

trancephorm
October 6th, 2010, 01:57 PM
..Been trying for few days now to setup CoreAVC with Mplayer first in Mint 9.0 which I like a bit more to Ubuntu 10.04.1, but after several unsuccessful attempts, finally decided to go Ubuntu 10.04.1 way, because I found this topic. Sure, I get hunk #1 failed when I try to patch, and then I saw ripps's PPA, but I'm really new to installing software from PPA.

The problem is how can I be sure mplayer is actually installed from PPA? I ask because I see the package name in PPA is mplayer-build, but when I try "sudo apt-get install mplayer-build" it says package cannot be found.

I tried "sudo add-apt-repository ppa:ripps818/coreavc" along with "sudo apt-get update" & "sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com EEB23232"

I also tried to add these lines manually to /etc/apt/sources.list:


deb http://ppa.launchpad.net/ripps818/coreavc/ubuntu lucid main
deb-src http://ppa.launchpad.net/ripps818/coreavc/ubuntu lucid main


Do I really need to type "apt-get install mplayer"? I doubt.

I would really love to dump out Windows from my laptop that serves as a player for 1080p content. So CoreAVC is a must for me because I don't have that fancy new nVidia hardware with vdpau... etc...

With a little bit of help from the community I hope I can make this work :), still I'm wondering why multithreaded mplayer isn't installed by default in the system, that's really the essential thing.

Thanks...

trancephorm
October 6th, 2010, 06:17 PM
Never mind... I solved it... found that post 4-5 posts above... Works! :)
The only problem remaining is that ripps's patched mplayer doesn't support audio filter (-af pan) which is supposed to downmix 5.1 audio channels to stereo, which is needed on my setup.

klepto
October 13th, 2010, 06:39 AM
A very big thank you to whoever is running that repo.
On my little Asus 1000HE 720p video runs smooth as hell.

Bookmarked for posterity.

KisGellert
October 22nd, 2010, 09:24 PM
can i play my ghost in the shell 2.0 DVD with coreavc?

i cant. smplayer dont work as well.

aaa@aaa:~$ mplayer dvd://1 -vc coreserve, -dvd-device /dev/scd0
...
...
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
================================================== ========================
???:confused:

Zorael
October 28th, 2010, 09:09 PM
can i play my ghost in the shell 2.0 DVD with coreavc?

i cant. smplayer dont work as well.
Well, it has to be h264-encoded for CoreAVC to be able to play it...

------------------------------------------------------------

I just installed Maverick on this other computer and thought I'd install CoreAVC, but I must have forgotten some step. I installed it via Wine, copied the .ax file to /usr/lib/dshowserver/, and now the test command works.

$ dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x6c): stub
fixme:thread:SetThreadIdealProcessor (0x70): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete

But when I try to play anything, I get this.

================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
dshowserver --codec CoreAVCDecoder.ax --size 1280x720 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 14732 --id 8a78a7c0 --numpages 10 --port 37550 &
Starting wine dshowserver.exe
Opening device (port is 37550)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x74): stub
fixme:thread:SetThreadIdealProcessor (0x78): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder - http://corecodec.org/)
================================================== ========================
================================================== ========================
EINPROGRESS in connect() - selecting
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
================================================== ========================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Got illegal command 0
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using socket based mutex
Dshowserver Connected to host
A: 0.0 V: 0.0 A-V: 0.030 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0

MPlayer interrupted by signal 13 in module: check_framedrop
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

I don't have any complex .mplayer/config file, so that's not causing it.


$ apt-cache policy mplayer dshowserver
mplayer:
Installed: 3:1.0~rc3+git20101021.4b2f9f6-0ubuntu1~ripps1
dshowserver:
Installed: 0-svn115-0ubuntu2~ripps1

docomo
November 19th, 2010, 09:11 PM
@Nixton;

If you merely want it to Just Work I suggest adding ripp818's ppa. A simple upgrade of the mplayer package and an installation of the dshowserver one should get your mplayer sorted. Then it's just a matter of installing CoreAVC via Wine, and copying the CoreAVCDecoder.ax file from where the CoreAVC installer put it to /usr/share/dshowserver/.


$ sudo add-apt-repository ppa:ripps818/coravc
$ sudo aptitude update
$ sudo aptitude full-upgrade mplayer+ dshowserver+

Thanks, that worked perfectly!

Small correction: It should be:
$ sudo add-apt-repository ppa:ripps818/coreavc

mulat
November 22nd, 2010, 05:53 PM
ppa:ripps818/coreavc working also on Mint Julia :)

GFUnforgiven
December 7th, 2010, 07:19 AM
I installed CoreAVC just fine but there is a single file I can't seem to play anymore. The CRC matches so I'm sure its not broken and I was able to view it (with intense lag) before I installed CoreAVC.



p, li { white-space: pre-wrap; } /usr/bin/mplayer -noquiet -nofs -nomouseinput -vc coreavcwindows -lavdopts threads=4 -sub-fuzziness 1 -identify -slave -vo xv, -ao pulse -nokeepaspect -nodr -double -input nodefault-bindings:conf=/dev/null -stop-xscreensaver -wid 102760803 -monitorpixelaspect 1 -*** -embeddedfonts -***-line-spacing 0 -***-font-scale 1 -***-styles /home/unforgiven/.config/smplayer/styles.*** -fontconfig -font Arial -subfont-autoscale 0 -subfont-osd-scale 20 -subfont-text-scale 20 -subcp enca:en:UTF-8 -vid 0 -aid 0 -subpos 100 -volume 100 -cache 5000 -ss 709 -osdlevel 0 -vf-add screenshot -slices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 01 [013B9B32].mkv

MPlayer UNKNOWN-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Terminal type `unknown' is not defined.

Playing /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 01 [013B9B32].mkv.

Cache fill: 0.00% (0 bytes)

ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=30989
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=31031
ID_CHAPTER_2_END=1192149
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 01
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 01", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
File uses ordered chapters, will build edit timeline.
This file references data from other sources.
Will scan other files in the same directory to find referenced sources.
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 02 [937F2ECC].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=81039
ID_CHAPTER_0_NAME=Opening
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=1191148
ID_CHAPTER_1_NAME=Episode
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=0
ID_CHAPTER_2_END=82040
ID_CHAPTER_2_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 02
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 02", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 03 [63734DEC].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=81039
ID_CHAPTER_0_NAME=Opening
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=1191148
ID_CHAPTER_1_NAME=Episode
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=0
ID_CHAPTER_2_END=82040
ID_CHAPTER_2_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 03
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 03", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 04 [570A5043].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=72406
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=72447
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 04
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 04", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 05 [307C3F38].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=92926
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=92968
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 05
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 05", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 06 [E756D697].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=85210
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=85252
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 06
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 06", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 07 [AF133BE6].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=74992
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=75033
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 07
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 07", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 08 [680AF98E].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=70529
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=70569
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 08
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 08", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 09 [CAC254FC].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=40499
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=40540
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 09
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 09", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 10 [08CEAF12].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=259217
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=259259
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 10
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 10", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=Songs + Signs
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "Songs + Signs", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=English
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "English", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 11 [D9931607].mkv
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=340298
ID_CHAPTER_0_NAME=Prologue
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=81039
ID_CHAPTER_1_NAME=Opening
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=340340
ID_CHAPTER_2_END=1191148
ID_CHAPTER_2_NAME=Episode
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=0
ID_CHAPTER_3_END=82040
ID_CHAPTER_3_NAME=Ending
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East 11
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East 11", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden ED [5C34AABF].mkv
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East ED
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East ED", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=und
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang und
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Match for source 2: /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden ED [5C34AABF].mkv
Checking file /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden OP [8366FFF0].mkv
ID_VIDEO_ID=0
ID_VID_0_NAME=Eden of the East OP
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Eden of the East OP", -vid 0
ID_AUDIO_ID=0
ID_AID_0_NAME=5.1 FLAC
ID_AID_0_LANG=jpn
[mkv] Track ID 2: audio (A_FLAC) "5.1 FLAC", -aid 0, -alang jpn
ID_AUDIO_ID=1
ID_AID_1_NAME=5.1 FLAC
ID_AID_1_LANG=eng
[mkv] Track ID 3: audio (A_FLAC) "5.1 FLAC", -aid 1, -alang eng
ID_SUBTITLE_ID=0
ID_SID_0_NAME=English
ID_SID_0_LANG=eng
[mkv] Track ID 4: subtitles (S_TEXT/***) "English", -sid 0, -slang eng
ID_SUBTITLE_ID=1
ID_SID_1_NAME=Songs + Signs
ID_SID_1_LANG=eng
[mkv] Track ID 5: subtitles (S_TEXT/***) "Songs + Signs", -sid 1, -slang eng
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Match for source 1: /media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden OP [8366FFF0].mkv
ID_FILENAME=/media/server/Complete/[Coalgirls] Higashi no Eden/[Coalgirls] Higashi no Eden 01 [013B9B32].mkv
ID_DEMUXER=mkv
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=fLaC
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=6
ID_START_TIME=0.00
ID_LENGTH=1355.19
ID_SEEKABLE=1
ID_CHAPTERS=4
[***] auto-open
Opening video filter: [screenshot]
================================================== ========================
Forced video codec: coreavcwindows
Opening video decoder: [dshow] DirectShow video codecs


MPlayer interrupted by signal 11 in module: init_video_codec
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.



Anyone can help me out?

ripps818
December 7th, 2010, 06:44 PM
I installed CoreAVC just fine but there is a single file I can't seem to play anymore. The CRC matches so I'm sure its not broken and I was able to view it (with intense lag) before I installed CoreAVC.

Okay, according to your log your using the mplayer built-in coreavcwindows codec. To my knowledge, that only works when your using Windows. I don't think it's ever worked in Linux. This thread is devoted to patching and building a custom mplayer to use a program called dshowserver using the -vc coreserve.
I have a pre-built mplayer with dshowserver patches in my PPA.

Follow the directions at http://launchpad.net/~ripps818/+archive/coreavc

beew
December 9th, 2010, 02:22 AM
Maybe I am doing something wrong, but it seems that coreAVC uses not less, but considerably more CPU cycles because of dshowserver. But thanks ripps818 for the PPA, your version of mplayer does work a lot better than the one in the repository even without coreAVC.

My mplayer configuration file doesn't quite look like the one that was posted earlier in the thread. It looks like this


# Write your default config options here!


[gnome-mplayer]
msglevel=all=5
vo=xv
#vc=coreserve,
ao=alsa

vf=eq2


There are no other vc option except for coreVAC which I have added and then commented out.

P.S. Why is this thread marked outdated while it is still active?

GFUnforgiven
December 9th, 2010, 07:17 PM
Okay, according to your log your using the mplayer built-in coreavcwindows codec. To my knowledge, that only works when your using Windows. I don't think it's ever worked in Linux. This thread is devoted to patching and building a custom mplayer to use a program called dshowserver using the -vc coreserve.
I have a pre-built mplayer with dshowserver patches in my PPA.

Follow the directions at http://launchpad.net/~ripps818/+archive/coreavc (http://launchpad.net/%7Eripps818/+archive/coreavc)

That's strange then, it works with every other file other than this one.

EDIT: Nevermind, I unchecked the "Remember settings for all files" option and it worked. Thanks.

colo505
December 21st, 2010, 10:31 PM
Is CoreAVC superior to VDPAU?

ripps818
December 21st, 2010, 11:07 PM
Is CoreAVC superior to VDPAU?
No, it's not even that much better than the default FFmpeg. It's mostly for people with old/slow computers that don't have access to vaapi/vdpau/xvmc.

okke
January 2nd, 2011, 12:29 AM
Can't seem to be able to change the settings of CoreAVC with
dshowserver -c CoreAVCDecoder.ax --config I'm using the mplayer and dshowserver from https://launchpad.net/~ripps818/+archive/coreavc.

ruegore
January 2nd, 2011, 03:35 AM
First of all, many many thanks to alannisota and Ripps. 720p plays decently well on my netbook and it's all thanks to you guys.

I had been using Ripps' PPA for some time now, but I recently noticed that files which use ordered chapters are now magically working. Thank you very much for this!!

Everything works well except for one thing; I can't figure out how to configure mplayer to downmix multichannel audio down to stereo. Whenever I need to playback a file with multichannel audio, I must play them from VLC, but then I lose the benefits of CoreAVC. :(

I use SMPlayer as my front end, and I make direct edits to my configuration file to get certain things working the way I want them, so I would really appreciate it if someone could explain what I must change in the config file to have mplayer downmix multichannel to stereo. Thank you!

trancephorm
January 2nd, 2011, 11:14 AM
I had the same problem with multichannel audio with some files, but it seems that it healed itself with some ripps mplayer update... be sure that you updated it.

ruegore
January 2nd, 2011, 06:49 PM
You're right! It is working now. Gosh, I wish I noticed that sooner.
Thanks again! :)

okke
January 4th, 2011, 09:06 PM
Anyone else having problems configuring the codec using the ripps repository builds?

ruegore
January 6th, 2011, 05:14 AM
I have no problem with the CoreCodec Configuration window. Seems to work properly with Wine.

What problem are you having?

okke
January 6th, 2011, 02:57 PM
I can't apply the changes I make in the config dialog (apply button is disabled and if just I click OK, it doesn't save the chages).

Jason4108
January 17th, 2011, 04:01 AM
hey ripps I was wondering if it was possible to integrate rvm's Advanced SubStation Alpha (I can't say ".***" lol) mencoder patch (http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches/?pathrev=3495) into your builds. I'm using your builds with coreavc to do transcoding.

Thanks.

ripps818
January 17th, 2011, 05:11 AM
hey ripps I was wondering if it was possible to integrate rvm's Advanced SubStation Alpha (I can't say ".***" lol) mencoder patch (http://smplayer.svn.sourceforge.net/viewvc/smplayer/mplayer-builds/patches/?pathrev=3495) into your builds. I'm using your builds with coreavc to do transcoding.

Thanks.
The mplayer-build git source from Uoti Urpala that I use for my coreavc mplayer packages no longer supports mencoder. It hasn't been in the source since November. If there are still mencoder packages in my ppa, it's because of some old builds that haven't been cleaned out yet.

I'll see what I can do to remove them, but in the mean time, I recommend you get your mencoder package from elsewhere, as my PPA no longer supplies it.

Jason4108
January 17th, 2011, 09:52 AM
The mplayer-build git source from Uoti Urpala that I use for my coreavc mplayer packages no longer supports mencoder. It hasn't been in the source since November. If there are still mencoder packages in my ppa, it's because of some old builds that haven't been cleaned out yet.

I'll see what I can do to remove them, but in the mean time, I recommend you get your mencoder package from elsewhere, as my PPA no longer supplies it.

I got some mencoder builds from your ppa that allowed me to use coreavc with mencoder, if I got mencoder builds from elsewhere wouldn't coreavc not work?

ripps818
January 17th, 2011, 10:00 AM
I got some mencoder builds from your ppa that allowed me to use coreavc with mencoder, if I got mencoder builds from elsewhere wouldn't coreavc not work?

You can't encode with coreavc, only decode. Dshowserver, which allows the use of coreavc, is only designed for playback. And as far as I understand the patches, it's only accessible from the decoding portion of mplayer's code. It doesn't even touch mencoder.

Are you sure it wasn't just falling back to the default ffmpeg encoders?

Coreavc is just an h.264 decoder. Conversely, you need an h.264 encoder to make videos it can playback. FFmpeg and x264 are able to encode h.264 video.

Jason4108
January 17th, 2011, 10:07 AM
You can't encode with coreavc, only decode. Dshowserver, which allows the use of coreavc, is only designed for playback. And as far as I understand the patches, it's only accessible from the decoding portion of mplayer's code. It doesn't even touch mencoder.

Are you sure it wasn't just falling back to the default ffmpeg encoders?

Coreavc is just an h.264 decoder. Conversely, you need an h.264 encoder to make videos it can playback. FFmpeg and x264 are able to encode h.264 video.


[mencoder] INFO 01:09:01.600 Starting mencoder -ss 0 -quiet test.mkv -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_si ze=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate =256:threads=2:keyint=1:vqscale=1:vqmin=2 -spuaa 3 -subcp cp1252 -subfont Arial -subfont-text-scale 3 -subfont-outline 2 -subfont-blur 1 -subpos 98 -aid 1 -sid 0 -quiet -quiet -ofps 24000/1001 -quiet -quiet -vc coreserve -lavdopts fast -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1295255341545
[mencoder] INFO 01:09:01.615 Reading pipe: /tmp/javaps3media/mencoder1295255341545
[mencoder] DEBUG 01:09:01.615 Opening file /tmp/javaps3media/mencoder1295255341545 for reading...
[mencoder] INFO 01:09:01.820 Attaching thread: mencoder
[Thread-34] DEBUG 01:09:01.821 MEncoder UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team
[Thread-34] DEBUG 01:09:01.821 success: format: 0 data: 0x0 - 0xe52c3905
[Thread-34] DEBUG 01:09:01.821 [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[Thread-34] DEBUG 01:09:01.821 [mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[Thread-34] DEBUG 01:09:01.821 [mkv] Track ID 3: audio (A_AAC), -aid 1, -alang jpn
[Thread-34] DEBUG 01:09:01.821 [mkv] Track ID 4: subtitles (S_TEXT/***), -sid 0, -slang eng
[Thread-34] DEBUG 01:09:01.821 [mkv] Will play video track 1.
[Thread-34] DEBUG 01:09:01.821 Matroska file format detected.
[Thread-34] DEBUG 01:09:01.821 VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[Thread-34] DEBUG 01:09:01.822 [V] filefmt:31 fourcc:0x31637661 size:1920x1080 fps:23.976 ftime:=0.0417
[Thread-34] DEBUG 01:09:01.822 ================================================== ========================
[Thread-34] DEBUG 01:09:01.822 Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
[Thread-34] DEBUG 01:09:01.822 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
[Thread-34] DEBUG 01:09:01.822 Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
[Thread-34] DEBUG 01:09:01.822 ================================================== ========================
[Thread-34] DEBUG 01:09:01.822 PACKET SIZE: 2048 bytes, deltascr: 884
[Thread-34] DEBUG 01:09:01.822 Opening video filter: [expand osd=1]
[Thread-34] DEBUG 01:09:01.822 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
[Thread-34] DEBUG 01:09:01.822 ================================================== ========================
[Thread-34] DEBUG 01:09:01.822 Forced video codec: coreserve
[Thread-34] DEBUG 01:09:01.822 Opening video decoder: [dshowserver] DirectShowServer video codecs
[Thread-34] DEBUG 01:09:01.822 [PP] Using codec's postprocessing, max q = 4.
[Thread-34] DEBUG 01:09:01.822 Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[Thread-34] DEBUG 01:09:01.822 videocodec: libavcodec (1920x1080 fourcc=3267706d [mpg2])
[Thread-34] DEBUG 01:09:01.822 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
[Thread-34] DEBUG 01:09:01.822 Starting wine dshowserver.exe
[Timer-3] DEBUG 01:09:01.829 Buffered Space: 0 bytes / inputs: 0
[Thread-31] DEBUG 01:09:01.905 fixme:thread:SetThreadIdealProcessor (0x60): stub
[Thread-31] DEBUG 01:09:01.905 fixme:thread:SetThreadIdealProcessor (0x64): stub
[Thread-34] DEBUG 01:09:01.913 dshowserver --codec CoreAVCDecoder.ax --size 1920x1080 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 13953 --id d3850740 --numpages 10 --port 18105 &
[Thread-34] DEBUG 01:09:01.914 Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder - http://corecodec.org/)
[Thread-34] DEBUG 01:09:01.914 ================================================== ========================
[Thread-31] DEBUG 01:09:01.915 [ac3 @ 0xb5d6e0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[Thread-31] DEBUG 01:09:01.915 Limiting audio preload to 0.4s.
[Thread-31] DEBUG 01:09:01.915 Increasing audio density to 4.
[Thread-34] DEBUG 01:09:02.286 Writing header...
[Timer-3] DEBUG 01:09:03.829 Buffered Space: 657408 bytes / inputs: 0
[Timer-3] DEBUG 01:09:05.829 Buffered Space: 4012032 bytes / inputs: 0
[New I/O server worker #1-1] DEBUG 01:09:07.700 Suspend Read: readCount=0 / writeCount=8292352
[Timer-3] DEBUG 01:09:07.830 Buffered Space: 8486912 bytes / inputs: 1
[Timer-3] DEBUG 01:09:09.829 Buffered Space: 12457984 bytes / inputs: 1
[New I/O server worker #1-1] DEBUG 01:09:10.201 Resume Read: readCount=0 / writeCount=12922880
[New I/O server worker #1-1] DEBUG 01:09:10.206 Sent to socket: Accept-Ranges: bytes
[New I/O server worker #1-1] DEBUG 01:09:10.206 Sent to socket: Connection: keep-alive
[New I/O server worker #1-1] DEBUG 01:09:10.206 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-1] DEBUG 01:09:10.206 Sent to socket: Server: Linux-amd64-2.6.32-26-generic, UPnP/1.0, PMS/1.20.414-SB11
[New I/O server worker #1-1] DEBUG 01:09:10.587 Suspend Read: readCount=12599296 / writeCount=13598720
[New I/O server worker #1-1] DEBUG 01:09:11.088 Resume Read: readCount=12599296 / writeCount=14864384
[New I/O server worker #1-1] DEBUG 01:09:11.111 Suspend Read: readCount=13869056 / writeCount=14864384
[New I/O server worker #1-1] DEBUG 01:09:11.611 Resume Read: readCount=13869056 / writeCount=16906240
[New I/O server worker #1-1] DEBUG 01:09:11.695 Suspend Read: readCount=16146432 / writeCount=17145856
[Timer-3] DEBUG 01:09:11.830 Buffered Space: 1720320 bytes / inputs: 1
[New I/O server worker #1-1] DEBUG 01:09:12.195 Resume Read: readCount=16146432 / writeCount=19187712
[Timer-3] DEBUG 01:09:13.829 Buffered Space: 7321599 bytes / inputs: 1
[Timer-3] DEBUG 01:09:15.829 Buffered Space: 10831871 bytes / inputs: 1
[Timer-3] DEBUG 01:09:17.829 Buffered Space: 11395071 bytes / inputs: 1
[Thread-10] DEBUG 01:09:18.252 Receiving a M-SEARCH from [192.168.10.198:4491]
[Thread-10] DEBUG 01:09:18.253 Sending this reply [192.168.10.198:4491]: HTTP/1.1 200 OK<CRLF>CACHE-CONTROL: max-age=1200<CRLF>DATE: Mon, 17 Jan 2011 09:09:18 GMT<CRLF>LOCATION: http://192.168.10.182:5001/description/fetch<CRLF>SERVER: Linux-amd64-2.6.32-26-generic, UPnP/1.0, PMS/1.20.414-SB11<CRLF>ST: upnp:rootdevice<CRLF>EXT: <CRLF>USN: uuid:46d00021-c173-3e60-8baf-2c35da39de03::upnp:rootdevice<CRLF>Content-Length: 0<CRLF><CRLF>
[Thread-10] DEBUG 01:09:18.253 Receiving a M-SEARCH from [192.168.10.198:4491]
[Thread-10] DEBUG 01:09:18.253 Sending this reply [192.168.10.198:4491]: HTTP/1.1 200 OK<CRLF>CACHE-CONTROL: max-age=1200<CRLF>DATE: Mon, 17 Jan 2011 09:09:18 GMT<CRLF>LOCATION: http://192.168.10.182:5001/description/fetch<CRLF>SERVER: Linux-amd64-2.6.32-26-generic, UPnP/1.0, PMS/1.20.414-SB11<CRLF>ST: upnp:rootdevice<CRLF>EXT: <CRLF>USN: uuid:46d00021-c173-3e60-8baf-2c35da39de03::upnp:rootdevice<CRLF>Content-Length: 0<CRLF><CRLF>
[Timer-3] DEBUG 01:09:19.829 Buffered Space: 9359359 bytes / inputs: 1
[Timer-3] DEBUG 01:09:21.829 Buffered Space: 7485439 bytes / inputs: 1
[Thread-32] DEBUG 01:09:23.198 freeMemory: 46441672
[Thread-32] DEBUG 01:09:23.198 totalMemory: 122224640
[Thread-32] DEBUG 01:09:23.198 maxMemory: 715849728
[Thread-32] DEBUG 01:09:23.198 Extending buffer to 419430400
[Timer-3] DEBUG 01:09:23.829 Buffered Space: 8220671 bytes / inputs: 1
[Thread-32] DEBUG 01:09:23.834 Done extending
[Timer-3] DEBUG 01:09:25.829 Buffered Space: 12062719 bytes / inputs: 1
[Timer-3] DEBUG 01:09:27.829 Buffered Space: 16089087 bytes / inputs: 1


I'm transcoding, so its using coreavc for the decoding them encoding with some other codec

ripps818
January 17th, 2011, 10:14 AM
Now, I'm not entirely familiar with mencoder, but that does indeed look like it's using it to encode. This is news to me because I've never heard of anybody using it to encode on linux.

Regardless, it wasn't my decision to remove mencoder from mplayer-build.git. So, I can't really fix that. Besides, does encoding using coreavc carry any benefit over x264/ffmpeg?

EDIT:
just read your transcoding edit. Okay, so if that's the case than it doesn't really matter too much. Coreavc/ffmpeg give the same output, coreavc just does it a little bit faster. Using ffmpeg for the decoding portion over coreavc shouldn't change the quality of the transcode, as far as I understand it.

Jason4108
January 17th, 2011, 10:24 AM
oops duplicate post, the forums are super lagging for me right now, sorry about that.

Jason4108
January 17th, 2011, 10:25 AM
Are you sure I'm using coreavc for encoding? from my understanding mencoder must decode the input before encoding.

the server I'm using is a dual core so transcoding HD content can sometimes be a little more then the server can handle and it seems like decoding with coreavc is a little quicker.

can you please not remove the old mencoder builds form your repository? I'll try some other mencoder builds to see if there was much of a performance difference, but I may want to go back to your builds.

ripps818
January 17th, 2011, 10:44 AM
Are you sure I'm using coreavc for encoding? from my understanding mencoder must decode the input before encoding.

the server I'm using is a dual core so transcoding HD content can sometimes be a little more then the server can handle and it seems like decoding with coreavc is a little quicker.

can you please not remove the old mencoder builds form your repository? I'll try some other mencoder builds to see if there was much of a performance difference, but I may want to go back to your builds.

Sorry, I already flagged the packages for deletion. You can protest to Uroti, but I don't think he wanted to have to deal with it anymore.

If you really want to use coreavc with mencoder, I recommend that you try and compile your own version. The patches should be available from the coreavc-for-linux's svn repository.

Jason4108
January 17th, 2011, 10:48 AM
aww :( ok I'll try to follow one of the compile guides, I've had bad luck with compiling myself before haha, thanks anyway

bazil.xxl
January 29th, 2011, 01:43 AM
Hi,
I just install mplayer and dshowserver from https://launchpad.net/~ripps818/+archive/coreavc (https://launchpad.net/%7Eripps818/+archive/coreavc)

I install and copy CoreAVCDecoder.ax to /usr/share/dshowserver.

Tests past (dshowserver -c CoreAVCDecoder.ax):


Starting wine dshowserver.exe
No id specified, assuming test mode
Using default width for CoreAVCDecoder.ax: 1280
Using default height for CoreAVCDecoder.ax: 720
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Using default outfmt for CoreAVCDecoder.ax: 0x30323449
Using default outbit for CoreAVCDecoder.ax: 12
Using default GUID for CoreAVCDecoder.ax: 09571a4b-f1fe-4c60-9760de6d310c7c31
Opening device (port is 0)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x5c): stub
fixme:thread:SetThreadIdealProcessor (0x60): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
But when I try play some video with mplayer -vc coreserve I got this error:

MPlayer interrupted by signal 13 in module: uninit_vcodecHere is mplayer output:


MPlayer UNKNOWN-4.4.5 (C) 2000-2011 MPlayer Team
161 audio & 352 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

XXXXXXXXXXXXXXXXXXXXXX.1080p.Bluray.CZ.EN.x264-CBGB.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Track ID 3: audio (A_AC3), -aid 1, -alang cze
[mkv] Track ID 4: subtitles (S_TEXT/UTF8), -sid 0, -slang cze
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang slo
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x816 24bpp 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
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO: [gl] 1920x816 => 1920x816 Planar YV12
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
dshowserver --codec CoreAVCDecoder.ax --size 1920x816 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 16267 --id fc8e97a0 --numpages 10 --port 36296 &
Starting wine dshowserver.exe
Opening device (port is 36296)
len: 992
ProductVersion: 2.0.0
fixme:thread:SetThreadIdealProcessor (0x6c): stub
fixme:thread:SetThreadIdealProcessor (0x70): stub
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/)
EINPROGRESS in connect() - selecting
================================================== ========================
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
================================================== ========================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Got illegal command 0
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
Using socket based mutex
Dshowserver Connected to host
A: 0.0 V: 0.0 A-V: 0.004 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0


MPlayer interrupted by signal 13 in module: check_framedrop
A: 0.0 V: 0.0 A-V: 0.004 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0


MPlayer interrupted by signal 13 in module: uninit_vcodec
Pls can you help me?

comrobo
February 9th, 2011, 08:57 PM
i have the same issue, mplayer worked fine with coreavc a few weeks ago but now crashes and show this log:




p, li { white-space: pre-wrap; } /usr/bin/mplayer -noquiet -nofs -nomouseinput -vc coreserve, -sub-fuzziness 1 -identify -slave -vo xv -ao alsa -nokeepaspect -framedrop -nodr -double -input nodefault-bindings:conf=/dev/null -stop-xscreensaver -wid 73400667 -monitorpixelaspect 1 -*** -embeddedfonts -***-line-spacing 0 -***-font-scale 1 -***-styles /home/jo7/.config/smplayer/styles.*** -fontconfig -font Ubuntu -subfont-autoscale 0 -subfont-osd-scale 20 -subfont-text-scale 20 -subcp ISO-8859-1 -subpos 100 -volume 100 -nocache -osdlevel 0 -vf-add screenshot -slices -channels 2 -af scaletempo -softvol -softvol-max 200 /home/jo7/Videos/Cinnamon Chasers - Two hours time (Official Music Video) Rel.mp4

MPlayer UNKNOWN-4.4.5 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Terminal type `unknown' is not defined.

Playing /home/jo7/Videos/Cinnamon Chasers - Two hours time (Official Music Video) Rel.mp4.
Detected file format: QuickTime/MPEG-4/Motion JPEG 2000 format (libavformat)
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=und
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [avc1] 1920x1080 24bpp 25.000 fps 2401.3 kbps (293.1 kbyte/s)
Clip info:
major_brand: mp42
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=mp42
minor_version: 0
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=0
compatible_brands: isommp42
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isommp42
creation_time: 2010-10-26 21:25:49
ID_CLIP_INFO_NAME3=creation_time
ID_CLIP_INFO_VALUE3=2010-10-26 21:25:49
ID_CLIP_INFO_N=4
ID_FILENAME=/home/jo7/Videos/Cinnamon Chasers - Two hours time (Official Music Video) Rel.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=2401312
ID_VIDEO_WIDTH=1920
ID_VIDEO_HEIGHT=1080
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=128008
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=244.64
ID_SEEKABLE=1
ID_CHAPTERS=0
[***] auto-open
Opening video filter: [screenshot]
================================================== ========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x887ec80]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 1920x1080 => 1920x1080 Planar YV12
Starting wine dshowserver.exe
fixme:thread:SetThreadIdealProcessor (0x64): stub
fixme:thread:SetThreadIdealProcessor (0x68): stub
dshowserver --codec CoreAVCDecoder.ax --size 1920x1080 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 3611 --id b77c3730 --numpages 10 --port 9897 &
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder - http://corecodec.org/)
================================================== ========================
ID_VIDEO_CODEC=coreserve
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16001->176400)
ID_AUDIO_BITRATE=128008
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffaac
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Opening device (port is 9897)

len: 992

ProductVersion: 2.0.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

Using socket based mutex

Dshowserver Connected to host

EINPROGRESS in connect() - selecting

Got illegal command 0




MPlayer interrupted by signal 13 in module: check_framedrop
ID_SIGNAL=13



MPlayer interrupted by signal 13 in module: uninit_vcodec
Destroying filterID_SIGNAL=13

penn919
March 24th, 2011, 08:09 AM
hmm, well looks like I might as well post mine here as well...

I've recently found out about a way to use Core AVC inside ubuntu and followed the following guides to get it up and running:

http://code.google.com/p/coreavc-for-linux/wiki/DshowserverInstall

http://code.google.com/p/coreavc-for-linux/wiki/MplayerInstallation

There were a few peculiarities during the installation process, but I personally thought I got it right based on the rough similarities between what was described in the step-by-step guide and what I was seeing on my screen, but I guess I must of gone wrong somewhere. Hopefully someone here can help me sort it out.

As of now whenever I attempt to play a video using this:


mplayer -vc coreserve /media/7E04971F0496D98B/striped/"Crysis 2 The Wall Trailer (1080p).mp4"

I get this:


Warning unknown option vo_driver at line 2
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /media/7E04971F0496D98B/striped/Crysis 2 The Wall Trailer (1080p).mp4.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
[lavf] Video stream found, -vid 1
VIDEO: [avc1] 1920x1080 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
================================================== ========================
Forced video codec: coreserve
Cannot find codec matching selected -vo and video format 0x31637661.
Read DOCS/HTML/en/codecs.html!
================================================== ========================
================================================== ========================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 126.6 (02:06.5) of 126.9 (02:06.9) 2.1%

Exiting... (End of file)
penn@ubuntu:~$

I was able to hear the audio, but I didn't get any video at all. The codec of the video file is H.264 / AVC, so it should be supported by coreavc right? Any ideas on what I could've possibly done wrong?

I really hope I can get this resolved because it'd be great if I could successfully use my core avc license in ubuntu because WMP 12 seems to do just fine playing just about any HD video format in windows 7...definitely can't say the same about any player in linux, so hopefully this can work somehow.

comrobo
March 25th, 2011, 11:14 PM
penn919 (http://ubuntuforums.org/member.php?u=1240405) This happened to me too, and I realized that:

if you look the video properties with mediainfo in the video section shows:

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
......etc



Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
......etc


and the videos with ID=1 coreserve works but with ID=2 only audio.
I recodec video with ID=2 with avidemux and H.264 / AVC (the same codec .mp4 format) and the ID turn to ID=1 and now coreserve display video and audio.

this is very strange because i had ubuntu 10.10 and coreserve works with any video and any ID (later i had the problem mencioned in my last post)

so, now i have ubuntu 11.04 and happens the ID issue.(maybe is ID there are many other parameters in video properties but i just but only noticed that)


sorry my English
Greetings
JO

penn919
March 26th, 2011, 03:50 AM
penn919 (http://ubuntuforums.org/member.php?u=1240405) This happened to me too, and I realized that:

if you look the video properties with mediainfo in the video section shows:

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
......etc



Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
......etc


and the videos with ID=1 coreserve works but with ID=2 only audio.
I recodec video with ID=2 with avidemux and H.264 / AVC (the same codec .mp4 format) and the ID turn to ID=1 and now coreserve display video and audio.

this is very strange because i had ubuntu 10.10 and coreserve works with any video and any ID (later i had the problem mencioned in my last post)

so, now i have ubuntu 11.04 and happens the ID issue.(maybe is ID there are many other parameters in video properties but i just but only noticed that)


sorry my English
Greetings
JO

I looked in my video properties, but I didn't see that info. This is all that I see:

https://lh6.googleusercontent.com/_0oR-59-USHo/TY1TOdtj1oI/AAAAAAAAMqM/x-7dKJJ-cds/s800/mp4-video.jpg

Were you using a special program?

comrobo
March 27th, 2011, 03:33 PM
Mediainfo
http://mediainfo.sourceforge.net/en

here is their repository ( is available to 10.10)

https://launchpad.net/~shiki/+archive/mediainfo (https://launchpad.net/%7Eshiki/+archive/mediainfo)

Greetings.

PD: i use the windows version under wine (came with the pack necesary to run subtitle workshop), the ubuntu version is a little different,
so you must go to the "view" tab and change to txt (or html, I don't remember) view to have the same display that I showed in my last post.

runesvend
May 1st, 2011, 07:53 PM
Hey all

Just upgraded to the current mplayer version in the PPA (3:2.0+git20110422.5079c04-0ubuntu1~ripps1) and now exiting fullscreen mode doesn't work by pressing the 'f' key.
When I have "fs=true" specified in my .mplayer/config, exiting fullscreen mode doesn't work, but if I comment out that line in my config, then mplayer starts in windowed (non-fullscreen) mode and toggling fullscreen mode on and off works fine.

Any ideas what could be wrong? The following message appears on the console every time I press 'f' when in fullscreen mode (or so it I think, since I can't actually see the terminal window when mplayer is playing video in fullscreen mode, but the more I press the 'f' key the more of these messages are present in the terminal when I exit mplayer):


[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 2.6 0/ 0 10% 32% 0.0% 0 0


EDIT: Here's the full output of mplayer:


rune@runescomp:~$ mplayer '/media/thesafe/Video/Test Samples/Basketball 60fps 1080p 5000kbps.mkv'
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /media/thesafe/Video/Test Samples/Basketball 60fps 1080p 5000kbps.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Will play video track 1.
Detected file format: Matroska
VIDEO: [avc1] 1920x1088 24bpp 59.940 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in /media/thesafe/Video/Test Samples/
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[***] auto-open
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Asking decoder to use 4 threads if supported.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
================================================== ========================
Audio: no sound
Starting playback...
V: 0.0 0/ 0 ??% ??% ??,?% 0 0
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1088 => 1920x1088 Planar YV12 [fs]
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 0.9 0/ 0 15% 34% 0.0% 0 0
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 1.4 0/ 0 16% 33% 0.0% 0 0
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 1.5 0/ 0 16% 32% 0.0% 0 0
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V: 2.0 0/ 0 13% 33% 0.0% 0 0

Exiting... (Quit)


And my config file is now attached

jsevi83
May 7th, 2011, 12:27 PM
The latest build of mplayer2 is not working with gnome-mplayer. This is what I get in the terminal:

ERROR: Unknown profile 'gnome-m'.

So it looks like a profile parsing error, notice how it looks chopped. This was not happening with svn20110422

ripps818
May 7th, 2011, 04:17 PM
The latest build of mplayer2 is not working with gnome-mplayer. This is what I get in the terminal:

ERROR: Unknown profile 'gnome-m'.

So it looks like a profile parsing error, notice how it looks chopped. This was not happening with svn20110422

I noticed it too, it can easily be fixed by shortening the profiles name. But you should file a bug at mplayer2's bug tracker http://devel.mplayer2.org/wiki/Bugs

sysabod
May 24th, 2011, 10:28 AM
Install zlib1g-dev.
thanks, it really helps !

kamitsukai
June 16th, 2011, 03:12 PM
Hi I'm on debian testing and I'm tying to patch the makefile but I get this error


patch -p0 < /home/carl/mplayer-with-coreavc/coreavc-for-linux/mplayer/dshowserver.patch
patching file libmpcodecs/vd.c
Hunk #1 succeeded at 40 (offset -3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset -3 lines).
patching file Makefile
Hunk #1 succeeded at 20 with fuzz 2.
Hunk #2 FAILED at 530.
Hunk #3 FAILED at 909.
2 out of 3 hunks FAILED -- saving rejects to file Makefile.rej
patching file libmpcodecs/vd_dshowserver.c
patching file libmpcodecs/timeout_sem.c
patching file libmpcodecs/timeout_sem.h


there's a bug report for it and a fix but it's just that I don't understand what the guys on about:( so if someone could elaborate on what I need to do? please:KS


Ok guys, I succeed patching makefile and vd.c files by myself by hand.
As said, the new revision change makefile command.
the patch want to place " libmpcodecs/vd_dshowserver.c \"
before " $(SRCS_COMMON-yes)"
In the new file, It might be place at the 526. You all can do it by yourselves.
And in the new /libmpcodecs/vd.c file, the ligne to add after
" extern const vd_functions_t mpcodecs_vd_dshow;" is
" extern const vd_functions_t mpcodecs_vd_dshowserver;", where the patch wanted to add "extern vd_functions_t mpcodecs_vd_dshowserver;" which is now a wrong call.
Hoping all that can help you all, even to make a new correct dshowserver.patch

http://code.google.com/p/coreavc-for-linux/issues/detail?id=110

beew
June 16th, 2011, 07:13 PM
I don't use coreavc, but just want to say Ripps' build of mplayer is superb. Works much better than other versions including the one put out by the MOTU team (actually that one doesn't even work with VDPAU in Natty) Wonder what your secrete is. :)

Thank you for the great work!


As for coreavc I don't think it really improve anything even on Computers without vdpau. Whatever cpu gain in mplayer is more than offset by running dshowserver in WINE, so in the end cpu usage is actually higher. I have tested it briefly on a few older PCs and decided that it wouldn't really worth the troubles.

ripps818
June 16th, 2011, 11:37 PM
I don't use coreavc, but just want to say Ripps' build of mplayer is superb. Works much better than other versions including the one put out by the MOTU team (actually that one doesn't even work with VDPAU in Natty) Wonder what your secrete is. :)

Thank you for the great work!


As for coreavc I don't think it really improve anything even on Computers without vdpau. Whatever cpu gain in mplayer is more than offset by running dshowserver in WINE, so in the end cpu usage is actually higher. I have tested it briefly on a few older PCs and decided that it wouldn't really worth the troubles.

The secret is that it's mplayer2, Uoti Urpala's fork of mplayer.

I've tweaked the dshowserver patches over time to keep working, but I don't think I'll take the time to fix them if they fail to patch in the future. The h.264 codec is just as good, if not better than the CoreAVC now. There's not much reason to continue keeping these builds working, especially since the Coreavc-for-Linux project seems dead now.

beew
June 17th, 2011, 05:50 AM
The h.264 codec is just as good, if not better than the CoreAVC now. There's not much reason to continue keeping these builds working, especially since the Coreavc-for-Linux project seems dead now.

I figured. Terminate the coreavc support by all means, but please keep the mplayer2 builds coming. Thanks again. :)

rdantas
January 22nd, 2012, 04:10 AM
Hi,

I'm a newbie in ubuntu. Every time I type


cd dshowserver
make
sudo cp dshowserver registercodec /usr/local/binI get the following error:


/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i686-linux-gnu-gcc failed
make: ** [dshowserver] Erro 2
Can anyone help me?
Thanks.

dmt0
January 22nd, 2012, 11:38 PM
Hi,

I'm a newbie in ubuntu. Every time I type


cd dshowserver
make
sudo cp dshowserver registercodec /usr/local/binI get the following error:


/usr/bin/ld: cannot find -lwine
collect2: ld returned 1 exit status
winegcc: i686-linux-gnu-gcc failed
make: ** [dshowserver] Erro 2
Can anyone help me?
Thanks.


Do this:
sudo apt-get install wine

c-m
February 8th, 2012, 05:52 PM
So what is the best way to go for a netbook - Dell Mini9 or Aspire One?

Most of my content (on the server) is 720p - the netbook really struggles with files in the MKV format. Isn't coreavc meant to be the fastest the decoder out there?

c-m
February 8th, 2012, 10:09 PM
Confused as to which guide i should be installing. I want a full gui

This guide below seems simple, but there's no gui:
https://launchpad.net/~ripps818/+archive/coreavc

andrew.46
February 8th, 2012, 10:31 PM
I want a full gui

Try installing a frontend such as SMPlayer or UMPlayer.

c-m
February 8th, 2012, 10:37 PM
Try installing a frontend such as SMPlayer or UMPlayer.

To work with coreavc?

c-m
February 9th, 2012, 09:56 PM
Does this mean that mplayer used coreavc?

Either way it was far too slow. I don't understand why. A netbook should be capable of playing 720p video.



Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using codec's postprocessing, max q = 4.
Movie-Aspect is 1.84:1 - prescaling to correct movie aspect.
VO: [xv] 1280x696 => 1280x696 Planar YV12
Colorspace details not fully supported by selected vo.
dshowserver --codec CoreAVCDecoder.ax --size 1280x696 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 7877 --id b77609a0 --numpages 10 --port 24528 &
Starting wine dshowserver.exe
Opening device (port is 24528)
len: 996
ProductVersion: 2.5.5
fixme:thread:SetThreadIdealProcessor (0x70): stub
fixme:thread:SetThreadIdealProcessor (0x74): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x61ef3c,0x00000000), stub!
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder - http://corecodec.org/)
================================================== ========================
================================================== ========================
EINPROGRESS in connect() - selecting
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
================================================== ========================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 0.1 V: 0.1 A-V: 0.024 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.042000 < 0.125000
A: 0.3 V: 0.1 A-V: 0.174 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
Decreasing video pts: 0.083000 < 0.125000
A: 5.4 V: 2.0 A-V: 3.379 ct: 0.003 0/ 0 84% 19% 162.1% 50 0


************************************************
**** Your system is too SLOW to play this! ****
************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

Seek now V: 73.4 A-V: -0.014 ct: 0.004 0/ 0 31% 10% 37.7% 1165 0
Seek now V: 86.2 A-V: 0.121 ct: 0.002 0/ 0 53% 11% 23.5% 2 0
Seek now V: 100.9 A-V: 1.414 ct: 0.004 0/ 0 38% 16% 182.2% 24 0
Seek now V: 118.0 A-V: 0.224 ct: 0.002 0/ 0 ??% ??% ??,?% 1 0
Seek now V: 128.5 A-V: 0.349 ct: 0.002 0/ 0 ??% ??% ??,?% 4 0
Seek now V: 149.0 A-V: 0.263 ct: 0.003 0/ 0 30% 15% 57.0% 18 0
Seek now V: 161.5 A-V: 0.116 ct: 0.002 0/ 0 37% 14% 78.4% 13 0
A: 192.5 V: 185.3 A-V: 7.255 ct: 0.005 0/ 0 30% 17% 315.9% 86 0
[***] PlayResX undefined, setting to 384
Destroying filter A-V: 33.387 ct: 0.004 0/ 0 29% 17% 203.8% 578 0

Exiting... (Quit)

ripps818
February 13th, 2012, 05:01 AM
According to what I see, you were indeed using CoreAVC. But coreavc is slower than standard libav or ffmpeg these days anyway, so I don't see the point. The only reason it might be faster on Windows is because it can use CUDA on nvidia cards (maybe OpenCL too) for decoding.

In fact, I would assume that no netbook should be able to decode 720p, the CPU just isn't designed for that. And if it's advertised as saying it can, then it must be using some form of Graphics hardware decoding such as with Nvidia VDPAU or Intel VA-API. If the netbook doesn't support either of those options, than it was probably some other hardware decoding that isn't available to Linux that I know of.

If you want to coax a few more cpu cycles in mplayer, make sure to be using these flags:

-lavdopts fast:skiploopfilter=all

Also, depending on you graphics card and drivers, different video outputs may be faster. Try using:

-vo xv
-vo gl:yuv2
-vo gl:yuv=2:ati-hack:force-pbo -dr
-vo gl2

c-m
February 18th, 2012, 06:33 PM
According to what I see, you were indeed using CoreAVC. But coreavc is slower than standard libav or ffmpeg these days anyway, so I don't see the point.


I'm not sure about that, playback, although still slow, is faster when using mplayer with coreavc for me than with whatever mplayer uses as default.

When i first had my aspire one, there where plenty of youtube videos and reviews where people had enjoyed success playing 720p videos in windows with coreavc.

I'm going to buy a broadcom crystal HD card anyway, so this is just for fun.

footspa
March 9th, 2012, 07:30 AM
An update of Mplayer2 was made available today so I proceeded to do that. Now Mplayer won't play any kind of files.

After re-installing Mplayer2 I get the error message "Mplayer interrupted by signal 4 in module: demux_open". Initially I got the error message "Mplayer interrupted by signal 4 in module: init_video_code".

ripps818
March 9th, 2012, 08:10 AM
An update of Mplayer2 was made available today so I proceeded to do that. Now Mplayer won't play any kind of files.

After re-installing Mplayer2 I get the error message "Mplayer interrupted by signal 4 in module: demux_open". Initially I got the error message "Mplayer interrupted by signal 4 in module: init_video_code".

The mplayer2 packages I have in my coreavc-for-ubuntu PPA seem to work fine here in 12.04 beta. All my h.264 videos work using vdpau,xv,gl. Just using the built-in libav codecs to decode the video.

From the looks of the error it's having trouble finding a codec or demuxer for the video your trying to play. Can you give me more details about your mplayer and what files your trying to play? Where are you installing your mplayer2 from? What version of Ubuntu are you using?

If this is a CoreAVC problem, I can't help you. The coreavc-for-linux project is dead and I've been doing my best to keep the patches working despite that. But I'm not a programmer and I can't fix it if stops working.

Also, it would probably be wise to contact the mplayer2 developer, uau, at #mplayer2 on irc.ubuntu.com.

imsety
March 23rd, 2012, 01:56 AM
Hi, I just tried to install mplayer from the PPA but I got the following error:


sudo apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mplayer : Depends: mplayer2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Any idea what the problem might be?

Zorael
March 23rd, 2012, 12:14 PM
sudo apt-get install mplayer

[...]

The following packages have unmet dependencies:
mplayer : Depends: mplayer2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I think ripps has been packaging mplayer2 for some time now and some way along the road renamed the package to reflect this. Just install mplayer2 (apt://mplayer2) instead.

This is a good example of where apt-get falls short while aptitude might have done the trick. When dependency errors show up aptitude will try to offer solutions (eg. "don't install mplayer, install mplayer2 instead"), often several such, whereas apt-get merely concludes it's an unresolvable dependency and exits with errors. On the other hand, apt-get seems to be better at keeping track of automatically installed packages and tags them for removal when they're no longer needed (when using autoremove).

So when you get errors like this, you may want to try the same command but with aptitude. Add the argument -P to force it to always ask for confirmation before proceeding. Do note that apt-get autoremove won't work well on removing automatically installed packages it didn't install itself, so extensively mixing the use of the two is not a good idea over time.

The aptitude in 12.04 is broken on multiarch platforms (like amd64) and basically only works when installing packages, else I normally recommend the use of aptitude for everything besides updating package lists. It still works fine in 11.10 though, so feel free.

-----

As always, huge thanks to you for packaging this, ripps181.

ShareBuntu
March 25th, 2012, 02:31 PM
Any idea whether mplayer2 + CoreAVC 3.0.1 work together using the CoreAVC-for-Ubuntu method? It doesn't work for me. I've got the rvn PPA enabled for SMPlayer as well as the ripps818 one, so I'm not sure if there's a conflict.

All installs fine, there just isn't any mention of CoreAVC in the SMPlayer logs.

ripps818
March 25th, 2012, 05:25 PM
Any idea whether mplayer2 + CoreAVC 3.0.1 work together using the CoreAVC-for-Ubuntu method? It doesn't work for me. I've got the rvn PPA enabled for SMPlayer as well as the ripps818 one, so I'm not sure if there's a conflict.

All installs fine, there just isn't any mention of CoreAVC in the SMPlayer logs.

It'll probably never work. Dshowserver was made by the Coreavc-for-LInux project, and they're dead now. It would probably have to be rewritten to make it compatible, but I'm not a programmer, so unless you or someone you know wants to take up a challenge, don't expect it to ever get fixed.

ShareBuntu
March 25th, 2012, 05:35 PM
It'll probably never work. Dshowserver was made by the Coreavc-for-LInux project, and they're dead now. It would probably have to be rewritten to make it compatible, but I'm not a programmer, so unless you or someone you know wants to take up a challenge, don't expect it to ever get fixed.

Well that's interesting news. What's the current state of affairs for video playback on Linux? Should I just stick with mplayer2 from your repository? Is there a configuration optimization guide out there somewhere?

ripps818
March 25th, 2012, 06:21 PM
Well that's interesting news. What's the current state of affairs for video playback on Linux? Should I just stick with mplayer2 from your repository? Is there a configuration optimization guide out there somewhere?

mplayer2 with it's static libav (used to be ffmpeg) is pretty good these days, I've been wanting to try some unstable optimizations. It might grab another 1-2% improvement on video decoding, but it could also make it crash on some hardware.

As for settings, always add "-lavdopts fast=1:skiploopfilter=all" for general speedup.