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
#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


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 - 7 hours ago
RE: help please - by lsd4me2 - 6 hours ago
RE: help please - by Selur - 6 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 - 1 hour ago
RE: help please - by lsd4me2 - 1 hour ago
RE: help please - by Selur - 37 minutes ago

Forum Jump:


Users browsing this thread: 1 Guest(s)