View Full Version : Vdub Frame Tweaker plug-in in Avisynth?
Is there an equivalent in Avisynth to the VirtualDub plug-in "frame tweaker" (http://www.geocities.com/cplarosa/video/tweaker.htm)?
I have looked at avisynth.org and searched the forums, but didn't find anything.
I often use Frame Tweaker to "blacken" some frames in a video and I find it very useful.
For example, a frame tweaker script looks like this:
0-7 Black (frames 0-7 become totally black)
I'd like to incorporate Frame Tweaker into my Avisynth script and then frameserve the avs through Link2 and make a fake avi, because the software I want to encode the video to Mpeg-2 in, doesn't read Avisynth script files. My script looks like this:
video = SegmentedAVISource("musikladen.avi")
audio = WavSource("musikladen.wav")
video = letterbox (video, 2,0,0,0)
video = fadein(video, 25)
video = fadeout(video, 25)
audio = delayaudio(audio, 0.04)
audiodub(video,audio)
Guest
10th May 2003, 01:51
You can use the LoadVirtualDubPlugin() function to run the VirtualDub version in Avisynth. Look at Wilbert's imports file for examples.
I downloaded http://shelob.mordor.net/dgraft/vdub_filters_v15.zip, is that the correct file?
Frame Tweaker is not included in "vdub_filters.avs".
sh0dan
11th May 2003, 19:03
The one at avisynth.org (http://www.avisynth.org/index.php?page=VirtualDub_I) is probably more updated.
Frame Tweaker is not included in the avs at avisynth.org either. :-(
Guest
12th May 2003, 02:19
Uncle Donnie to the rescue...
########################################################
# Change VirtualDub_plugin_directory below to point to #
# the directory containing your VirtualDub plugins. #
########################################################
global VirtualDub_plugin_directory = "d:\virtualdubmod\plugins"
function VD_Tweaker(clip clip, string "filename")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\tweaker.vdf", "_VD_Tweaker", 1)
return clip._VD_Tweaker(filename)
}
avisource("j:\spirited.avi")
ConvertToRGB()
VD_Tweaker("g:\tmp\script.fts")
Wilbert
12th May 2003, 10:11
Has been added. Thanks!
Many thanks, Donald.
I had to change
ConvertToRGB()
to
ConvertToRGB32()
or else I got an error message that only RGB32 was supported.
Is that normal?
I have Avisynth 2.08.
Guest
16th May 2003, 02:30
Dunno. I stopped using 2.0x ages ago. Ask sh0dan. :)
Wilbert
16th May 2003, 09:47
I had to change
ConvertToRGB()
to
ConvertToRGB32()
or else I got an error message that only RGB32 was supported.
Is that normal?
I have Avisynth 2.08.
Yes, they only work in RGB32. ConvertToRGB converts to RGB32, except when your source is RGB24. So, I guess your source was RGB24?
Wilbert, Yes, my source is an avi, decoded by Panasonic's DV codec and is listed under "Decompressor" as "Panasonic DV Codec" when the avi is opened in Virtualdub. According to the sticky "The Panasonic decoder supports RGB color space only".
When the avi is opened in Virtualdub via this Avisynth script
avisource("test_image.avi")
it is listed under "decompressor" as "uncompressed RGB24".
I assume Avisynth uses the Panasonic VFW codec for reading my avi file not MS's DV codec (which is DirectShow filter)?
How can I tell what colorspace an avi file has, by the way?
Guest
16th May 2003, 22:48
Originally posted by Swan
How can I tell what colorspace an avi file has, by the way? AviSource("youravi.avi")
Info()
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.