View Full Version : Rainbow effect?
Eretria-chan
23rd April 2006, 18:31
Does anyone know how to remove this effect? I think it's called "rainbow effect"? It occours all over the movie clip. This is just one instance.
http://www.eluni.net/temp/Rainbow.JPG
foxyshadis
23rd April 2006, 20:00
SSIQ, bifrost, and smartSSIQ (http://forum.doom9.org/showpost.php?p=748304&postcount=26) are good places to start looking. fft3dfilter also tends to help a lot at times.
Now that I look at the function again I want to make some changes to further improve it. ;_; Would it be too much trouble to grab a short clip of that scene from you?
Sirber
23rd April 2006, 20:06
One Piece :D
@Eretria-chan
Post in RealANime 4 thread if you're having troubles using the filters.
Eretria-chan
23rd April 2006, 20:27
But I don't know where to find those filters, and smartSSIQ are dependant on other filters. Perhaps a google search? I could try that...
Also, it is quite obvious that a lot of One Piece episodes has this rainbow problem, so would there be a way to share the smartSSIQ filter function between lots of script? A script for each episode to rid that stupid rainbow effect.
Oh, by the way, do you think it's possible to do this with ffdshow? I'll need to remove the rainbow effect on each episode anyway before re-encoding them.
foxyshadis
23rd April 2006, 20:54
First stop for filters is:
http://www.avisynth.org/warpenterprises/ (warp isn't always up to date for new filters though)
then a forum search, and then google. And finally of course you can just post and someone will find or have it. :p
You can add it to script templates, I'm sure sirber would know a lot more about doing it in RA though.
In ffdshow you can use Blur & NR -> chroma smoother + denoise3d (chroma only, no luma). However, that isn't as effective as avisynth filters.
Eretria-chan
23rd April 2006, 23:15
You can add it to script templates, I'm sure sirber would know a lot more about doing it in RA though.
Not sure I understand what you mean with "script templates"...
But it seems the plugin page you linked to has the plugins needed for your script. I'll check it out tomorrow. Thanks!
scharfis_brain
23rd April 2006, 23:18
you may test TComb.dll from tritical
Eretria-chan
23rd April 2006, 23:28
Then can you help me provide the correct arguments? I've no idea what the function needs, and I don't understand techical video terms. And I don't know if I need to use anything like ToYV-something avisynth commands, either.
MeteorRain
24th April 2006, 02:36
both ssiq and smartssiq don't perform good effect on processing rainbow effect on white text on my pc....
scharfis_brain
24th April 2006, 04:50
There is a good documentation included in the archieve of TComb. just read it. I won't do anything else.
Alain2
24th April 2006, 11:25
What about DeRainbow from sh0dan ? Works good usually for me, but tend to modify a bit the colors
Eretria-chan
24th April 2006, 11:30
Can't get it to work! Here is DeRainbow:
LoadPlugin("MSharpen.dll")
LoadPlugin("MaskTools.dll")
LoadPlugin("MipSmooth.dll")
input = DirectShowSource("F:\BitComet\Downloads\One Piece\[K-F]_One_Piece_036_[3C09EFC5].avi")
return DeRainbow(input, 1000)
function DeRainbow(clip org, int "thresh")
{
assert(org.isYV12(),"DeRainbow() requires YV12 input!")
thresh = default(thresh, 10)
org_u = utoy(org)
org_v = vtoy(org)
msharpen(org, threshold = thresh, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255, coring=false).blur(1.5).blur(1.5).levels(50,2.0,255,0,255, coring=false)
filtered_u = org_u.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
filtered_v = org_v.mipsmooth(spatial=255, temporal=255, scenechange=3, show=false, method="strong", scalefactor=0.5)
u_final = MaskedMerge(org_u, filtered_u, uv)
v_final = MaskedMerge(org_v, filtered_v, uv)
return ytouv(u_final, v_final, org)
}
#Onepiece36
Yes, also tried 10, and it didn't work either.
Here is smartSSIQ:
LoadPlugin("mt_masktools.dll")
LoadPlugin("SSIQ.dll")
input = DirectShowSource("F:\BitComet\Downloads\One Piece\[K-F]_One_Piece_036_[3C09EFC5].avi")
SmartSSIQ(input, 255)
function SmartSSIQ(clip input, int "strength")
{
strength = default(strength, 200) #processing strength, 0-255
# apply rainbow remover to the entire video
derainbow = input.SSIQ(11, 300, false)
# create an edge mask from the rainbow video
lutexpr = "x .2 ^ 110 *"
# uncomment to use masktools 1
#edgemask = input.edgemask(thY1=1, thY2=255, type="sobel").inflate().yv12lut(yexpr=lutexpr).GreyScale()
edgemask = input.mt_edge(thY1=1, thY2=255, mode="sobel").mt_inflate().mt_lut(yexpr=lutexpr).GreyScale()
# apply ssiq only to masked area, using "strength"
result = overlay(input, derainbow, mode="blend", mask=edgemask, opacity=strength/255.0).Limiter()
return result
}
#Onepiece36
Results? DeRainbow: artifacts still there. smartSSIQ: Black screen.
MeteorRain
25th April 2006, 12:25
smartSSIQ and SSIQ works for me, but the result is not so satisfied. and it's really slow.....
i'd have a try on DeRainbow and TComb these days.
==edit==
DeRainbow works fine for me.
MPEG2Source("main.d2v")
DeRainbow(20)
IT(fps=24,ref="TOP",blend=false,diMode=3)
assumefps(2997,125)
crop(4,0,-4,-0)
bicubicresize(640,480,0.3333,0.3333)
MR
Eretria-chan
25th April 2006, 13:01
Might be the source and mine is MPEG4 ASP (xvid I assume).
Mug Funky
26th April 2006, 11:17
doesn't look like a 4kids approved source, that... i assume you've read the rules?
http://forum.doom9.org/forum-rules.htm
rule 6 is the one i'm unsure on...
[edit]
btw, the DVD master tapes (DBcam) for One Piece also have rainbows on them. looks like somebody in japan took a short cut and dubbed via composite.
Eretria-chan
26th April 2006, 11:55
Yes, the rules... I've read them...
I will not say where I aquired the source, there's no need for that. These rainbows... just ... exist. And I haven't made any progress in clearing them out on the episodes they're present.
Wilbert
26th April 2006, 12:31
I will not say where I aquired the source, there's no need for that.
input = DirectShowSource("F:\BitComet\Downloads\One Piece\[K-F]_One_Piece_036_[3C09EFC5].avi")
...
Closed thread.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.