PDA

View Full Version : Importing logo.vdf to AVS - problem


dr.Prozac
7th September 2004, 01:10
Hi !
I tried to import vdub_filter.avs to my script and wanted to add a logo (.bmp) to my clip. There is also an error during preview: "Script error: Invalid arguments to function "_VD_Logo""
I tried to use the sample from vdub_filter.avs:
ConvertToRGB()
VD_logo(0, 0, 128, true, 0, 0, 255, 0, VirtualDub_plugin_directory+"\logo2.bmp", false, 100, 200, 0, 10, 180, 10)
ConvertToYUY2()

Does anybody had a suggestion what is the problem ?

stickboy
7th September 2004, 09:13
Please post the exact script that you tried to use.

dr.Prozac
7th September 2004, 18:38
Thank You stickboy for your answer.

First - I've placed vdub_filters.avs scipt in the directory: C:\Program Files\AutoGK\VDubMod\plugins

Second - I've changed the line: "global VirtualDub_plugin_directory = "D:\Video\virtualdub\plugins" in vdub_filters.avs script to: global VirtualDub_plugin_directory = "C:\Program Files\AutoGK\VDubMod\plugins"

I have also put my image file logo2.bmp (170x43,depth=24) in: C:\Program Files\AutoGK\VDubMod\plugins

Next: I've written an AVS acript:

Import("C:\Program Files\AutoGK\VDubMod\plugins\vdub_filters.avs")
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\dgdecode.dll")

mpeg2source("D:\My documents\My video\tests\vob2.d2v", idct=3)
ConvertToRGB()
VD_logo(0, 0, 128, true, 0, 0, 255, 0, VirtualDub_plugin_directory+"\logo2.bmp", false, 100, 200, 0, 10, 180, 10)
ConvertToYUY2()
crop(4,14,712,548)
LanczosResize(576,304)

Wilbert
7th September 2004, 22:11
1) What logo version are you using?

http://neuron2.net/logo.html (1.4 works)

2) I suggest you consider the internal filter Overlay instead.

dr.Prozac
7th September 2004, 22:41
Thank You Wilbert
I think I've been useing a wrong version.
Now, everything is OK after I've loaded this version 1.4 from your link.
Thanks one again !

dr.Prozac
7th September 2004, 23:23
I'm sorry for writting the next post but there is one problem. Is there a possibility to set the longer duration of the logo display ?
I tried to change 11. and 12. arguments in my script but the duration argument seems do not work. This problem is also when I want to set the start frame over 100. Then no logo is displeyed. I suppose Wirbert will answer again, so thank You Wirbert in advance :)