Quote:
Originally Posted by TurboPascal7
Code:
Traceback (most recent call last):
File "D:/test.py", line 21, in <module>
source = w.std.CropAbs(clip=source, x=16, y=16)
File "vapoursynth.pyx", line 434, in vapoursynth.Function.__call__ (cython\vapoursynth.c:7371)
vapoursynth.Error: 'CropAbs: argument width is required'
|
Of course width is required, this only moves the upper left point.
Quote:
Originally Posted by TurboPascal7
Code:
source = w.std.CropAbs(clip=source, x=16, y=16, width=-16, height=-16)
Works but outputs garbage. Should throw error or work like avisynth's crop (subtracting provided negative width/height values from clip's parameters).
|
fixed
Quote:
Originally Posted by TurboPascal7
I don't really need another list_functions() method. I do want to know Core class constructor parameters, VideoNode.output() method parameters (wanted to test callback, added in r4) etc. Without documentation and any public API I don't see any ways to do it since reflection doesn't work well with cython. I'm asking for this too early, I guess.
|
Core constructor: def __cinit__(self, flatten = True, addcache = True, int threads = 0)
Not much of interest, really. Flatten is whether or not single return value functions get the returned dict flattened to a single value automatically. addcache controls automatic cache insertion.
Output declaration:
def output(self, object fileobj not None, bint y4m = False, int lookahead = 10, object progress_update = None):
Where lookahead is the number of frame requests it has going at once to keep throughput up and progress_update is a functions that could looks like this:
def print_frame(n, total):
print('Frame: %d/%d' % (n, total))