Quantcast Avisynth: Reducing Green Tinge? - digitalFAQ.com Forums [Archives]
  #1  
10-20-2004, 02:33 PM
Mental Mental is offline
Free Member
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Dave
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-20-2004, 03:36 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
try RGBAdjust:

http://www.avisynth.org/RGBAdjust

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

Reply With Quote
  #3  
10-23-2004, 12:42 PM
Mental Mental is offline
Free Member
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Dave
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Green pixelation artifacts on Xvid via Avisynth? rs008f Avisynth Scripting 10 03-23-2004 09:33 PM
Avisynth: Motion adaptive green? CheronAph Avisynth Scripting 24 06-25-2003 01:17 AM
Avisynth: Filter for reducing brightness? Kane Avisynth Scripting 8 02-15-2003 12:30 PM
Avisynth: Reducing video noise / best template setting? 2COOL Avisynth Scripting 2 10-15-2002 09:34 PM
KVCD: Get green patches when using avisynth? cracker Video Encoding and Conversion 0 06-14-2002 08:01 PM

Thread Tools



 
All times are GMT -5. The time now is 02:21 AM  —  vBulletin © Jelsoft Enterprises Ltd