| Overlay Masks for Stereoscopic Movies with AviSynthSMMVDub 07:31I've been applying overlay masks for stereoscopic movies for a few years with Adobe After Effects (they can also be created in AE), but just figured out how to apply them with <a href="http://avisynth.org/">AviSynth</a>. more...This gives you complete independent control over the imagery alignment _and_ the masks, which can provide many more options for manipulating the stereo window edges. Someone who knows AviSynth better than I do might be able to provide a script that can animate the masks. You can create the masks in Photoshop or with <a href="http://gimp.org/">GIMP</a> freeware.
Here are the scripts. It takes three of them (unless someone knows how to combine them). You change the information in the first two, then open the third one in <a href="http://stereo.jpn.org/eng/stvmkr/index.html">StereoMovie Maker</a> or <a href="http://virtualdub.org/">VirtualDub</a>:
1) Script for applying mask to the left perspective movie clip. Save this as a separate AVS file (e.g, "leftmask.avs"):
clip1 = AviSource("C:\left.avi").Crop(0,0,-0,-0).AddBorders(0,0,0,0) clip2 = ImageSource("C:\featheredblackmask.bmp") Overlay(clip1,clip2,-14,-5,mode="darken")
2) Script for applying mask to the right perspective movie clip. Save this as a separate AVS file (e.g, "rightmask.avs"):
clip1 = AviSource("C:\right.avi").Crop(0,0,-0,-0).AddBorders(0,0,0,0) clip2 = ImageSource("C:\featheredblackmask.bmp") Overlay(clip1,clip2,-6,-5,mode="darken")
3) Script for combining both left and right movie scripts (1 and 2) into a parallel, side-by-side movie for importing into StereoMovie Maker or VirtualDub:
left= Import("C:\leftmask.avs") right= Import("C:\rightmask.avs") StackHorizontal(left, right) less Tags: sterescopic 3d avisynth stereomovie maker virtualdub Category: Arts & Animation Views: 395 Comments: 0 Added: Feb 5, 07 By: RogerMaddy | |