PDA

View Full Version : Shift Overlayed clip


SuperVegetto
1st January 2007, 22:37
Hi there. im having a few problems.

Im overlaying a clip on top of another and the prob is i have to shift the overlayed clip to a specific scene. im unsure on how 2 do this. this is what ive got so far

DirectShowSource("Directory\File.avi", fps=23.976, audio=false)
title= DirectShowSource("Directory\file2.avi", fps=23.976, audio=false)
Overlay(title, mode="blend", opacity=1.0, mask = title.Showalpha("RGB"))

Id b gr8ful on any help on how 2 shift this clip

jmac698
2nd January 2007, 06:09
easy, add x=4 in the overlay command. To make it for the specific scene, use trim to break it up into parts:
video=DirectShowSoure(...file.avi)
a=video.trim(0,1000)
b=video.trim(1001,2000)
c=video.trim(2001,0)
a+b.overlay(title,....x=5)+c