PDA

View Full Version : Moving Path


MrTVideo
1st December 2004, 02:29
I am putting together a moving path of an overlaying picture and or a highlight or disguise of a moving object. To this end I have been creating C code to write the coordinates for the conditional reader text files. I have found a lot of information but not on Avisynths commands. So far I seem to be up against working out what Avisynth allows by interpreting what has been created. This brings me to my question. Is there a direct comparison between Avisynths acceptance of C and Ansi C
I have looked at the functions list but they only list the arguments they accept. I have the whole thing working but use my mouse coordinate program and write the coords of the client window in a text file manually by frame number. I am planning to use LCC-win32 as it delivers the Win32 API.
The basic concept is:-


clip1 = AviSource("D:\Vid 1.avi").Flipvertical# Corrects mjpeg
clip2 = AviSource("D:\Vid 2.avi").Flipvertical.BilinearResize(240,180)

Overlay(clip1, clip2, x=0,y=100,Mode="blend")

ConditionalReader("opacity.txt", "ol_opacity_offset", false)
ConditionalReader("Xoffset.txt","ol_x_offset", false)
ConditionalReader("Yoffset.txt","ol_y_offset", false)
(Edited: forgot to add the y coordinate)

This is simplistic as the overlay may be required to rotate in 3d following a 2D plane as well, but first things first. This is beautifully done in Media Studio but that is big bucks.

Note: I could use a subtitle in place of the overlay clip. My project is to display a frame select and write frame and coords, display the nth frame and repeat. When I learn enouth about pixel interrogation I will attempt to track a point given a starting position. This information I would then use to automaticly write the script and necessary tem.p coordinate files for the moving path.
Comments appreciated. :)

MrTVideo
4th December 2004, 03:44
Ok Forget this post I posted in the wrong forum and have visited the development one. I have found the information I was seeking and will go out now untill I can offer something that can be usefull to all here. I will still visit but keep my mouth?typing shut. I realize I have been a bit of a pain :(