View Full Version : VirtualdubPlugin control


The Edge
29th January 2003, 04:54
Hey,
Straight to bussiness...
I'm trying to encode a concert DVD to XviD in which before each song, the name of the particular song would appear on the screen for a few seconds.
The plan is to use VirtualDub's LogoAway filter to remove it. The name of the song is always in the same place and the same size...

This is my current script.


###########################################################
LoadPlugin("C:\Mpeg\GORDIA~1\MPEG2Dec3.dll")
LoadVirtualDubPlugin ("C:\Mpeg\GordianKnot\VirtualDub\plugins\logoaway.vdf","logoaway")
LoadPlugin("C:\Mpeg\GORDIA~1\Convolution3DYV12.dll")
LoadPlugin("C:\Mpeg\GORDIA~1\UnDot.dll")
#
#
#
mpeg2source("C:\Documents and Settings\Guest\Desktop\Cranberries\project.d2v")
crop(1,59,717,354)
Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
BilinearResize(512,208)
ConvertToRGB32()
logoaway( 2, 9699500, 14286868, 0, 0, 9, 0, 66051, 0, 8, "", "")
ConvertToYUY2()
###########################################################




This works perfect (well maybe I should have placed logoway before resize but I can change that)
The question is how would I go about turning logoway on and off at will at particalur frames??
The following is a list of where the names of the songs are on screen if it helps.

5566 -> 5830
20426 -> 20680
34578 -> 34788
48919 -> 49157
63356 -> 63621
78016 -> 78348
92310 -> 92624
106513 -> 106828
121155 -> 121492
135724 -> 136084
149793 -> 150189
164157 -> 164512
179078 -> 179395
193200 -> 193505
207315 -> 207629
221732 -> 222136
236150 -> 236525

Is this even possible or is there an easier way?
It has my head scratching :confused:
Thanks in advance.

Edge

Richard Berg
29th January 2003, 05:41
src = avisource("foo")
out = src.Trim(1, 5565)
out = out + src.Trim(5566, 5830).LogoAway(whatever)
out = out + src.Trim(5831, 20425) + src.Trim(20426, 20680).LogoAway
etc.

This clumsy syntax is an area I hope to improve, but something like the above shouldn't be too tedious with v2.5.

The Edge
29th January 2003, 10:02
Thanks alot.
I will try it as soon encoding is finished ;)

Edge