Log in

View Full Version : Going from greyscale to full color slowly possible?


WalterK
7th May 2006, 03:34
I was wondering is it possible to for example have a color clip set to greyscale and then slowly re-introduce the color back into the clip.
Is such a thing possible in Avisynth?

foxyshadis
7th May 2006, 04:51
Something like

o=last
white=blankclip(last,color_yuv=$ff8080)
grey=greyscale
mask=animate(white,100,500,"levels", 0,1,255,0,255, 0,1,255,0,0).fity2uv
fade=mt_merge(o,grey,mask,y=2,chroma="process")

return fade

?

This might be easier with fade, or some of the other helper functions around, but it was the first thing I thought of so that's how I did it. :p

FitY2UV is part of masktools and mt_merge is part of masktools2.

Guest
7th May 2006, 04:54
v=MPEG2Source("test.d2v")
# The first two args to animate() are the starting
# and ending frames for the operation.
animate(0, 100, "Tweak", v, 0.0, 0.0, v, 0.0, 1.0)

WalterK
7th May 2006, 05:30
Thanks a lot neuron2 and foxyshadis
And heres a noob question where can i find a list of args used by Animate and ApplyRange?
Intially I did try ApplyRange but it snapped back to color too quick, didn't know Animate had the same arg, although I should have since they are in the same group in Avisynth manual.

foxyshadis
7th May 2006, 06:18
The arguments to animate are the filter's arguments, the first half are the starting and the second half are the ending (has to be an even number of args, thus). Like applyrange but doubled up.

Wish I'd remembered tweak ;_;