digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Rainbow effect? (http://www.digitalfaq.com/archives/avisynth/14376-avisynth-rainbow-effect.html)

Krassi 09-14-2006 07:41 AM

Avisynth: Rainbow effect?
 
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.

http://www.digitalfaq.com/archives/i.../2006/09/1.jpg

Boulder 09-15-2006 03:40 AM

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).

Krassi 09-15-2006 04:43 AM

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

Boulder 09-15-2006 04:49 AM

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.

Krassi 09-16-2006 07:14 AM

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 :lol: :!:

Boulder 09-16-2006 07:29 AM

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.

supermule 09-18-2006 01:24 AM

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

Boulder 09-18-2006 01:29 AM

http://www.avisynth.org/tsp/


All times are GMT -5. The time now is 11:54 AM  —  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.