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
#11
im sorry, but idk how to change that, i added the file to my google drive, clicked copy link and pasted, you asked my add 
https://drive.google.com/file/d/176xoM4a...sp=sharing
  i googled and it said to place the
before and after link
,  i did
Reply
#12
You need to share it for everybody.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#13
https://drive.google.com/file/d/1gMzWnJ-BhUUDPfIz9NRzS6TBMt2qqcjI/view?usp=sharing
  This?
Reply
#14
Got it. Will look at it

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#15
Problem is those blends are already inside the separated fields (an they are not restricted to one YUV channel).
Instead of TIVTC you can use QTGMC + sRestore(23.976) (or DeBlendS6), which help a bit the chroma blends.
But the only 'solution' would be to either manually fix those frames or replace them with adjacent frames.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#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
#17
1. Resolution problem
# 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
might cause problems, since you didn't let Hybrid know of the new width and height. (see tool-top of 'Insert before')

2. beforeResize
# 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
If you just want to turn a section into gray scale simply use Tweak with Saturation 0 and user 'ApplyOnlyTo' with your section.
About your ceo
a. also resolution handling, see above
b.
import remap
clip = remap.Rfs(clip, grey_final, mappings="[12255 21450]")
seems wrong, usually one would:
a. import the RemapFramesVapoursynth.dll via a LoadPlugin call
b. then use core.remap.Rfs
Which of the ShufflePlanes call fails?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#18
"If you just want to turn a section into gray scale simply use Tweak with Saturation 0 and user 'ApplyOnlyTo' with your section. " that would e the simplest solution and i tried to do it that way. Under vaporsynth/Misc/UI i checked the option for show "apply only to" controls, but under the Color/basic tab where tweak is there is stil nothing there to set the range. Also if i did it that way i would lose my settings for the color parts, no?
Reply
#19
Did scroll to the right ?
[Image: grafik.png]
the controls are a bit farther to the right, due to the length of the SmoothLevels option. Smile

Yes, doing that would only change the chroma.
The changing of the color space and upscaling would be lost and still cause problems if used in Hybrid. (due to not letting Hybrid know of the changes)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#20
Thanks Selur! i think I've got it

# 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 beforeResize-function - START
def beforeResize(clip):
# width 1280
# height 960
# colormatrix Rec.709
# colorformat YUV420P16
# 1. Manual 2x Upscale
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)
# 2. Kill Rainbows (Grayscale)
grey = core.std.ShufflePlanes(clip, 0, 1)
grey = core.resize.Spline36(grey, format=vs.YUV420P16)
# 3. Load Plugin Manually 
core.std.LoadPlugin(path=r"C:\Program Files\Hybrid\64bit\vsfilters\Support\RemapFramesVapoursynth.dll")
clip = core.remap.Rfs(clip, grey, 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 = core.std.Crop(clip, left=10, right=10, top=0, bottom=4) # cropping to 700x476
# 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: YUV420P16, bit depth: 16, resolution: 1280x960, fps: 23.976, color matrix: Rec.709, yuv luminance scale: limited, scanorder: progressive, full height: true
# adjusting color using Tweak
clip = color.Tweak(clip, hue=0.00, sat=1.00, cont=1.04, bright=-512, 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.10, smode=5)
# adjusting output color from YUV420P16 to YUV420P10 for x265Model
clip = core.resize.Spline36(clip=clip, format=vs.YUV420P10)
# 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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)