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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th December 2007, 03:17   #1  |  Link
Pudah
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
Attached Images
  
Pudah is offline   Reply With Quote
Old 10th December 2007, 03:37   #2  |  Link
Guest
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.
Guest is offline   Reply With Quote
Old 10th December 2007, 05:34   #3  |  Link
Pudah
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.
Pudah is offline   Reply With Quote
Old 10th December 2007, 10:51   #4  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Pudah View Post
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.
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...
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 10th December 2007, 11:50   #5  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
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())
Overlay could be replaceable by masktools, if you are pressed for speed.
__________________
Regards, sh0dan // VoxPod

Last edited by sh0dan; 10th December 2007 at 14:36.
sh0dan is offline   Reply With Quote
Old 10th December 2007, 15:04   #6  |  Link
Guest
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
Guest is offline   Reply With Quote
Old 10th December 2007, 20:57   #7  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Colorlooks:

http://forum.doom9.org/showthread.php?t=97706
Wilbert is offline   Reply With Quote
Old 11th December 2007, 10:35   #8  |  Link
Pudah
Registered User
 
Join Date: Jul 2004
Location: East of the Rock, West of the Hard Place
Posts: 40
Quote:
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.
Pudah is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.