View Single Post
Old 1st April 2015, 14:25   #20  |  Link
jammupatu
Registered User
 
Join Date: Feb 2002
Posts: 26
Downscaling crashing

Hi,

I am very new to Vapoursynth. Just beginning to test it and its' potential in hopes of moving on from Avisynth.

I'm getting script evaluations ok using VapourSynth Editor but the preview and VirtualDub crash when I try to actually use the script. I'm just trying a simple downsize. Any number will crash, even divide by 2 (/ or // operators, actually using / the script does not evaluate). Here is my script bit:

Code:
import vapoursynth as vs
core = vs.get_core()


def downscale_zimg(clip):
    clip = core.z.Depth(clip, depth=16)
    clip = core.z.Resize(clip, width=clip.width//2, height=clip.height//2, filter="bicubic")
    clip = core.z.Depth(clip, depth=8, dither="ordered")
    return clip

source = core.ffms2.Source(source='c:/temp/test.ts', fpsnum=25, fpsden=1)
source = downscale_zimg(source)
source.set_output()
Upscaling works fine. I'm running Win 8.1.1 64b and all things 64bit; VapourSynth, Zimg, Vdub, the editor, Python 3.4.3. All components should be the latest; Zimg 1.1, VS 26 etc.

Am I missing something or is this a bug? Using the native resize does not crash on downscale.

BR,

-J

Last edited by jammupatu; 1st April 2015 at 14:27. Reason: Added clarifications.
jammupatu is offline   Reply With Quote