Topic: Script error - "Crop: Destination height is 0 or less"

Hello there!
I keep getting this error:

Error preparing smooth playback! Script error:
Crop: Destination height is 0 or less.
(C:\Program Data\SVP 3.1\AVS\ffdshow.avs, line 35)
(C:\Program Data\SVP 3.1\AVS\ffdshow.avs, line 55)
(ffdshow_filter_avisynth_script_line 4)



help please?

Re: Script error - "Crop: Destination height is 0 or less"

post both "Information -> Additional information" and "Information -> Last used AVS script" here

Re: Script error - "Crop: Destination height is 0 or less"

Chainik wrote:

post both "Information -> Additional information" and "Information -> Last used AVS script" here

Last processed file parameters:
Filename: 
Frame size and frame rate: 1280x720 pixels, 29.97 fps
After auto crop: 1280x638 pixels

Detected screen parameters
Screen size and refresh rate: 1920x1080 pixels, 60.002 Hz

Video smoothing info
Smooth factor: 2:1
Resulting video frame rate: 59.94 fps
Repeat 1 frame every 16 sec

Selected profile: 1920x1080@60

Profile settings of video processing
[ExMethod=MSmoothFps_0]        Frames interpolation mode: Uniform (max smoothness)
[ExAlgo=13]            SVP shader: 13. Standard (default)
[ExMulti=MON]            Target frame rate: To screen refresh rate (default)
[ExBlockSize=16x16:2]        Motion vectors grid: 12 px. Average 2 (default)
[ExRecalc=250:0]        Decrease grid step: By two with global refinemen
[TypeDist=Exh:-14:SATD]        Search radius: Large
[ExPel=2]            Motion vectors precision: Half pixel (default)
[Badsad=2000:-24]        Wide search: Strongest
[ExSadml=0]            Artifacts masking: Disabled (default)
[ExBlend=true]            Processing of scene changes: Blend adjacent frames
[ExDwnResize=MON]        Decrease frame size: To screen size

Settings by menu
[svp_libflowgpu=1]        GPU-acceleration (OpenCL): true
[ExThreads=0]            Processing threads: Auto
[StereoMode=0]            Stereo mode (3D): Plain 2D
[AutoCrop=1]            Auto crop black bars: true [0:40:0:42]
[HandCrop=None]            Frame crop: Disabled
[Borderlight=None]        Outer lighting: Disabled
[VDelay=0]            Video delay: 0 ms
[ExDemo=0]            Demonstration mode: false
[ExTearingTest=0]        Tearing test: false
[StopSmoothDelayOnRewind=1]    Turn off on seek: Turn off by 1 sec

and

# This script was generated by SmoothVideo Project (SVP) Manager.
# Check [url]http://www.svp-team.com[/url] for more details.

SetMemoryMax(1024)

global svp_scheduler=true
global threads=7
global svp_cache_fwd=threads+2

LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow2.dll")

SetMTMode(3,threads)
ffdShow_source()
SetMTMode(2)

global crop_params="0,40,-0,-42"
global resize_string=""
global super_params="{scale:{up:0},gpu:1,rc:true}"
global analyse_params="{main:{search:{coarse:{distance:-14,bad:{sad:2000}}}},refine:[{thsad:250}]}"
global smoothfps_params="{rate:{num:2,den:1},algo:13,scene:{blend:true,mode:0}}"

global demo_mode=0
stereo_type=0
stereo_left_selection=""
stereo_right_selection=""

########## BEGIN OF MSMoothFps.avs ##########
# This file is a part of SmoothVideo Project (SVP) 3.1.4
# This is NOT the full AVS script, all used variables are defined via 
# JavaScript code that generates the full script text.

function interpolate(clip src)
{
    input = crop_params=="" ? src : eval("src.crop("+crop_params+")")
    input = resize_string=="" ? input : eval("input."+resize_string)

    super=SVSuper(input, super_params)
    vectors=SVAnalyse(super, analyse_params, src=input)
    smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, url="www.svp-team.com")

    return demo_mode==0 ? smooth : demo(input,smooth)
}

input=last

    stereo_type==0 ? eval(""" interpolate(input)
""") :     stereo_type==1 || stereo_type==3 ? eval("""
        lf = interpolate(input.crop(0,0,input.width/2,0))"""+stereo_left_selection+"""
        rf = interpolate(input.crop(input.width/2,0,0,0))"""+stereo_right_selection+"""
        StackHorizontal(lf, rf)
""") :     stereo_type==2 || stereo_type==4  ? Eval("""
        lf = interpolate(input.crop(0,0,0,input.height/2))"""+stereo_left_selection+"""
        rf = interpolate(input.crop(0,input.height/2,0,0))"""+stereo_right_selection+"""
        StackVertical(lf, rf)""") : input

########### END OF MSMoothFps.avs ###########
distributor()

Re: Script error - "Crop: Destination height is 0 or less"

hmm i have no idea, it should work

may be you have some conditional cropping set in the video player or in ffdshow?

anyway, start with turning off "Frame crop -> Auto crop" in SVP's main menu