Avisynth:
Vapoursynth:
(assuming you import or autoload everything you need)
Cu Selur
Ps.: don't see any image,..
video = FFmpegSource2("C:\Users\gzr\Downloads\Video\asd.mp4")
video = video.ConvertBits(8).ConvertToYV12()
white_mask = mt_binarize(video, 200).mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand()
grain_video = GrainFactory3(video)
sharpened_video = LSFMod(grain_video, strength=255)
result = mt_merge(video, sharpened_video, white_mask)
return result
(assuming you import or autoload everything you need)
video = core.ffms2.Source(source=r"C:\Users\gzr\Downloads\Video\asd.mp4")
video = core.resize.Bicubic(clip=video, format=vs.YUV420P8, range_s="limited")
white_mask = video
white_mask = core.resize.Bicubic(clip=white_mask, format=vs.GRAY8, range_s="limited")
white_mask = core.std.BinarizeMask(white_mask, 200)
for i in range(11):
white_mask = white_mask.stdMaximum(white_mask)
grain_video = havsfunc.GrainFactory3(clp=video)
sharpened_video = havsfunc.LSFmod(input=grain_video, strength=255)
result = core.std.MaskedMerge(video, sharpened_video, white_mask)
result.set_output()
Cu Selur
Ps.: don't see any image,..