PDA

View Full Version : cce 2.5, avisynth 2.50 directshowsource


shinakuma8
6th April 2003, 02:40
anybody having problems with this? I'm trying to use directshowsource open wmv files and using avisynth serve to cce. for some reason the who thing is going extremely slow. like a frame every minute or something.

this is the script

DirectShowSource("file.wmv", fps=25, "false")
ConvertToYUY2()
LanczosResize(352, 288, 1, 3, 344, 284)
ColorYUV(cont_y = 64, cont_u = 64, cont_v = 32)
AddAudio() #<-function to add sound

even if I comment out all other filters, just open the file, add sound and serve, it's slow painfully slow for some reason. Is there a problem with the dss filter for the avisynth beta? I tried 2.51 beta, and the same problem exists. 2.08 works, but I'd prefer not to rollback to that version if I can because I use some 2.5 features for other encodings.

any help is appretiated.

DDogg
6th April 2003, 07:18
No help, but a verification from another machine. I tried everything I know trying to encode a WMV in CCE 2.50 and 2.66 with Avisynth 2.51, all to no avail. Even wrapping by VFAPI failed and that normally always works with just about anything. All tests would play in WMP but would not encode in CCE. I have a 11 hour encode in the oven at the moment so I can't try 2.07 or 2.08 now. If what you say is correct and 2.08 will work then maybe that will help the devel guys to figure it out. At least it gives them something to go on.

DirectShowSource has been a constant aggravation with CCE. Funny if it turned out to be something simple. I'll try 2.08 in the morning and see if that will work for me also.

DDogg
6th April 2003, 22:11
OK, just confirming there is different behaviour between 2.08 and 2.51 using DirectShowSource and CCE 2.50 and CCE 2.66

DirectShowSource("Way.wmv", fps=30)

2.51 Not working with CCE 2.50 or 2.66 with direct AVS or via VFAPI
2.08 Worked -
CCE 2.50 DIrect - NO
CCE 2.66 DIrect - YES
CCE 2.50 VFAPI - YES See note1
CCE 2.66 VFAPI - YES

NOTE1: Yes, but with strange behaviour. When encoding was stopped CCE 2.50 would act like it was hung up and file length was 0. Kill with TM, file length appeared and was a good encode.

So, I think this would have to indicate a problem in AS 2.51? I am asking, not saying. Devel?

sh0dan
6th April 2003, 22:23
Probably mostly depends on your output colorspace. Try RGB32 or YUY2.

How I hate CCE 2.50 - why are you using this ancient and highly buggy version?

DDogg
6th April 2003, 22:39
Probably mostly depends on your output colorspace. Try RGB32 or YUY2. DOn't think so as I tried all the permutations I could think of before reporting, but, hey, what do I know. Maybe somebody else can find something I missed.

Yeah, I KNOW you hate CCE 2.50. One doesn't need to be a mind reader to get that :), but most use it cause it works perfectly and does a great job nearly all the time. Let's just say it is very persnickety in what it likes to eat. Kinda like my daughter.

I would draw your attention to the fact that VFAPI will wrap the WMV and provide CCE 2.50 with what it needs and work for 2.08 but not with 2.51 . VFAPI outputs RGB24 only so I would guess it is not a colorspace issue, but again, what do I know about it really?

I was hoping this would help you pinpoint something 'cause it works in 2.08 and not 2.51. Doesn't that have to point to some difference between the code? I just thought this might help you find something. [add} Anyway, are you sure it is a CCE issue to begin with or a DirectShowSource issue in 2.51?[/add]

sh0dan
6th April 2003, 22:49
As half the code has changed in 2.0 -> 2.5 it's hard to say.

Since it works in vdub / 2.66 you are probably dealing with another CCE 2.50 bug, for which you have to do some kind of workaround to get working.

sh0dan
6th April 2003, 22:55
Where is there any kind of VFAPI documentation in english?

DDogg
6th April 2003, 22:56
Sh0dan, AS for 2.50, yeah, its voodoo, I agree with you.

So, lets not let it obscure the real issue. A direct AVS script will NOT work in CCE 2.66 using Avisynth 2.51 but the same exact AVS script WILL work in CCE 2.66 using Avisynth 2.08. Sorry if I was not clear. I don't think that is a CCE 2.66 problem.

[add] I'll do some grunt work for you and search around for VFAPI stuff. What are you looking for, Source? Just let me know.

DDogg
8th April 2003, 15:46
Sh0dan, did you find what you were looking for regarding VFAPI and any more thoughts on this topic? Unlike CCE 2.50, CCE 2.66 seems to be decently mannered. It would would be great to have the ability to encode a WMV using DirectShowSource directly, or for that matter with one of the wrappers, in Avisynth 2.5x.

shinakuma8
9th April 2003, 01:11
so DDogg, you find any solution, using avisynth 2.51 and cce 2.5?

man, directshowsource filter hangs on input error, so it seems. my encoding gets stopped at 99% complete, I think the last few frames might be corrupted or something. and no seeking and sound :(

DDogg
9th April 2003, 04:40
Nope I put the inquiry to Sh0dan above and asked if he had looked at it.

At this time, on my machine AMD 1.4 bird, I have found no way to use Avisynth 2.51, CCE 2.66 (forget 2.50 for this I think), and DirectShowSource to encode a WMV file. 2.66 works fine with a native AVS with Avisynth 2.08. I guess that is the way you would have to go.

sh0dan
9th April 2003, 12:41
I hope to get some time to look at this soon. Hopefully I'll be able to test with the trial versions, as I dont have the kind of money needed to buy this.

Directshow support is not very good I agree, but I have very little idea of what to do about it - so I'm not making any promises. "Use it, if it works - avoid if possible" is my recommendation for now. We need a dev. with experience in this API, to make it better.

shinakuma8
10th April 2003, 00:28
Originally posted by DDogg
Nope I put the inquiry to Sh0dan above and asked if he had looked at it.

At this time, on my machine AMD 1.4 bird, I have found no way to use Avisynth 2.51, CCE 2.66 (forget 2.50 for this I think), and DirectShowSource to encode a WMV file. 2.66 works fine with a native AVS with Avisynth 2.08. I guess that is the way you would have to go.

yeah, I've tried avisynth 2.51 with CCE 2.66, and it's still the same problem. goes at 1 frame per MINUTE. 2.08 works on both 2.5 and 2.66, well almost, (except it hangs at 99%, but I think that might be currupt frame), unfortunately, there's no coloryuv in 2.08. anyway, conclusion is that it's not just a 2.5 problem.

HLW
15th July 2004, 14:27
Hi!

I would like to decode some .wmv files using Avisynth and the DirectShowSource function,

Directshowsource("d:\sample.wmv", fps=25)

but in VDubMod I only get the message "Evaluate: Unrecognized exeption". The .wmv files plays perfectly in Media Player Classic.

Have anyone else experienced this problem, or do someone know how to solve it?

- Haakon