This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

help please
#16
ok, i have movded on from that, im not painting frame by frame it is what it is at this point. I have ran into  a new problem though i am hoping you can help me with.  in season 4 espide 5 treeohouse of horros III during the king homer segment which is black and white i am geting colored rainbowing filters  cant fix. I am trying to greyscale a specific set of frames,  [12255 21450]  in a 16-bit YUV colorspace,  but  SufflePlanes is throwing "argument colorfamily required" or "1-3 clips required" errors, and remap.RFS is reporting as a missing module. My script 
# defining beforeBiFrost-function - START
def beforeBiFrost(clip):
core.std.LoadPlugin(path=r"C:\Program Files\Hybrid\64bit\vsfilters\DeCrawlFilter\Tcomb\libtcomb.dll")
clip = core.tcomb.TComb(clip, mode=2, fthreshl=4, fthreshc=7, othreshl=5, othreshc=8)
return [clip]
# defining beforeBiFrost-function - END

# defining beforeDeblockQED-function - START
def beforeDeblockQED(clip):
clip = core.std.Crop(clip, left=10, right=10, top=0, bottom=4)
return [clip]
# defining beforeDeblockQED-function - END

# defining beforeResize-function - START
def beforeResize(clip):
# 1. Standard Upscale/Resizing
clip = core.resize.Spline36(clip, width=640, height=480, format=vs.YUV420P16)
clip = core.nnedi3cl.NNEDI3CL(clip, field=0, dh=True, nsize=4, nns=4, qual=2)
clip = core.std.Transpose(clip)
clip = core.nnedi3cl.NNEDI3CL(clip, field=0, dh=True, nsize=4, nns=4, qual=2)
clip = core.std.Transpose(clip)
clip = core.resize.Spline36(clip, matrix_in_s="170m", matrix_s="709")
clip = core.std.SetFrameProps(clip, _Matrix=1, _Transfer=1, _Primaries=1, _SARNum=1, _SARDen=1)
# 1. Strip color to kill rainbows
grey_plane = core.std.ShufflePlanes(clip, planes=0)
# 2. Rebuild as YUV so sharpeners don't crash
grey_final = core.std.ShufflePlanes(clips=[grey_plane, grey_plane, grey_plane], planes=[0,0,0], colorfamily=vs.YUV)
# 3. Swap the frames using the native Hybrid tool
import remap
clip = remap.Rfs(clip, grey_final, mappings="[12255 21450]")
return [clip]
# defining beforeResize-function - END

# Import scripts
import edi_rpow2
import deband
import sharpen
import hysteria
import color
import chromaBleeding
import nnedi3_resample
import smdegrain
import dehalo
import deblock
import qtgmc
import validate
# Source: 'D:\Season 4 disk 2\A1_t00.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 720x480, frame rate: 29.97fps, scanorder: top field first, yuv luminance scale: limited, matrix: 170m, format: mpeg-2
# Loading 'D:\Season 4 disk 2\A1_t00.mkvÄ using LWLibavSource
clip = core.lsmas.LWLibavSource(source="D:/Season 4 disk 2/A1_t00.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# setting color matrix to 170m.
clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_ST170_M)
# setting color transfer (vs.TRANSFER_BT601), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT601)
# setting color primaries info (to vs.PRIMARIES_BT470_BG), if it is not set.
if validate.primariesIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT470_BG)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED)
# making sure frame rate is set to 29.97fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
# making sure the detected scan type is set (detected: top field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_TOP) # scan type: top field first
[clip] = beforeBiFrost(clip)
# clip current meta; color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 29.97, color matrix: 170m, yuv luminance scale: limited, scanorder: top field first, full height: true
# rainbow removal using BiFrost
clip = core.bifrost.Bifrost(clip, luma_thresh=4.00, variation=20, conservative_mask=True, interlaced=True)
clip2clip = clip
clip2clip = qtgmc.QTGMC(Input=clip2clip, Preset="fast", opencl=True, TFF=False, FPSDivisor=2)
# Deinterlacing using TIVTC
clip = core.tivtc.TFM(clip, clip2=clip2clip)
clip = core.tivtc.TDecimate(clip, mode=1) # new fps: 23.976
# Making sure content is preceived as frame based
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive
[clip] = beforeDeblockQED(clip)
# clip current meta; color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 23.976, color matrix: 170m, yuv luminance scale: limited, scanorder: progressive, full height: true
# applying deblocking using DeBlock QED
clip = deblock.Deblock_QED(clip, uv=1)
clip = core.vinverse.vinverse2(clip, sstr=1.50, amnt=128)
# Dehalo using EdgeCleaner
clip = dehalo.EdgeCleaner(clip, strength=8)
# applying dehalo using DeHalo_alpha
clip = dehalo.DeHalo_alpha(clip, rx=1.00, ry=1.00, darkstr=0.40, brightstr=0.50, highsens=25, lowsens=25)
# removing grain using SMDegrain
clip = smdegrain.SMDegrain(clip, tr=6, thSAD=900, thSADC=500, RefineMotion=True, interlaced=False, pel=2, search=5, opencl=True, device=0)
# Fixing chroma bleeding using FixChromaBleedingMod
clip = chromaBleeding.FixChromaBleedingMod(clip, cx=3, cy=3, thr=1.00, strength=1.00)
[clip] = beforeResize(clip)
# clip current meta; color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 23.976, color matrix: 170m, yuv luminance scale: limited, scanorder: progressive, full height: true
# adjusting color using Tweak
clip = color.Tweak(clip, hue=2.50, sat=1.00, cont=1.04, bright=-2, coring=False)
# sharpening using AWarpSharp2
clip = core.warp.AWarpSharp2(clip, blur=3, chroma=True)
# Using Hysteria for line darkening
clip = hysteria.Hysteria(clip, strength=3.00, lowthresh=2, highthresh=10, luma_cap=140)
# sharpening using LimitedSharpenFaster(Mod)
clip = sharpen.LSFmod(clip, strength=140, Szrp=1, SdmpHi=30, Lmode=3, edgemode=2, edgemaskHQ=True, preblur=1, cuda=True)
# debanding using GradFun3
clip = deband.GradFun3(clip, thr=0.40, mode=0, ampn=0.05, smode=5)
# adjusting output color from YUV420P8 to YUV420P10 for x265Model
clip = core.resize.Spline36(clip=clip, format=vs.YUV420P10, dither_type="error_diffusion")
# set output frame rate to 23.976fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# output
clip.set_output()
# script was created by Hybrid 2026.03.21.1
other commands i have tried in  insert before resize
grey_plane = core.std.ShufflePlanes(clip, planes=0, colorfamily=1)
grey_final = core.std.ShufflePlanes(clips=[grey_plane, grey_plane, grey_plane], planes=[0, 0, 0], colorfamily=1)
import remap
clip = remap.Rfs(clip, grey_final, mappings="[12255 21450]")

grey_plane = core.std.ShufflePlanes(clip, 0, 1)
grey_final = core.std.ShufflePlanes(grey_plane, grey_plane, grey_plane, 0, 0, 0, 1)
import remap
clip = remap.Rfs(clip, grey_final, "[12255 21450]")

grey_plane = core.std.ShufflePlanes(clip, 0, 1)
grey_final = core.resize.Spline36(grey_plane, format=vs.YUV420P16)
import remap
clip = remap.Rfs(clip, grey_final, "[12255 21450]")
Reply


Messages In This Thread
help please - by lsd4me2 - 01.04.2026, 21:36
RE: help please - by Selur - 02.04.2026, 06:56
RE: help please - by lsd4me2 - 03.04.2026, 19:06
RE: help please - by Selur - 03.04.2026, 19:22
RE: help please - by lsd4me2 - 06.04.2026, 02:39
RE: help please - by Selur - 06.04.2026, 05:06
RE: help please - by lsd4me2 - 06.04.2026, 05:56
RE: help please - by Selur - 06.04.2026, 06:01
RE: help please - by lsd4me2 - 06.04.2026, 06:14
RE: help please - by Selur - 06.04.2026, 07:20
RE: help please - by lsd4me2 - 06.04.2026, 07:51
RE: help please - by Selur - 06.04.2026, 10:50
RE: help please - by lsd4me2 - 06.04.2026, 18:21
RE: help please - by Selur - 06.04.2026, 18:24
RE: help please - by Selur - 06.04.2026, 19:12
RE: help please - by lsd4me2 - Today, 01:20
RE: help please - by Selur - 8 hours ago
RE: help please - by lsd4me2 - 8 hours ago
RE: help please - by Selur - 8 hours ago
RE: help please - by lsd4me2 - 5 hours ago
RE: help please - by Selur - 4 hours ago
RE: help please - by lsd4me2 - 3 hours ago
RE: help please - by Selur - 3 hours ago
RE: help please - by lsd4me2 - 2 hours ago
RE: help please - by Selur - 2 hours ago
RE: help please - by lsd4me2 - 31 minutes ago

Forum Jump:


Users browsing this thread: videoh, 1 Guest(s)