Log in

View Full Version : adjusting 3D movie from 2 cameras automatically


redblue
26th May 2007, 11:34
Hi,

I'm looking for help in automatically matching two
different videos to create a 3D movie to be watched
using red/blue 3D glasses.

Currently I match the images manually, which is a bit of the
problem as the best match changes over the film.
The videos have been recorded by sticking two
cameras (Casio EX-Z750) together with tape.


Here is one frame as an example:

Source images (left, right camera frame)
http://img184.imageshack.us/img184/9899/leftvh8.jpg
http://img47.imageshack.us/img47/2482/rightkv7.jpg

Result (to be cropped later)
http://img181.imageshack.us/img181/7974/resultbz1.jpg

The script is:
vleft = DirectShowSource("c:\daten\3d\2\CIMG6287.AVI",fps=30, audio=false, pixel_type="RGB").trim(1,0)
vright = DirectShowSource("c:\daten\3d\1\CIMG6741.AVI",fps=30, audio=false, pixel_type="RGB")
vleft = vleft.greyscale.RGBAdjust(1,0,0)
vright = vright.greyscale.RGBAdjust(0,1,1)
result = overlay(vleft,vright,x=70,y=10,mode="add")
result = result.BilinearResize(720, 480, 52,20,588,440)
return result.ConvertToYV12

In the script the fixed X and Y values for the overlay
should be calcualted dynamically.

Any hints on how this could be achived?

gzarkadas
26th May 2007, 15:19
You can use the runtime filters: a combination of ScriptClip and FrameEvaluate or Conditional reader, depending on how x,y change dynamically.