digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Reducing green tinge? (http://www.digitalfaq.com/archives/avisynth/12687-avisynth-reducing-green.html)

Mental 10-20-2004 02:33 PM

Avisynth: Reducing green tinge?
 
I`ve been working on a script to produce a 3D effect that works with 3D glasses. It takes three copies of a film and overlays one coloured red, one coloured green and one normal.

It works nicely, needs some tweaking, but the green is overpowering and results in a very notable green hue. Is there a way to reduce the green colour just a little?

The script is between the asterisks:

****
source=avisource("C:\AVI\video_data\video.avi")
source=ConvertToRGB(source)
left=source
right=source


left=RGBAdjust(left, 2, 1, 1, 1)
right=RGBAdjust(right, 0, 1.4, 0, 0)

right=ConvertToYUY2(right)
right=tweak(right, bright=45)

film=Overlay(left, right, mask = left.ShowAlpha("yuy2"), x=4, y=1, opacity=0.5)
film2=Overlay(film, source, mask = source.ShowAlpha("yuy2"), opacity=0.3)
film2=ConvertToYUY2(film2)


film2=tweak(film2, bright=33)
return(film2)
****

Thanks :)

jorel 10-20-2004 03:36 PM

try RGBAdjust:

http://www.avisynth.org/RGBAdjust

or tweak and adjust hue (look avisynht docs/faqs)

:!:

Mental 10-23-2004 12:42 PM

Thanks. I tried that but still noticeable tinge so swapped the overlay mask to be that of the source and this made a good difference with rgb adjust used as well.

Thanks :)


All times are GMT -5. The time now is 08:29 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.