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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th April 2012, 00:44   #1  |  Link
kenpachi
Registered User
 
kenpachi's Avatar
 
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")
When attempting to open it in my project:

Code:
AviSynthClip clip = null;
AviSynthScriptEnvironment env = new AviSynthScriptEnvironment();
clip = env.OpenScriptFile("sample.avs", AviSynthColorspace.RGB24);
dimzon_avs_init_2 doesn't success and throws "Can't open E:\sample.avi: 80040217". Uncommenting "LoadPlugin" doesn't help. AviSource or internal sources work as far. What might be the reason haaliDS doesn't work?
kenpachi is offline   Reply With Quote
Old 18th April 2012, 11:42   #2  |  Link
IanB
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)
You possibly do not have the required direct show codec for E:\sample.avi.

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
IanB is offline   Reply With Quote
Old 18th April 2012, 14:46   #3  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Here you have the AvisynthWrapper used in BeHappy.
The first release by Dimzon, Jan 24 2008, was the initial version used in MeGUI.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th April 2012, 22:55   #4  |  Link
kenpachi
Registered User
 
kenpachi's Avatar
 
Join Date: Mar 2010
Posts: 48
Quote:
Originally Posted by IanB View Post
have you actually tried running your script in MeGui, this will confirm/eliminate problems with your understanding of AvisynthWrapper usage.
meGUI opens the script. It's more a question to meGUI Developers, then - what am I doing wrong? I usually test scripts with AvsEdit or using MediaFoundation (EVR). HaaliDS works fine in my scripts.

Quote:
Originally Posted by tebasuna51 View Post
Here you have the AvisynthWrapper used in BeHappy.
The first release by Dimzon, Jan 24 2008, was the initial version used in MeGUI.
I'm using the 2010-04-10 build found in meGUI source. I've also tried the 2008-02-03 build. Both builds have dimzon_avs_init_2 function (Dependency Walker info) and neither of them successes with DSS2() in a script.
kenpachi is offline   Reply With Quote
Old 29th May 2012, 21:21   #5  |  Link
kenpachi
Registered User
 
kenpachi's Avatar
 
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.
kenpachi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.