Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
10th December 2007, 03:17 | #1 | Link |
Registered User
Join Date: Jul 2004
Location: East of the Rock, West of the Hard Place
Posts: 40
|
Apply color cast to video
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
|
10th December 2007, 03:37 | #2 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
I have a VirtualDub filter that will do it:
http://neuron2.net/tint/tint.html You could import it into Avisynth. |
10th December 2007, 05:34 | #3 | Link |
Registered User
Join Date: Jul 2004
Location: East of the Rock, West of the Hard Place
Posts: 40
|
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() script. Playing with both now to get the look I am after. Again, thanks much. |
10th December 2007, 10:51 | #4 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
__________________
now playing: [artist] - [track] ([album]) |
|
10th December 2007, 11:50 | #5 | Link |
Retired AviSynth Dev ;)
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
|
ok, had to think of some else, besides work:
Code:
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())
__________________
Regards, sh0dan // VoxPod Last edited by sh0dan; 10th December 2007 at 14:36. |
10th December 2007, 15:04 | #6 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
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 |
11th December 2007, 10:35 | #8 | Link | |
Registered User
Join Date: Jul 2004
Location: East of the Rock, West of the Hard Place
Posts: 40
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|