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
#28
script notice matrix 170m trough the whole filter chain ( its a ntsc dvd so thats correct)

# Source: 'D:\Season 4 disk 1\A1_t00.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 720x480, frame rate: 23.976fps, scanorder: progressive, yuv luminance scale: limited, matrix: 170m, format: mpeg-2
# Loading 'D:\Season 4 disk 1\A1_t00.mkvÄ using LWLibavSource
clip = core.lsmas.LWLibavSource(source="D:/Season 4 disk 1/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 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive
[clip] = beforeDeblockQED(clip)
# clip current meta; color space: YUV444P16, bit depth: 16, resolution: 700x476, 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)
clip = core.vinverse.vinverse2(clip, sstr=1.00, amnt=128)
# applying FineDeHalo to remove halos
clip = dehalo.FineDehalo(clip, rx=3.00, ry=3.00, thmi=1, thma=60, thlimi=80, darkstr=0.10, brightstr=0.80, edgeproc=2.00)
# Anti Aliasing using DAAMod
clip = antiAliasing.daamod(clip, pscrn=1, rep=0, opencl=True, device=0)
# Dehalo using EdgeCleaner
clip = dehalo.EdgeCleaner(clip, strength=8)
# Fixing chroma bleeding using FixChromaBleedingMod
clip = chromaBleeding.FixChromaBleedingMod(clip, cx=1, cy=1, thr=1.00)
[clip] = beforeResize(clip)
# clip current meta; color space: YUV444P16, bit depth: 16, resolution: 700x476, fps: 23.976, color matrix: 170m, yuv luminance scale: limited, scanorder: progressive, full height: true
# 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

 yet  when output as png, -vcodec png -dpi 0 -dpm 0 -pred 0 -vf zscale=matrixin=470bg:matrix=470bg,format=rgb48 -pix_fmt rgb48be   any  way to fix this? i cant see any and I DID search around this time...
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 - 16.04.2026, 01:20
RE: help please - by Selur - 16.04.2026, 08:56
RE: help please - by lsd4me2 - 16.04.2026, 09:21
RE: help please - by Selur - 16.04.2026, 09:47
RE: help please - by lsd4me2 - 16.04.2026, 12:52
RE: help please - by Selur - 16.04.2026, 13:00
RE: help please - by lsd4me2 - 16.04.2026, 14:15
RE: help please - by Selur - 16.04.2026, 14:45
RE: help please - by lsd4me2 - 16.04.2026, 15:05
RE: help please - by Selur - 16.04.2026, 15:40
RE: help please - by lsd4me2 - 16.04.2026, 17:23
RE: help please - by Selur - 16.04.2026, 18:34
RE: help please - by lsd4me2 - Yesterday, 03:58
RE: help please - by Selur - Yesterday, 04:29
RE: help please - by lsd4me2 - Yesterday, 06:52
RE: help please - by Selur - Yesterday, 09:20
RE: help please - by lsd4me2 - Yesterday, 10:23
RE: help please - by Selur - Yesterday, 11:21
RE: help please - by lsd4me2 - Today, 02:37
RE: help please - by Selur - Today, 04:34

Forum Jump:


Users browsing this thread: 1 Guest(s)