View Full Version : Remove Rainbow DBZ
Eevee
7th November 2014, 08:43
Hi Greetings This is my Post SO be Kind
am just new in Avisynth Usage and Encoding
am trying to remove rainbow
http://forum.doom9.org/attachment.php?attachmentid=14469&stc=1&d=1416123866
I want like this
http://forum.doom9.org/attachment.php?attachmentid=14468&stc=1&d=1416123866
am using this script
converttoyv12()
Blur(1.0)
org = last
org_u = utoy(org)
org_v = vtoy(org)
msharpen(threshold = 10, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255).blur(1.5)
filtered_u = org_u.blur(1.5).blur(1.5).blur(1.5).temporalsoften(2,255,0,3,2)
filtered_v = org_v.blur(1.5).blur(1.5).blur(1.5).temporalsoften(2,255,0,3,2)
u_final = MaskedMerge(org_u, filtered_u, uv)
v_final = MaskedMerge(org_v, filtered_v, uv)
ytouv(u_final, v_final, org)
lanczosresize(640,480)
tweak(sat=1.1, cont=1.2)
hqdn3d(3)
but did not work
Thanks in Advance
feisty2
7th November 2014, 09:18
hi, bro, just read ur post via my latest univeral ("univeral" literally) translator, :D
and back on track
rainbow is a toxic bitch artifacts
dont put too much faith on some imaginary magic filter that gets rid of this crap perfectly
feisty2
7th November 2014, 09:37
downsizing chroma did great jobs (comparing to other derainbow methods) on very rainboweeey clips i remember
feisty2
7th November 2014, 09:52
a very weird idea just popped outta my head
maybe just discard the original chroma and reconstruct it completely?
first, separate luma out, clearly it's the one and only plane free from rainbow mess
then convert the rainboweeey source clip to rgb and use "colorlike" filter to get the overall color hints of every r, g, b channel
now, apply those hits on luma plane again by "colorlike" to reconstruct a new rainbow free rgb clip
then u can convert it to yv12 or just keep that way
Eevee
7th November 2014, 17:20
a very weird idea just popped outta my head
maybe just discard the original chroma and reconstruct it completely?
first, separate luma out, clearly it's the one and only plane free from rainbow mess
then convert the rainboweeey source clip to rgb and use "colorlike" filter to get the overall color hints of every r, g, b channel
now, apply those hits on luma plane again by "colorlike" to reconstruct a new rainbow free rgb clip
then u can convert it to yv12 or just keep that way
Thanks for Reply
Wait a bit am not expert in rainbow remover i just got from
http://forum.doom9.org/showthread.php?p=798290#post798290
avisource("D:\1.avi")
converttoyv12()
Blur(1.0)
org = last
org_u = utoy(org)
org_v = vtoy(org)
msharpen(threshold = 10, mask=true)
reduceby2()
greyscale()
uv = blur(1.5).levels(0,2.0,255,0,255).blur(1.5)
filtered_u = org_u.blur(1.5).blur(1.5).blur(1.5).temporalsoften(2,255,0,3,2)
filtered_v = org_v.blur(1.5).blur(1.5).blur(1.5).temporalsoften(2,255,0,3,2)
u_final = MaskedMerge(org_u, filtered_u, uv)
v_final = MaskedMerge(org_v, filtered_v, uv)
ytouv(u_final, v_final, org)
I don't understand :confused: will be nice if you give me a example
:)
Regards
bxyhxyh
7th November 2014, 20:59
Can you share a part from source? Then people would help you for rainbow removing script.
Eevee
8th November 2014, 02:52
Can you share a part from source? Then people would help you for rainbow removing script.
i can't handle big size of episode so i used me gui to convert it
General
Unique ID : 199881280821684909261376238832754740361 (0x965FBC0202FD10EBBDBEF148F421CC89)
Complete name : D:\39 (1).mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 236 MiB
Duration : 23mn 36s
Overall bit rate mode : Variable
Overall bit rate : 1 395 Kbps
Encoded date : UTC 2014-11-17 01:46:17
Writing application : mkvmerge v7.2.0 ('On Every Street') 32bit built on Sep 13 2014 15:42:11
Writing library : libebml v1.3.0 + libmatroska v1.4.1
DURATION : 00:23:23.070000000
NUMBER_OF_FRAMES : 203
NUMBER_OF_BYTES : 13442
_STATISTICS_WRITING_APP : mkvmerge v7.2.0 ('On Every Street') 32bit built on Sep 13 2014 15:42:11
_STATISTICS_WRITING_DATE_UTC : 2014-11-17 01:46:17
_STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 36s
Bit rate : 1 230 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.167
Stream size : 198 MiB (84%)
Writing library : x264 core 60 r913bm 64848ff
Encoding settings : cabac=1 / ref=1 / deblock=1:1:0 / analyse=0x3:0x113 / me=tesa / subme=7 / brdo=1 / mixed_ref=0 / me_range=24 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=15 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / bime=1 / keyint=240 / keyint_min=23 / scenecut=40 / rc=abr / bitrate=1230 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=1.00 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
Default : Yes
Forced : No
Audio #1
ID : 2
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 23mn 36s
Bit rate mode : Variable
Bit rate : 80.0 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 13.5 MiB (6%)
Writing library : libVorbis 1.0 (UTC 2002-07-17)
Language : Japanese
Default : Yes
Forced : No
Audio #2
ID : 3
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 23mn 36s
Bit rate mode : Variable
Bit rate : 112 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 18.9 MiB (8%)
Writing library : libVorbis 1.0 (UTC 2002-07-17)
Language : English
Default : No
Forced : No
Text
ID : 4
Format : SSA
Codec ID : S_TEXT/SSA
Codec ID/Info : Sub Station Alpha
Compression mode : Lossless
Language : English
Default : Yes
Forced : No
bxyhxyh
8th November 2014, 06:09
I mean a part as a few second sample from the source that have problem, cut by dgindex or some other program that doesn't re-encode the video.
lansing
9th November 2014, 22:42
I honestly didn't see any rainbow in your picture, can you point out where it is?
Overdrive80
13th November 2014, 21:35
You should read rule 6) of forum.
See this thread http://forum.doom9.org/showthread.php?t=169758&page=2
GMJCZP
18th November 2014, 00:26
In my view rather than eliminate rainbows which seeks to improve the contrast, that is, the black is really black (see hair of Gohan) and so on.
Eevee, test to start the following:
Levels (16,1,235,0,255, coring = false)
You can also play with the Tweak function, searches in Avisynth manual how to use these functions.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.