From: Linda Galdieri on
On Sun, 27 Dec 2009 23:31:15 -0600, M.L. wrote:

> By default, the Layers filter will overlay the left side of the
> rightmost video onto the right side of the leftmost video. However,
> since you want to overlay the right side of the rightmost video, my
> modification shifts the right half of the rightmost video to the left
> so that they overlay as expected.

Wow! That's wonderful. It will take me a while to digest all this but this
is a great tutorial for overlaying one video to the side of another.

BTW, I don't have a preference for the right or the left, so if it's easier
to do it one way versus the other, please let me know now!.

THANK YOU!
From: M.L. on


>> By default, the Layers filter will overlay the left side of the
>> rightmost video onto the right side of the leftmost video. However,
>> since you want to overlay the right side of the rightmost video, my
>> modification shifts the right half of the rightmost video to the left
>> so that they overlay as expected.
>
>Wow! That's wonderful. It will take me a while to digest all this but this
>is a great tutorial for overlaying one video to the side of another.
>
>BTW, I don't have a preference for the right or the left, so if it's easier
>to do it one way versus the other, please let me know now!.

Just for clarification, both videos should be the same size for best
results.

If you want to overlay the left half of a rightmost video:
pip = DirectShowSource(vid2, audio=false).ConvertToYUY2()
or, to resize before overlaying:
pip = DirectShowSource(vid2, audio=false).LanczosResize(new_width,
new_height).ConvertToYUY2()

If you want to overlay the right half of a rightmost video:
pip = DirectShowSource(vid2, audio=false), followed by:
pip =
pip.LanczosResize(pip.width,pip.height,Int(pip.width/2),0,pip.width,pip.height).ConvertToYUY2()
or, to resize before overlaying:
pip =
pip.LanczosResize(new_width,new_height,Int(pip.width/2),0,pip.width,pip.height).ConvertToYUY2()

The code to use will depend on which half of the screen your character
is placed. There really is no more work involved one way or the other.

BTW, I suggest you preview your avs file with VirtualDub before
importing it into your DVD authoring tool.

VirtualDub
Pros: Splitter/joiner, scene detection, frame advance,
filters/effects, no reencoding possible, optional volume boost
Input: AVI, AVS, FLV(with plugin), MOV(with plugin), MP4(with plugin),
MPEG1, MPEG2(with plugin), VOB(with plugin), WMV/ASF(with plugin)
Output: AVI
OS: Win 98/ME/2000/XP/2003/Vista
www.virtualdub.org/
http://moitah.net (FLV Plugin)
http://www.tateu.net/software/dl.php?f=qtvd_bin (MOV, MP4 plugin)
http://home.comcast.net/~fcchandler/Plugins/MPEG2/index.html (MPEG2,
VOB plugin)
http://home.comcast.net/~fcchandler/Plugins/WMV/index.html (WMV/ASF
plugin)