Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
8th June 2018, 15:05 | #3061 | Link |
Registered User
Join Date: Jun 2007
Posts: 414
|
The first thing you may want to try updating VapourSynth, it's up to R43 now. Second, you'll want to specify order:
Code:
from vapoursynth import core import vapoursynth as vs core = vs.get_core() src = core.d2v.Source('My.d2v') src = src.vivtc.VFM(order=1).vivtc.VDecimate() src.set_output() Last edited by l33tmeatwad; 8th June 2018 at 15:07. |
8th June 2018, 15:05 | #3062 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
More like try reading the error message. You didn't set field ORDER.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
8th June 2018, 17:18 | #3064 | Link | |
Registered User
Join Date: Aug 2015
Posts: 47
|
Quote:
Code:
src = src.vivtc.VFM(order=1).vivtc.VDecimate() Code:
Failed to evaluate the script: Python exception: VFM: argument order is required Traceback (most recent call last): File "src\cython\vapoursynth.pyx", line 1830, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36860) File "C:/Users/Administrator/Desktop/encoder/Untitled.vpy", line 6, in src.set_output() File "src\cython\vapoursynth.pyx", line 1722, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:35000) vapoursynth.Error: VFM: argument order is required Last edited by unix; 8th June 2018 at 21:22. |
|
10th June 2018, 13:04 | #3066 | Link |
Registered User
Join Date: Apr 2015
Posts: 84
|
I have a problem with VapourSynth Internal Resize use, but work fine with core.fmtc.resample.
Internal Resize result look like damaged. VapourSynth Internal Resize haf.Resize(core.fmtc.resample) example1: Code:
test = core.resize.Bilinear(src8, 960, 540) test = core.resize.Bilinear(test, 1920, 1080) #Fixed test = haf.Resize(src8, 960, 540, kernel="bilinear", noring=False) test = haf.Resize(test, 1920, 1080, kernel="bilinear", noring=False) Code:
def Padding(clip, left=0, right=0, top=0, bottom=0): if not isinstance(clip, vs.VideoNode): raise TypeError('Padding: This is not a clip') if left < 0 or right < 0 or top < 0 or bottom < 0: raise ValueError('Padding: border size to pad must not be negative') return core.resize.Point(clip, clip.width + left + right, clip.height + top + bottom, src_left=-left, src_top=-top, src_width=clip.width + left + right, src_height=clip.height + top + bottom) #Fixed def Padding(clip, left=0, right=0, top=0, bottom=0): if not isinstance(clip, vs.VideoNode): raise TypeError('Padding: This is not a clip') if left < 0 or right < 0 or top < 0 or bottom < 0: raise ValueError('Padding: border size to pad must not be negative') src_w = clip.width src_h = clip.height return haf.Resize(clip, src_w + left + right, src_h + top + bottom, sx=-left, sy=-top, sw=src_w + left + right, sh=src_h + top + bottom, kernel="point", noring=False) Padding(clip, left=8, right=8, top=8, bottom=8) Last edited by edcrfv94; 10th June 2018 at 13:14. |
11th June 2018, 06:49 | #3067 | Link | |
Registered User
Join Date: Apr 2015
Posts: 84
|
Quote:
Also VapourSynth Internal Resize src_left and src_top not working. Code:
test = core.resize.Spline36(src8, 1920, 1080, src_left=0, src_top=-0.5) Fixed test = haf.Resize(src8, 1920, 1080, sx=0, sy=-0.5, kernel="spline36", noring=False) or test = core.fmtc.resample(src8, 1920, 1080, sx=0, sy=-0.5, kernel="spline36") |
|
13th June 2018, 21:01 | #3068 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Quote:
Code:
color = "000002" # this doesn't work #color = "53aadf" # this one works hex_int = int(color, 16) clip = core.std.BlankClip(width=patch_width, height=patch_width, length=1, color=Hex2List(hex_int)) |
|
13th June 2018, 22:11 | #3069 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
14th June 2018, 02:24 | #3070 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
After some searches I've found a 2 liner function for this in stackflow
Code:
def hex_to_rgb(value): """Return (red, green, blue) for the color given as #rrggbb.""" value = value.lstrip('#') lv = len(value) return list(int(value[i:i + lv // 3], 16) for i in range(0, lv, lv // 3)) |
14th June 2018, 21:26 | #3071 | Link | |
Registered User
Join Date: Feb 2016
Posts: 6
|
Quote:
Code:
input_hex = 0x53aadf r = (input_hex >> 16) & 0xFF # 83 g = (input_hex >> 8) & 0xFF # 170 b = (input_hex >> 0) & 0xFF # 223 Last edited by hBIkOa7m; 15th June 2018 at 20:11. Reason: Fixed comments at EOL to use # rather than //. Wrote sample code in the forum and didn't run it. |
|
14th June 2018, 21:45 | #3072 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
24th June 2018, 18:43 | #3074 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Is there a Despot script or plugin available for VS?
I tried this avs script by Didée http://forum.doom9.net/showthread.ph...90#post1402690 which works good, but has problems with heavy motion / flashy scenes and produces sometimes ghosting. The two first problems can be compensated to some degree if used as a prefilter in smdegrain, but the ghosting problem remains. Maybe someone knows an alternative or can improve this script? Code:
def despot(o): osup = o.mv.Super(pel=2, sharp=2) bv1 = osup.mv.Analyse(isb=True, delta=1, blksize=8, overlap=4, search=4) fv1 = osup.mv.Analyse(isb=False,delta=1, blksize=8, overlap=4, search=4) bc1 = o.mv.Compensate(osup, bv1) fc1 = o.mv.Compensate(osup, fv1) clip = core.std.Interleave([fc1, o, bc1]) clip = core.rgvs.Clense(clip) clip = core.std.SelectEvery(clip, cycle=3, offsets=1) return clip
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
30th June 2018, 18:17 | #3077 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,657
|
Reporting a bug cropping a rgb32 clip.
Code:
rgb_clip = core.resize.Bicubic(clip, matrix_in_s="709", format=vs.COMPATBGR32) rgb_clip = core.std.Crop(rgb_clip , bottom=50) |
30th June 2018, 22:14 | #3079 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Exactly. I think it's a legit bug, but DIB (COMPATRGB) should be converted away from as quickly as possible unless intending to display on a generic Windows control. Don't use DIB is a solid rule of thumb.
|
6th July 2018, 18:05 | #3080 | Link | |
Registered User
Join Date: Aug 2015
Posts: 47
|
Hi!
guys I used InsertSign func but I didn't get the result properly! Quote:
|
|
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|