Log in

View Full Version : req help masktools


g_aleph_r
7th January 2008, 14:59
:helpful: I'm looking for a way to create a mask that takes the still part of a video from one clip and the moving from another.
I just don't know from where to start, basically I need some simple examples
:thanks:

NerdWithNoLife
7th January 2008, 22:11
I've done masks before so maybe I can help - I'm just not sure exactly what you're asking. Here's a still from a video I layered with avisynth:
http://i153.photobucket.com/albums/s232/derekforpresident/ex.gif
Everything was done with free programs. It's me layered over a digitally created PNG background and another PNG plate on top of that. I was masked by chroma key (that's what blue screening is - I used a blue bedsheet!) The graphic was put on with a custom made mask - that's called rotoscoping. But if I had done it by motion, I would disappear every time I stopped moving.

Maybe that's not what you want to do - but let me know if you are looking to do anything like that.

g_aleph_r
8th January 2008, 07:32
sorry but I mean masks with masktools not to superimpose an image but for merge two versionof the same clip modified with different filters

foxyshadis
8th January 2008, 10:27
Then you might want to look at the functions MotionMask and MVMask for starters. (part of masktools v1 and mvtools respectively.)

NerdWithNoLife
8th January 2008, 14:16
You mean a before and after to compare different filters? See if this helps: http://forum.doom9.org/showthread.php?t=96115

Here is a quote from this page (http://www.animemusicvideos.org/guides/avtech/avspostqual.html) which describes use of the BeforeAfter script.

"Note: To create an image comparison like the one used above, there is a helper script written by Corran and me called beforeafter. You can use the script like this:

BeforeAfter(1,filters="""fluxsmooth().mfrainbow()""")

Change the number 1 to 0 for a horizontal split and change the list of filters to whatever you want to process the image. The triple quote marks are there in order to also support filters that contain strings in their arguments like deen("a3d",4). To show a white line across the sections like the image above, use BeforeAfterLine instead of BeforeAfter."