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] Help with movie upscale
#20
Using:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DeinterlaceFilter/TIVTC/libtivtc.dll")
core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'C:\Users\Selur\Desktop\sample_from_DVD.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 29.97, color matrix: 470bg, yuv luminance scale: limited, scanorder: telecine
# Loading C:\Users\Selur\Desktop\sample_from_DVD.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Selur/Desktop/sample_from_DVD.mkv", format="YUV420P8", stream_index=0, cache=0, 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 29.97
clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0)
# Deinterlacing using TIVTC
clip = core.tivtc.TFM(clip=clip)
clip = core.tivtc.TDecimate(clip=clip)# new fps: 23.976
# make sure content is preceived as frame based
clip = core.std.SetFieldBased(clip, 0)
# adjusting output color from: YUV420P8 to YUV420P10 for x265Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
# set output frame rate to 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Output
clip.set_output()
which is basically the same as your script, I get no duplicate frames.
=> reencode

Try whether setting "Filtering->Vapoursynth->Misc->Source->Limit decoder threads" to 1 helps.

Cu Selur

Ps.: to be sure we use the same version of tools&co I send you a link to my current dev version.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
Help with movie upscale - by Miranda - 18.12.2022, 13:58
RE: Help with movie upscale - by Selur - 18.12.2022, 14:40
RE: Help with movie upscale - by Miranda - 18.12.2022, 16:04
RE: Help with movie upscale - by Selur - 18.12.2022, 16:11
RE: Help with movie upscale - by Miranda - 18.12.2022, 17:17
RE: Help with movie upscale - by Selur - 18.12.2022, 17:29
RE: Help with movie upscale - by Miranda - 18.12.2022, 17:30
RE: Help with movie upscale - by Selur - 18.12.2022, 17:37
RE: Help with movie upscale - by Miranda - 18.12.2022, 19:37
RE: Help with movie upscale - by Selur - 18.12.2022, 19:41
RE: Help with movie upscale - by Selur - 18.12.2022, 20:17
RE: Help with movie upscale - by Miranda - 18.12.2022, 20:20
RE: Help with movie upscale - by Selur - 18.12.2022, 20:24
RE: Help with movie upscale - by Miranda - 18.12.2022, 20:35
RE: Help with movie upscale - by Selur - 18.12.2022, 20:38
RE: Help with movie upscale - by Miranda - 18.12.2022, 20:41
RE: Help with movie upscale - by Selur - 18.12.2022, 21:20
RE: Help with movie upscale - by Selur - 19.12.2022, 10:15
RE: Help with movie upscale - by Miranda - 19.12.2022, 13:37
RE: Help with movie upscale - by Selur - 19.12.2022, 16:21
RE: Help with movie upscale - by Miranda - 19.12.2022, 17:19
RE: Help with movie upscale - by Selur - 19.12.2022, 17:40
RE: Help with movie upscale - by Miranda - 19.12.2022, 17:46
RE: Help with movie upscale - by Selur - 19.12.2022, 17:48
RE: Help with movie upscale - by Miranda - 19.12.2022, 18:06
RE: Help with movie upscale - by Selur - 19.12.2022, 18:10
RE: Help with movie upscale - by Miranda - 19.12.2022, 18:12
RE: Help with movie upscale - by Selur - 19.12.2022, 18:20
RE: Help with movie upscale - by Miranda - 19.12.2022, 18:23
RE: Help with movie upscale - by Selur - 19.12.2022, 21:24
RE: Help with movie upscale - by Miranda - 20.12.2022, 11:16
RE: Help with movie upscale - by Selur - 20.12.2022, 19:08
RE: Help with movie upscale - by humanoid86 - 22.12.2022, 13:55
RE: Help with movie upscale - by Selur - 22.12.2022, 16:38
RE: Help with movie upscale - by humanoid86 - 23.12.2022, 04:58
RE: Help with movie upscale - by Selur - 23.12.2022, 05:02
RE: Help with movie upscale - by humanoid86 - 23.12.2022, 07:40
RE: Help with movie upscale - by Selur - 23.12.2022, 08:50
RE: Help with movie upscale - by humanoid86 - 23.12.2022, 08:57
RE: Help with movie upscale - by Selur - 23.12.2022, 14:52
RE: Help with movie upscale - by humanoid86 - 24.12.2022, 06:23
RE: Help with movie upscale - by Selur - 26.12.2022, 20:49
RE: Help with movie upscale - by humanoid86 - 27.12.2022, 13:17
RE: Help with movie upscale - by Selur - 27.12.2022, 13:22
RE: Help with movie upscale - by humanoid86 - 27.12.2022, 13:47
RE: Help with movie upscale - by Selur - 27.12.2022, 14:05
RE: Help with movie upscale - by humanoid86 - 27.12.2022, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)