Log in

View Full Version : Noob question about external plugins


dgoodbourn
23rd November 2005, 13:41
Ok, I've looked high and low, and can't find out why I can't use an external plugin. I'm trying to use the 'ImportUncompressedSequence' but it won't load. Where do I put the .dll? Is it in the plugins directory? And If so, how do I use it?

I've tryed: LoadPlugin("importuncompressedfile.dll") before my filters, but it always comes up with the 'unable to load' screen.
Please help,

Cheers,
D.

Boulder
23rd November 2005, 17:59
You need to specify the path from which you load the plugin. Alternatively, you could put the dll in the plugins folder, the default is C:\Program Files\Avisynth 2.5\plugins.

Guest
23rd November 2005, 19:17
It's worse than that. There's something fishy about the DLL. I'm investigating...

Wilbert
23rd November 2005, 19:28
Where do we get this plugin? :)

DigitalDeviant
23rd November 2005, 20:26
It's here guys! (http://forum.doom9.org/showthread.php?t=51227)

dgoodbourn
23rd November 2005, 21:06
Might it be for an older version of Avisynth?

D.

DigitalDeviant
24th November 2005, 01:09
No, readme.txt says it's for 2.5.x. I would first take Boulder's advise and use the full path to the plugin (ie. LoadPlugin("C:\AviSynth 2.5\importuncompressedfile.dll")

Beyond that, please post your script.
:script: :thanks:

Guest
24th November 2005, 01:26
No, it's nothing to do with the path. Try loading it yourself and see what happens. :)

I built it from source and tested it. If I disable cineon mode so that the libgfl.lib and libgfle.lib are not linked it, then it loads fine. Maybe they make the DLL too big to be loaded or something like that. I'd have to trace through Avisynth to find out why and I am not set up for building Avisynth right now.

Anyway, I can give you a version with cineon mode disabled if that will help you.

dgoodbourn
24th November 2005, 10:01
A version with the cineon mode disabled would be fine, please. :)

Thanks for looking into it for me,

Cheers,
D.

Guest
24th November 2005, 14:23
http://neuron2.net/misc/Uncompressed.zip

dgoodbourn
24th November 2005, 14:53
I'm now getting 'Invalid arguments to function'. Where am I going wrong?

Here is the script in full:

ImportUncompressedSequence("c:\%05d.tif", "mov24", 0, 150, 720, 480, 29.97)

Cheers,
D.

Guest
24th November 2005, 16:14
The fps parameter is an integer! And none of the parameters can be omitted because they don't have defaults assigned. This ran for me (but gave a garbage display):

ImportUncompressedSequence("e:\don\programming\c++\avisynth filters\uncompressed\test\file%05d.tif", "mov24", 0, 0, 720, 480, 29, 0, 0)

Please don't ask me to debug this filter. :)

Why don't you use the core import filters?

dgoodbourn
24th November 2005, 16:33
Thanks for trying, but I need the fps to be an integer for 29.97! Never mind though.

I tried ImageSource but it won't import into the encoder, just like it won't import into After Effects.

So close, but yet so far!!!

Is there a way to get the ImageSource filter to import correctly into After Effects?

Cheers,
D.

Wilbert
24th November 2005, 16:38
Is there a way to get the ImageSource filter to import correctly into After Effects?
Whether or not your script loads in After Effects doesn't depend on which filters you use. So, i don't get your remark here.

You can always use ImageSource(...).AssumeFPS(29.97) and ConvertToRGB24 if needed.

dgoodbourn
24th November 2005, 17:06
Ok, but even if I force the framerate and convert to RGB24, After Effects still doesn't like the avs. I'm using makeAVIs to create an avi from the avs file, but still After Effects and the encoder doesn't like them.

Where am I going wrong?

Cheers,
D.

Wilbert
24th November 2005, 17:27
Could you post a simple script that AE likes, and a simple one that AE doesn't like? Could you also specify what "doesn't like" means (what error messages do you get)?

dgoodbourn
24th November 2005, 17:38
Sorry for being vague here, I'll start again!

I basically need to convert a series of rendered numbered stills in to an avi file in the fastest way possible to mpeg encode. If I use avisynth to create an avs file and then makeavis to create an avi file, this is all good, and will play in windows media player. But if I open that avi in After Effects, it displays incorrecly with the image green with random lines through it. (almost like playing an avi with the huffyhuf codec on a machine without the codec installed). When I open the avi in gspot, it doesn't think the avi has any codec at all.

I'm just trying to get a series of stills into an avi for encoding in the fast possible way, without having to re-render them with after effects/virtualdubmod or anything that can do that.

If anyone knows of another way to do this, I would be eternally grateful! :)

Cheers,
Dave.

Guest
24th November 2005, 19:30
Just load the AVS script into VirtualDub, select a compression, and then Save AVI.

Wilbert
24th November 2005, 21:21
Did you try forcing different colorformats in makeAVIS (say YUY2 and RGB24)?

dgoodbourn
24th November 2005, 21:57
Thanks for all your help guys, but I ended up using DGindex and the VFAPI Converter. Created a standard avs file with ImageSource and loaded it into VFAPI Converter. It works a treat! I've even created a small vb app to generate the avs file from a folder of sequencial stills. Now all I need is for VFAPI Converter to be accessable from the command prompt, and I'll have a fully automated system!!!

I think the problem I was having was more to do with makeAVIs. It's probably possible with it, but I just didn't find the correct settings.

Cheers again,
Dave.

Guest
25th November 2005, 03:51
I've tried to find the source code for VFAPI Converter but I think it was never released. Maybe we should reverse engineer it.

dgoodbourn
25th November 2005, 10:03
If I knew how to reverse engineer it, I would. But never mind, it's not that much of a bother to do it manually! :)

D.