Log in

View Full Version : Overlaying Video on Video Help Needed.


tahir
19th January 2007, 09:52
Please guys help me.

I want to overlay video on video. I convert from dvd to vcd. I add text on the video using this script.


LoadPlugin("d:\data\tahir\plugins\DGDecode.dll")
mpeg2source("__vid__",iPP=true,cpu=0)

#FieldDeinterlace(blend=true)

BilinearResize(352,240)

text=blankclip(last).subtitle("TEXT", size=19,font="Blade 2", text_color=$ffffff).coloryuv
\ (levels="tv->pc")
overlay(last,text, x=13, y=23, mode="add", opacity=0.3)

ConvertToYUY2()



Now I would like to add a video addvertisemet on the bottom of the video. Can anybody help me create a scrtip to do it. The video i want to add is an advertisement (size 720x100). I would like the video to apear after every 15 minuets.

Cany Any body help me.

tahir
22nd January 2007, 07:40
Anybody. Please help me.

itay2222
22nd January 2007, 15:56
haven't tried it myself, seems something i will soon try...
but for now, read the documentaion of avisynth OVERLAY command... it seems to do exactly that!!! and it contains examples.

oh... and bout the every 15 minutes part...
check out my "blinking text" example (every 10 frames) very recently posted by me... it might give you a hint.

i can write it for you, if you post here the code for overlaying video on top of other for a specific frames, say from frame 100 to frame 200.

peace.