![]() |
|
Deoldify Vapoursynth filter - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html) +--- Forum: Small Talk (https://forum.selur.net/forum-7.html) +--- Thread: Deoldify Vapoursynth filter (/thread-3595.html) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
RE: Deoldify Vapoursynth filter - hallomanbh - 11.11.2025 # ImportsRE: Deoldify Vapoursynth filter - Dan64 - 11.11.2025 It is a bug introduced in the main release v5.6.0. To fix it I just released the new HAVC v5.6.2 Dan RE: Deoldify Vapoursynth filter - Selur - 12.11.2025 Started uploading a VapoursynthR72_torch_2025.11.12 which comes with this version, should be available in ~60min. (Update:is up now) Cu Selur RE: Deoldify Vapoursynth filter - hallomanbh - 12.11.2025 reffernce based colorization simply working super . https://www.jioaicloud.com/l/?u=_YgrdUCMLUPzENtYTzNQyjwWSJJAS3MJbRXHfyfM03kX0ljvTKC3z_PAGHVKTS5chkW in this video left side video original frames 5000, right side video reffernce based colorization only 250 frames. Thanks to Selur and Dan64 RE: Deoldify Vapoursynth filter - hallomanbh - 23.11.2025 colour shifted to up side https://gofile.io/d/UvhXiP RE: Deoldify Vapoursynth filter - Selur - 23.11.2025 What does the Vapoursynth script look like? RE: Deoldify Vapoursynth filter - hallomanbh - 23.11.2025 no errors found. but colour shifted to upside . face edge etc... https://gofile.io/d/t7qQa8 RE: Deoldify Vapoursynth filter - Selur - 23.11.2025 I did not ask about errors,.. What does the Vapoursynth script look like? RE: Deoldify Vapoursynth filter - hallomanbh - 23.11.2025 # Imports import vapoursynth as vs # getting Vapoursynth core import sys import os core = vs.core # Import scripts folder scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) # loading plugins core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/akarin.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll") # Import scripts import chromaBleeding import vsdeoldify as havc import validate # Source: 'C:\Users\Halloman\Desktop\Mayabazar Movie\Mayabazar B&W.mp4' # Current color space: YUV420P8, bit depth: 8, resolution: 1280x720, frame rate: 29.97fps, scanorder: progressive, yuv luminance scale: limited, matrix: 709, transfer: bt.709, primaries: bt.709, format: AVC # Loading 'C:\Users\Halloman\Desktop\Mayabazar Movie\Mayabazar B&W.mp4Ä using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/Halloman/Desktop/Mayabazar Movie/Mayabazar B&W.mp4", format="YUV420P8", stream_index=1, cache=0, prefer_hw=0) frame = clip.get_frame(0) # setting color matrix to 709. clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT709) # setting color transfer (vs.TRANSFER_BT709), if it is not set. if validate.transferIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT709) # setting color primaries info (to vs.PRIMARIES_BT709), if it is not set. if validate.primariesIsInvalid(clip): clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT709) # setting color range to TV (limited) range. clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED) # making sure frame rate is set to 29.97fps clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, 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 original = clip # adjusting color space from YUV420P8 to RGB24 for vsHAVC clip = core.resize.Bicubic(clip=clip, format=vs.RGB24, matrix_in_s="709", range_in_s="limited", range_s="full") # adding colors using HAVC clip = havc.HAVC_main(clip, ColorTune="medium", EnableDeepEx=True, DeepExMethod=3, DeepExPreset="slow", ScFrameDir="C:/Users/Halloman/Desktop/Mayabazar Movie/reff", DeepExModel=0, DeepExEncMode=0, DeepExMaxMemFrames=0) # adjusting color space from RGB24 to YUV444P16 for vsFixChromaBleeding clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16, matrix_s="709", range_in_s="full", range_s="limited") # additional resize to match target color sampling # Fixing chroma bleeding using FixChromaBleedingMod clip = chromaBleeding.FixChromaBleedingMod(clip, blur=True) # adjusting output color from YUV444P16 to YUV420P8 for x264Model clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, dither_type="error_diffusion") original = core.text.Text(clip=original,text="Original",scale=1,alignment=7) clip = core.text.Text(clip=clip,text="Filtered",scale=1,alignment=7) stacked = core.std.StackHorizontal([original,clip]) # set output frame rate to 29.97fps (progressive) stacked = core.std.AssumeFPS(clip=stacked, fpsnum=30000, fpsden=1001) # output stacked.set_output() https://gofile.io/d/t7qQa8 RE: Deoldify Vapoursynth filter - Selur - 23.11.2025
Does it work if you crop your source to be mod16 in width&height (before applying HAVC)? Cu Selur |