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] NTSC SD master, best De-Interlace?
#20
Quote:I just try to explain that using Deblocker filter on SD file that use 56Mb/s compression is totally useless, because you never see any blocks artifacts with that bitrate.
using a highly artifical example
# Imports
import os
import sys
import ctypes
import vapoursynth as vs
core = vs.core

# Import scripts folder (need to be adjusted)
scriptPath = 'I:/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))

# Loading Support Files  (need to be adjusted)
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/GrainFilter/AdaptiveGrain/adaptivegrain_rs.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/ColorFilter/Retinex/Retinex.dll")
import vapoursynth as vs
# getting Vapoursynth core

# Import scripts
import havsfunc

clip = core.std.BlankClip(format=vs.YUV422P8, width=720, height=576, length=1000, color=[128, 128, 128])

# adding grain using GrainFactory3
clip = havsfunc.GrainFactory3(clp=clip)

clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, range_s="full")
# color adjustment using Retinex
clip = core.retinex.MSRCP(input=clip, sigma=[25,80,250], fulls=True, fulld=True)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="full")

clip.set_output()
compressing it with ProRes, and comparing the encode against the script:
# Imports
import os
import sys
import ctypes
import vapoursynth as vs
core = vs.core

# Import scripts folder (needs to be adjusted)
scriptPath = 'I:/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))

# Loading Support Files (needs to be adjusted)
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/GrainFilter/AdaptiveGrain/adaptivegrain_rs.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/ColorFilter/Retinex/Retinex.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
import vapoursynth as vs
# getting Vapoursynth core

# Import scripts
import havsfunc

clip = core.std.BlankClip(format=vs.YUV422P8, width=720, height=576, length=1000, color=[128, 128, 128])

# adding grain using GrainFactory3
clip = havsfunc.GrainFactory3(clp=clip)


clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, range_s="full")
# color adjustment using Retinex
clip = core.retinex.MSRCP(input=clip, sigma=[25,80,250], fulls=True, fulld=True)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="full")

# path needs to be adjusted
clip2 = core.lsmas.LibavSMASHSource(source="E:/Output/testing.mov")

difference = core.std.MakeDiff(clip, clip2)
# Output
difference.set_output()
shows quite a few differences,.....

If you want to seriously look into this you should do it in another thread.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: NTSC SD master, best De-Interlace? - by Selur - 06.08.2021, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)