Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
18th April 2012, 00:44 | #1 | Link |
Registered User
Join Date: Mar 2010
Posts: 48
|
AvisynthWrapper usage for newbies
I am studying meGUI source to understand how AvisynthWrapper works but it is more or less magic to me as I've just started.
1) Let's have sample.avs: Code:
#Loadplugin("C:\Program Files\VideoAudio\AviSynth 2.5\plugins\avss.dll") #BlankClip(length=200) DSS2("E:\sample.avi") #AviSource("E:\sample.avi") Code:
AviSynthClip clip = null; AviSynthScriptEnvironment env = new AviSynthScriptEnvironment(); clip = env.OpenScriptFile("sample.avs", AviSynthColorspace.RGB24); |
18th April 2012, 11:42 | #2 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
0x80040217 is VFW_E_CANNOT_CONNECT
From VFWMSGS.H Code:
// // MessageId: VFW_E_CANNOT_CONNECT // // MessageText: // // No combination of intermediate filters could be found to make the connection.%0 // #define VFW_E_CANNOT_CONNECT ((HRESULT)0x80040217L) Seeing you are porting MeGui code have you actually tried running your script in MeGui, this will confirm/eliminate problems with your understanding of AvisynthWrapper usage. But I think your code is working correctly including error reporting and handling. As always fall back to good old reliable VirtualDub when you have script or plugin problems it eliminates all the extraneous dross from the problem. Also I think AvisynthWrapper has some original roots here AvsFilterNet - writing avisynth filter in .NET |
18th April 2012, 22:55 | #4 | Link | ||
Registered User
Join Date: Mar 2010
Posts: 48
|
Quote:
Quote:
|
||
29th May 2012, 21:21 | #5 | Link |
Registered User
Join Date: Mar 2010
Posts: 48
|
I had put the problem away but accidentally managed to find out the reason some time ago. I advice all using VS2010 to run your builds without debugger when testing AviSynth. The debug mode causes AviSynth server to act weird, e.g. it doesn't want to work with DSS2() or Trim(). No "debug mode" fixes the problem.
|
Thread Tools | Search this Thread |
Display Modes | |
|
|