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] 25i to 29.97i with interpolation
#84
Thank you, your help is much appreciated Smile

Here is the generated script:

# Imports
import os
import sys
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = '/Applications/Hybrid.app/Contents/MacOS/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Import scripts
import edi_rpow2
import G41Fun
import mvsfunc
import havsfunc
# source: '/Volumes/Drobo/Hybrid/KENNY-IN/JokeBox-Dec21-Sony-DMR-SD_BFF.mov'
# current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: bottom field first
# Loading /Volumes/Drobo/Hybrid/KENNY-IN/JokeBox-Dec21-Sony-DMR-SD_BFF.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/Volumes/Drobo/Hybrid/KENNY-IN/JokeBox-Dec21-Sony-DMR-SD_BFF.mov", format="YUV420P8", cache=0, fpsnum=25, prefer_hw=0)
# Setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=5)
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# converting interlaced to half-height progressive for filtering (vsDeblock) (QTGMC(preset="Faster"))
clip = havsfunc.QTGMC(Input=clip, Preset="Faster", Lossless=2, TFF=False) # new fps: 50
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0)
# applying delocking using Deblock
clip = core.deblock.Deblock(clip=clip)
# removing grain using MLDegrain
clip = G41Fun.MLDegrain(clip=clip, tr=1, soft=[0,0,0])
# denoising using HQDN3D
clip = core.hqdn3d.Hqdn3d(clip=clip, lum_spac=0.00, chrom_tmp=4.50)
# contrast sharpening using CAS
clip = core.cas.CAS(clip=clip, sharpness=0.700)
# deringing using HQDeringmod
clip = havsfunc.HQDeringmod(clip, nrmode=2, darkthr=3.0)
# Not using InterFrame since input (50) is less or equal target (50) fps!
# resizing using ZNEDI3
clip = edi_rpow2.nnedi3_rpow2(clip=clip, rfactor=2) # 1440x1152
# adjusting resizing
clip = core.fmtc.resample(clip=clip, w=1440, h=1080, kernel="lanczos", interlaced=False, interlacedd=False)
# adding Grain using AddGrain
clip = core.grain.Add(clip=clip)
# adjusting output color from: YUV420P16 to YUV422P10 for ProResModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited")
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
Reply


Messages In This Thread
25i to 29.97i with interpolation - by Miranda - 26.06.2022, 14:51
RE: 25i to 29.97i with interpolation - by n4n - 27.07.2022, 21:41
RE: 25i to 29.97i with interpolation - by Miranda - 22.11.2022, 16:29

Forum Jump:


Users browsing this thread: 8 Guest(s)