View Full Version : Apply color cast to video
Pudah
10th December 2007, 03:17
I'd like to apply a color cast to a video, somewhat like the following (which I did on a still in an image editing program). Is there a way that I can do this in Avisynth? I've tried messing around with hue and saturation in Tweak() but nothing looks right. Any suggestions on what I might try? TIA
neuron2
10th December 2007, 03:37
I have a VirtualDub filter that will do it:
http://neuron2.net/tint/tint.html
You could import it into Avisynth.
Pudah
10th December 2007, 05:34
aaahhh... Tint... why couldn't I think of that word? Thanks Don, your tip worked great.
In doing a search on how to import VD filters into Avisynth, I also stumbled upon a Tint() (http://avisynth.org/oldwiki/index.php?page=Tint) script. Playing with both now to get the look I am after.
Again, thanks much.
Leak
10th December 2007, 10:51
In doing a search on how to import VD filters into Avisynth, I also stumbled upon a Tint() (http://avisynth.org/oldwiki/index.php?page=Tint) script. Playing with both now to get the look I am after.
JFTR - another option would be using ffavisynth; you can use just about any filter that's in ffdshow in AviSynth, which includes the "Colorize" setting of the "Picture properties" filter...
sh0dan
10th December 2007, 11:50
ok, had to think of some else, besides work:
imagesource("white car.jpg",0,100,25)
crop(0,0,460,256)
converttoyv12()
greyscale()
vid = last
vid_r= vid.reduceby2()
v_mask = overlay(vid_r,invert(vid_r),mode="darken")
u_mask = overlay(vid_r,invert(vid_r),mode="lighten")
y=vid.coloryuv(cont_y=-80,off_y=-30,gamma_y=-60)
u=u_mask.coloryuv(cont_y=-200,off_y=-20)
v=v_mask.coloryuv(cont_y=-100,off_y=70)
ytouv(u,v,y)
#histogram("levels")
stackvertical(imagesource("white car red.jpg",0,100,25).crop(0,0,460,256).converttoyv12())
Overlay could be replaceable by masktools, if you are pressed for speed.
neuron2
10th December 2007, 15:04
Now that I have looked at the attachments, it looks like more of a "colorize" application. Tint overlays a color but doesn't totally kill the source colors. Colorize maps all colors to a single color (like a sepia photo). I just wanted to mention that in case the OP really was looking for a colorize effect. I have a VirtualDub colorize filter as well:
http://neuron2.net/colorize.html
Wilbert
10th December 2007, 20:57
Colorlooks:
http://forum.doom9.org/showthread.php?t=97706
Pudah
11th December 2007, 10:35
Tint overlays a color but doesn't totally kill the source colors.
I did notice this. It wasn't originally what I was after, but I like the look of it in some of the video I was playing with. I will also give Colorize a try.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.