Log in

View Full Version : Avisynth, Virtual dub and ffd for live keying?


mfg
22nd May 2009, 19:04
Hi folks,

i was looking for a very long time for a way do do live keying (just as a preview) in front of a greenscreen with tools that are available for free.

And finaly i found a Setup that might work:

- using virtualdub to display video from my capture card (vdub in capture mode)
- using ffd plugin in vdub to apply avisynth filter

And now the difficult part:

- keyout the input video and put it over a picture (background in PNG)

That should work, right?

Too bad i have no idea how to write such an avisynth script. And googeling did not really made it more clear.

Can someone help me write this script?

mfg

Wilbert
22nd May 2009, 22:32
See example with the blue background in: http://avisynth.org/mediawiki/Overlay

mfg
22nd May 2009, 23:16
well i tried to blend a picture with the video (no chroma keying yet), but it doesnt work:

ConvertToRGB32()
ov = last
bg = ImageSource("C:\Documents and Settings\User\Desktop\videos\vdub\bg.jpg").ConvertToRGB32
overlay(ov,bg,0,0,,0.5)

I expected the video blended 50:50 with the background ...

Any ideas?

Gavino
23rd May 2009, 00:36
overlay(ov,bg,0,0,,0.5)
That is a syntax error. Use:
overlay(ov,bg,0,0, opacity=0.5)