chenyunecjtu / coreavc-for-linux

Automatically exported from code.google.com/p/coreavc-for-linux
GNU General Public License v2.0
0 stars 1 forks source link

Cannot find codec matching selected -vo and video format 0x31637661 #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Mplayer install wiki page says 
"cp loader/registercodec /usr/local/bin/"
but there is no such "loader/registercodec" in mplayer source or coreavc 
source.

what is that out of date instruction?

and new coreavc does not work on recent mplayer svn .

 mplayer -vc coreserve -demuxer mkv  
"E118.090309.HDTV.X264.576P.mkv"
MPlayer SVN-r30929-4.3.3 (C) 2000-2010 MPlayer Team
150 audio & 338 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 E118.090309.HDTV.X264.576P.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang kor
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1024x576  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [screenshot]
Opening video filter: [hqdn3d]
Opening video filter: [pp=de]
==================================================
========================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x901af00]using unscaled yuv420p -> rgb24 special 
converter
VO: [xv] 1024x576 => 1024x576 Planar YV12  [zoom]
dshowserver --codec CoreAVCDecoder.ax --size 1024x576 --guid 
09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 -
-outfmt 0x32315659 --pid 29013 --id b4350970 --numpages 10 --port 
43149 &
Starting wine dshowserver.exe.so
Opening device (port is 43149)
DirectShow filter failedVDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x31637661.
==================================================
========================
==================================================
========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000-
>192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==================================================
========================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
fixme:vxd:__wine_vxd_open Unknown/unsupported VxD L"ntice.vxd". Try 
setting Windows version to 'nt40' or 'win31'.
len: 992 (03.4) of 3867.5 ( 1:04:27.4)  1.1% 
ProductVersion: 2.0.0
ALSA lib pcm_dmix.c:1010:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:949:(snd_pcm_dmix_open) The dmix plugin 
supports only playback stream
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting (03.6) of 3867.5 ( 1:04:27.4)  1.1% 
Initialization is complete
Using socket based mutex
EINPROGRESS in connect() - selecting
Dshowserver Connected to host
A:   4.5 (04.5) of 3867.5 ( 1:04:27.4)  1.1% 

Original issue reported on code.google.com by kuh...@gmail.com on 18 Mar 2010 at 5:07

GoogleCodeExporter commented 8 years ago
happened to me when installed mplayer from repository before compiling modified 
one.
fixed it by:
 -removing mplayer (sudo apt-get remove mplayer)
 -compiling modified mplayer(./configure && make && sudo make install)
 -copying binary to /usr/bin/mplayer (sudo cp mplayer /usr/bin/)

Original comment by pavelpol...@gmail.com on 30 Mar 2010 at 9:46

GoogleCodeExporter commented 8 years ago
it`s not my case.
i always compile mplayer from recent svn  source .

Original comment by kuh...@gmail.com on 30 Mar 2010 at 10:04

GoogleCodeExporter commented 8 years ago
I removed the line about the registercodec.  taht doesn't belong here.
you've already installed coreavc in Wine and verified it works as per the 
DshowserveInstall page?

Original comment by alannis...@gmail.com on 13 Apr 2010 at 4:23

GoogleCodeExporter commented 8 years ago
my dshowserver works.

$ dshowserver -c CoreAVCDecoder.ax
Starting wine dshowserver.exe.so
err:process:__wine_kernel_init boot event wait timed out
err:service:RPC_Init RpcServerUseProtseq failed with error 1703
err:wineboot:start_services_process Unexpected termination of services.exe - 
exit 
code 1703
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)
fixme:vxd:__wine_vxd_open Unknown/unsupported VxD L"ntice.vxd". Try setting 
Windows 
version to 'nt40' or 'win31'.
len: 992
ProductVersion: 2.0.0
ALSA lib pcm_dmix.c:949:(snd_pcm_dmix_open) The dmix plugin supports only 
playback 
stream
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete

Original comment by kuh...@gmail.com on 13 Apr 2010 at 4:37

GoogleCodeExporter commented 8 years ago
try removing your .mplayer/config file.  It is possible there is something 
there 
causing this issue.

Also try running:
dshowserver --codec CoreAVCDecoder.ax --size 1024x576 --guid 09571a4b-f1fe-4c60-
9760de6d310c7c31 -fourc 0x31637661 --bits 12 --outfmt 0x32315659

and make sure that works ok.  I don't see anything in your logs that would 
explain 
why this isn't working.

What version of Wine are you using?  I've never seen either that fixme or those 
'err:' lines before, and that "Try setting Windows version to 'nt40' or 
'win31'" 
looks fishy.  I don't get those either.

It looks like dshowserver is aborting pretty early when using mplayer, I don't 
see 
any indication that CoreAVC is trying to start.  I assume that you haven't 
manipulated WINEPREFIX?

Original comment by alannis...@gmail.com on 13 Apr 2010 at 5:04

GoogleCodeExporter commented 8 years ago
$ wine --version
wine-1.1.38

ignore that 'err:' lines or fixme warn.
regardless of that warnigs, wine works well.

in my ~/.mplayer/config there is not any special.

/home/gagemel/.mplayer/config

[default]
#General setup

ao=alsa:device=hw=0.0
mixer-channel="Master"
srate=48000

#really-quiet="1" #Very very little console output

vo="xv" #video out
zoom="1" #Allow sofware scaling if I use x11 for vo
aid="1" #audio channel
sid="0" #subtitle set

#Display

double="yes" #double buffering(recommended for subtitles)
monitoraspect="4:3" #I'm on a widescreen laptop so keeps 4:3 content from 
#stretching
framedrop="0" # For slow machines
hardframedrop="0" #Make sure hard frame drop is off but can turn on easily #now
framedrop=yes
#cache            = 8192
#subtitle code
#Truetype fonts rock! (sudo apt-get msttcorefonts)
#font=/usr/share/fonts/truetype/msttcorefonts/impact.ttf
font=/usr/share/fonts/baekmuk/gulim.ttf  ## 다운받은 폰트의 경로를,
subcp=euckr   
#ffactor="10" #black outline
sub-bg-alpha="0" #background color ala closed captions
sub-bg-color="0" #black to white
subfont-text-scale="3.7" #truetype font scaling
#subfont-blur="1" #Slight blur

#This sets the postprocessing into overdrive using all possible spare cpu 
#cycles to 
make the movie look better
autoq=100
vf=pp=de,hqdn3d
vf-add=screenshot

subpos="90" #By default subtitles are too low
subalign="2"

#always keep mplayer on top
ontop="1"

#turns off xscreen saver...maybe
stop-xscreensaver="yes"

#Some extra stuff I am currently not using....
#Fix A/V sync problems on files with bad MP3 VBR audio
#mc="1"
#autosync="10"
#delay="0.5"
prefer-ipv4=yes

[gnome-mplayer]
vo=xv
ao=alsa
alang=Korean,kor,ko
slang=Korean,kor,ko
msglevel=all=5
vf=eq2
#vop=eq=bright:50 
#-vf=eq=40:40
subfont-autoscale=1  
subfont-outline=3    
ffactor=1.5          

Original comment by kuh...@gmail.com on 13 Apr 2010 at 5:17

GoogleCodeExporter commented 8 years ago
did you try the dshowserver command I mentioned?  Did you try removing your 
.config 
file?  It wasn't clear from your response.  I am at a complete loss as to why 
it 
isn't working, so I'm grasping at straws here.
you do have dshowserver in your path and are running mplayer as the same user 
you use 
for testing dshowserver, right?

I'm still not convinced those wine errors are innocuous.  They could be 
confusing the 
system call.
You might try setting WINEPREFIX to a non-existant dir and reinstalling the 
codec and 
running mplayer like that.  Maybe something in your wine configuration is 
confusing 
it.  Also, are you uperhaps using a non-english CLANG?  Again, I really don't 
known 
what is going on, so I'm just throwing ideas out there.

Original comment by alannis...@gmail.com on 14 Apr 2010 at 4:31

GoogleCodeExporter commented 8 years ago
what i have tried is:
 1. remove ~/.config
 2. of course run as  same user
 3. WINEPREFIX=/bad-non-existant mplayer -vc coreserve test.mkv
 4. LANG=C mplayer -vc coreserve test.mkv
 5. clean reinstall mplayer amd dshowserver.

but still same error.
those wine errors didn`t cause any problems my ie6 or ultraedit or idapro

Original comment by kuh...@gmail.com on 14 Apr 2010 at 11:26

GoogleCodeExporter commented 8 years ago
6. run dshowserver command you mentioned.

but still same error.

Original comment by kuh...@gmail.com on 14 Apr 2010 at 11:27

GoogleCodeExporter commented 8 years ago
sorry for my typing error.
1. remove ~/.mplayer/config

Original comment by kuh...@gmail.com on 14 Apr 2010 at 11:35

GoogleCodeExporter commented 8 years ago
on
(6) dshowserver command you mentioned
did it say 'initialization is complete'?
you said 'same error' which doesn't tell me which way it went.

Original comment by alannis...@gmail.com on 14 Apr 2010 at 12:54

GoogleCodeExporter commented 8 years ago
[/media/sdc1/mplayer-clean]$ dshowserver --codec CoreAVCDecoder.ax --size 
1024x576 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 -fourc 0x31637661 --
bits 12 --outfmt 0x32315659
Starting wine dshowserver.exe.so
err:service:RPC_Init RpcServerUseProtseq failed with error 1703
err:wineboot:start_services_process Unexpected termination of services.exe - 
exit 
code 1703
No id specified, assuming test mode
Using default fourcc for CoreAVCDecoder.ax: 0x34363248
Opening device (port is 0)
fixme:vxd:__wine_vxd_open Unknown/unsupported VxD L"ntice.vxd". Try setting 
Windows version to 'nt40' or 'win31'.
len: 992
ProductVersion: 2.0.0
ALSA lib pcm_dmix.c:949:(snd_pcm_dmix_open) The dmix plugin supports only 
playback stream
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete

Original comment by kuh...@gmail.com on 14 Apr 2010 at 1:40

GoogleCodeExporter commented 8 years ago
what OS platform are you running?

can you modify vd_dshowserver.c to replace:
printf("DirectShow filter failed");
with
printf("DirectShow filter failed: %d\n",ret );

and see what value it returns?

Additionally, you can try in the same file:

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

But I doubt that will help.

Original comment by alannis...@gmail.com on 14 Apr 2010 at 3:25

GoogleCodeExporter commented 8 years ago
1. whenever i recompile mplayer from recent svn, same error occurred on mkv 
file. but 
dshowserver command you mentioned can fix problems. ok that` it.

2.on mp4 file, i had another problems.
dshowserver works.sound ok but black screen only.

[/media/sdc1/mplayer-clean]$ ./mplayer -vc coreserve ../chung-assist.mp4
MPlayer SVN-r31037-4.3.3 (C) 2000-2010 MPlayer Team
150 audio & 338 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 ../chung-assist.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [H264]  384x288  24bpp  24.971 fps  491.7 kbps (60.0 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 title: chung-assist.mp4
 author: Avidemux
 encoder: Lavf52.52.0
Opening video filter: [screenshot]
Opening video filter: [hqdn3d]
Opening video filter: [pp=de]
==========================================================================
Forced video codec: coreserve
Opening video decoder: [dshowserver] DirectShowServer video codecs
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x8fbe900]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 384x288 => 384x288 Planar YV12  [zoom]
dshowserver --codec CoreAVCDecoder.ax --size 384x288 --guid 09571a4b-f1fe-4c60-
9760de6d310c7c31 --fourc 0x34363248 --bits 12 --outfmt 0x32315659 --pid 29172 
--id 
b43a3970 --numpages 10 --port 0 &
Starting wine dshowserver.exe.so
err:service:RPC_Init RpcServerUseProtseq failed with error 1703
err:wineboot:start_services_process Unexpected termination of services.exe - 
exit 
code 1703
Opening device (port is 0)
fixme:vxd:__wine_vxd_open Unknown/unsupported VxD L"ntice.vxd". Try setting 
Windows 
version to 'nt40' or 'win31'.
len: 992
ProductVersion: 2.0.0
ALSA lib pcm_dmix.c:949:(snd_pcm_dmix_open) The dmix plugin supports only 
playback 
stream
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
Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver 
(CoreAVC 
DShow H264 decoder x.x for x86 - http://corecodec.org/)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
Dshowserver Connected to host
AUDIO: 22050 Hz, 2 ch, s16le, 128.0 kbit/18.14% (ratio: 16000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)

Original comment by kuh...@gmail.com on 14 Apr 2010 at 3:50

GoogleCodeExporter commented 8 years ago
my os id ubuntu 8.10

Original comment by kuh...@gmail.com on 14 Apr 2010 at 3:59

GoogleCodeExporter commented 8 years ago
with mp4 try different muxers.  lavc and mov are good ones to try.  The black 
screen 
generally means that the quantize matrix or other AVC heareds weren't supplied 
to the 
codec and it can't decode any frames.  If changing demuxers doesn't help, 
you're 
likely stuck.
The fact that the sockets don't work is troubling.  I can't think of any reason 
that 
you wouldn't be able to communicate through sockets.

Original comment by alannis...@gmail.com on 14 Apr 2010 at 7:44