Quantcast Avisynth: Rainbow Effect? - digitalFAQ.com Forums [Archives]
  #1  
09-14-2006, 07:41 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Guys,

i have a big problem with my noisy dv capture from my wedding. The shot was in the evening and my sony dv-cam has produced a rainbow effect i can't get rid of. I'm not sure if it really is a rainbow effect. I've already tried a lot of different avisynth filters (FFT3DFilter,DeRainbow,DeRainbow2,convolution3d,CN R2,RemoveGrain), none was able to give me a sufficient result.
Code:
FFT3DFilter(sigma=3, interlaced=true, plane=4)
was the best one so far.
Do you have a hint for me?

Attached you can find a screenshot, i mean those yellow or colored parts on the wall and the ceiling (which is white in real life). Sorry for the black rectangle...

Thanks
Krassi

BTW: HDRAGC is one of the best filters i've seen so far. It makes HDR available to vids.

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  
09-15-2006, 03:40 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
You need to play with the different sigmas.

Try this : FFT3DFilter(sigma4=7,sigma=2,bt=3,mode=1,degrid=1, plane=1). If you have a decent graphics card, you could use FFT3DGPU for faster processing (FFT3DFilter also got updated a short while ago).
Reply With Quote
  #3  
09-15-2006, 04:43 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Boulder,

thanks, a great answer. I've changed sigma4 to 56 for eliminating those rainbows. Do you know if i'm losing details with such a high setting
I'm previewing my scripts with AvsP.

Thanks
Krassi
Reply With Quote
  #4  
09-15-2006, 04:49 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
You might be losing chroma information (i.e. colors may fade). There are four sigmas: sigma4,sigma3,sigma2,sigma1. Try setting sigma=1 and then try with each sigma to a high value. That is, try FFT3DFilter(sigma4=30,sigma=1,bt=3,mode=1,degrid=1 ,plane=1), FFT3DFilter(sigma3=30,sigma=1,bt=3,mode=1,degrid=1 ,plane=1),
FFT3DFilter(sigma2=30,sigma=1,bt=3,mode=1,degrid=1 ,plane=1) and
FFT3DFilter(sigma1=30,sigma=1,bt=3,mode=1,degrid=1 ,plane=1) (all separately, of course). See which one appears to get rid of the blotches best, then focus on that sigma and leave the rest at 1 or so.

You can compare the original and filtered one easily by using Interleave(last,FFT3DFilter(...)). That way you'll see if you are losing much of the colors.

I have a Sony DV cam as well and usually 10-20 has been high enough to get rid of the issue. I've also set the white balance to "outdoor" because the automatic setting is quite bad actually.
Reply With Quote
  #5  
09-16-2006, 07:14 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
After some pm-exchange with Boulder we were able to eliminate the rainbow while keeping chroma information with the following filter setting:
Code:
FFT3DGPU(sigma4=25,sigma3=15,plane=1,bt=3,mode=1,degrid=1)
Here is the complete script:
Code:
AssumeBFF() 
MVBob() 
RemoveGrain(mode=1) 
HDRAGC(coef_gain=0.5,coef_sat=0.9) 
FFT3DGPU(sigma4=25,sigma3=15,plane=1,bt=3,mode=1,degrid=1) 
cleaned = TemporalSoften(2,5,0,8,2) 
backward_vec2 = cleaned.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=8, sharp=2, idx = 22, blksize=16) 
backward_vec1 = cleaned.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=8, sharp=2, idx = 22, blksize=16) 
forward_vec1 = cleaned.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=8, sharp=2, idx = 22, blksize=16) 
forward_vec2 = cleaned.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=8, sharp=2, idx = 22, blksize=16) 
a=MVDegrain2(last,backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=23) 
b = a.DegrainMedian() 
SeeSaw(a,b, NRlimit=5, NRlimit2=6,Sstr=1.5, Slimit=8, Spower=8, Szp=16,soothet=80) 
ColorMatrix(mode="rec.601->rec.709") 
AssumeBFF() 
SeparateFields() 
SelectEvery(4,0,3) 
Weave()
Thank you Boulder, you've saved my wedding
Reply With Quote
  #6  
09-16-2006, 07:29 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
I forgot to mention that if you have an HT-capable or multicore CPU, you can use tsp's special Avisynth build and his MT filter for a nice performance boost. It should make the SeeSaw part quite a bit faster.
Reply With Quote
  #7  
09-18-2006, 01:24 AM
supermule supermule is offline
Free Member
 
Join Date: Sep 2005
Location: Donkeyland
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
I forgot to mention that if you have an HT-capable or multicore CPU, you can use tsp's special Avisynth build and his MT filter for a nice performance boost. It should make the SeeSaw part quite a bit faster.
Do you have th link ???, I can use that for my dual core
Reply With Quote
  #8  
09-18-2006, 01:29 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.avisynth.org/tsp/
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Gibbs effect - how to? rds_correia Avisynth Scripting 33 06-02-2005 03:40 PM
The butterfly effect vmesquita Off-topic Lounge 5 05-24-2004 03:25 AM
How to Remove Ghost effect? ralf Video Encoding and Conversion 2 11-04-2003 06:15 PM
Avisynth: Gibbs Effect LadyMiles Avisynth Scripting 0 11-29-2002 08:56 PM
mosquito noise effect? black prince Video Encoding and Conversion 7 08-01-2002 01:17 AM

Thread Tools



 
All times are GMT -5. The time now is 11:26 PM  —  vBulletin Jelsoft Enterprises Ltd