View Full Version : Direct use of avisynth.dll in vb like program
burnix
2nd May 2007, 11:40
Hello.
I just want to know how i can use directly avisynth.dll and plugins in my app without install it in system32 (just put all dll in my app directory).
I can view all dll function of avisynth.dll but where i can found a description of how to use each function.
For example avs_get_frame have 2 stdcall parameters.
To finish, if i can use this dll how i can use plugin directly.
Thanks to all, and yes i have use the search function ;-)
http://kevin.atkinson.dhs.org/avisynth_c/api.html
and
avisynth SDK in the wiki (http://avisynth.org/mediawiki/Filter_SDK)
you can look at the avisynth_c.h (http://avisynth2.cvs.sourceforge.net/avisynth2/avisynth/src/core/avisynth_c.h?revision=1.4&view=markup) file that are in avisynth 2.5.7 src (in the \src\core\ directory) for the different stdcall functions
you load avisynth.dll in vb (it doesn't have to be in system32)
then you use avs_create_script_environment to create the script environment
you then use avs_invoke to call "eval" to load the script(or use import if the script is saved in a file)
this returns an AVS_Value. You can then extract the clip from this value using avs_take_clip and then call avs_get_frame to get the frame you need.
You can look at the avsP sourcecode (python) to see how it is can be done)
to use plugins directly you need to produce your own filter in vb and load it into avisynth.dll using avs_new_c_filter and avs_add_function to provide the input for the plugin you want to use.
burnix
2nd May 2007, 22:18
i'm going to see tomorow. Thanks for your response. I've found some post about avisynth_c, but i've not enought time to read completly. Thanks you.
Rachima
6th May 2007, 23:28
http://kevin.atkinson.dhs.org/avisynth_c/api.html
and
avisynth SDK in the wiki (http://avisynth.org/mediawiki/Filter_SDK)
you can look at the avisynth_c.h (http://avisynth2.cvs.sourceforge.net/avisynth2/avisynth/src/core/avisynth_c.h?revision=1.4&view=markup) file that are in avisynth 2.5.7 src (in the \src\core\ directory) for the different stdcall functions
you load avisynth.dll in vb (it doesn't have to be in system32)
then you use avs_create_script_environment to create the script environment
you then use avs_invoke to call "eval" to load the script(or use import if the script is saved in a file)
this returns an AVS_Value. You can then extract the clip from this value using avs_take_clip and then call avs_get_frame to get the frame you need.
You can look at the avsP sourcecode (python) to see how it is can be done)
Hi tsp,
thank's for the short advice and Links. I also have a need to communicate with AviSynth-Dll for a AvsP-Plugin (http://forum.doom9.org/showthread.php?p=999366#post999366) . So, unfortunately I'm not a programmer, but a photographer. After the last two days successles trying to create a binary COM-DLL from the AvsP avisynth.py with Python-Tools, or even a CLI-prog, that simply write a bmp from a given frame to file, I want to ask if you or someone else who read this, can give some help/advice to me.
My App (http://forum.doom9.org/showthread.php?t=125275) is written in VB6. Currently I create strings (avs-scripts) write them to disk and load it as Video via MCI. As I have seen, this could be done without writing to disk. My Python-tests works, when calling as scripts, but not when I have compiled them. So, I really could need some help in make that Python stuff running properly, best as COM-Server, or by implementing all needed functions directly into VB6.
There is a lot of other work to do with my app, that I know how to do it well, but this C-DLL or Python things I don't understand enough to get it work right.
Rachima
Rachima: you only want to output a bmp file and not actually show the frame? If that is the case not many functions from avisynth_c are needed for that so it should be easy to add it to the vb code. I don't know much about adding dll function to vb6 so you might want to ask another one about that maybe burnix
Fizick
7th May 2007, 22:45
try search posts of vion11 about vb
Rachima
10th May 2007, 19:46
Hi tsp,
[...] I don't know much about adding dll function to vb6 so you might want to ask another one about that maybe burnix
Ok, thank's for your reply.
Rachima
Rachima
10th May 2007, 19:49
try search posts of vion11 about vb
yeah, I know that Editor and also that it is written in VB, but the Sources aren't reachable: http://www.innerphase.de/AVEditor/AVEditor-VB6-Sources.zip
The Project is hosted at avisynth.org, but not the sources :(
Rachima
Fizick
13th May 2007, 00:23
try contact vion11 via Private message or some else method (find his new project)
Wilbert
13th May 2007, 00:35
I have the sources. I will put them up on sunday.
Rachima
14th May 2007, 23:14
I have the sources. I will put them up on sunday.
Yeah, this sounds good.
put up them: where?
Best regrads,
Rachima
Wilbert
15th May 2007, 20:41
Yeah, this sounds good.
put up them: where?
Sorry, i forgot about it :) You can get them here:
http://www.wilbertdijkhof.com/AVEditor-VB6-Sources.zip
hydra3333
28th November 2009, 05:14
that link seems to be out of date
Wilbert
5th December 2009, 16:24
I updated the link. It should work now.
hydra3333
5th December 2009, 23:14
Thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.