View Single Post
Old 20th November 2012, 14:55   #40  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Hi cretindesalpes, like always thank you very much for another awesome tool.
For testing purposes only, I used one of your resizing examples in the Dither documentation. I don't know if I'm doing something wrong but I'm getting some strange results.

Example in Dither doc:
Code:
Sharpening the luma using the convolver of the resizer: 
 
Dither_convert_8_to_16 () 
Dither_resize16 (Width (), Height () / 2, kernel="impulse -1 6 -1", 
\                fh=-1, fv=-1, cnorm=true, center=false, y=3, u=2, v=2) 
DitherPost ()
My Script:
Code:
import vapoursynth as vs 
import sys 
core = vs.Core() 
 
# Load Plugins 
core.std.LoadPlugin(path=r'C:\Vapoursynth\FMTConv\fmtconv.dll') 
core.avs.LoadPlugin(path=r'C:\AviSynth 2.5\plugins\DGDecodeNV.dll') 
 
# Blu-ray source cropped to 1920x1080 by DGSource
src = core.avs.DGSource(dgi=r'X:\Test.dgi') 
  
# Processing 
src = core.fmtc.resample(clip=src, w=960, h=540, impulse="-1 6 -1", fh=-1, fv=-1, cnorm=1, css="420", planes="3,2,2", center=2) 
src = core.fmtc.bitdepth(clip=src, bitdepth=8) 
 
# VDub Output 
last = src
The problems I'm encountering:
Sometimes it opens without resizing at all.
Sometimes it resizes to 960x1080 or to 1920x540.
Sometimes (rare) it resizes correctly.
But most of the time VDub gives me the following error:
Quote:
Avisynth open failure:
python exception: 'resample: argument clip is required'
I tried removing some parameters to try to find the problem. The following still produces the problems mentioned above.
Code:
..... 
src = core.fmtc.resample(clip=src, w=960, h=540, impulse="-1 6 -1") 
src = core.fmtc.bitdepth(clip=src, bitdepth=8) 
.....
I'm using VS r16 on 32-bit Windows XP SP3.

*edit*
Using the following, the correct results are more consistent but the other problems still remain.
Code:
src = core.fmtc.resample(clip=src, w=1920, h=540, impulse="-1 6 -1")

Last edited by Reel.Deel; 20th November 2012 at 16:20. Reason: username misspelling
Reel.Deel is offline   Reply With Quote