Topic: Generated AVS-Script: Error

https://dl.dropboxusercontent.com/u/24358204/vd_error.PNG

Here's the generated script:

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

SetMemoryMax(1024)

global svp_scheduler=true
global threads=8
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)
DirectShowSource("D:\Videos\svp\KZSF_TDM.mov", fps=29.97, convertfps=true, pixel_type="YV12")
SetMTMode(2)

global crop_params=""
global resize_string=""
global super_params="{scale:{up:0},gpu:1,rc:false}"
global analyse_params="{block:{overlap:1},main:{search:{coarse:{distance:-10}}}}"
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 ###########


Even if append ".convertToYV12()" to "DirectShowSource(...)" - it still makes no difference. The clip runs absolutely smooth in MPC-HD. I've also deactivated SVP while trying to open the AVS in VirtualDub...

spyro

Re: Generated AVS-Script: Error

spyro
It is strange. I will try your script with VirtualDub next week.

3 (edited by spyro 12-10-2013 15:29:21)

Re: Generated AVS-Script: Error

Thank you. smile

In case you need it for analysis, here the original video source: https://mega.co.nz/#!tZZQ2bjQ!BB0R9UEyx … YJCqyu5pHQ (should be no copyright issue)

spyro

Re: Generated AVS-Script: Error

all works

http://www.svp-team.com/forum/misc.php?item=2826

who is videodecoder?

Post's attachments

Буфер обмена16.jpg 528.42 kb, 160 downloads since 2013-10-12 

5 (edited by spyro 13-10-2013 12:04:37)

Re: Generated AVS-Script: Error

Hi again,

thanks for all your time for helping to track this issue down. smile
My decoder is ffdshow (it's the only decoder installed along with the SVP package).

I played around with the script some more and was able to run in successfully when I replaced

DirectShowSource("D:\Videos\svp\KZSF_TDM.mov", fps=29.97, convertfps=true, pixel_type="YV12")

with

DirectShowSource("D:\Videos\svp\KZSF_TDM.mov", fps=29.97, convertfps=true).convertToYV12()

So it seems the problem was, that AVS threads the video stream (wrongly) as YV12, because this attribute was hardcoded. Every "convertToYV12()" further in the script was ignored then.

Just don't get why that's only an issue with VirtualDub...

spyro

BTW: Your software is the best thing since the invention of sugar-free softdrinks smile

Re: Generated AVS-Script: Error

spyro
How did you deal with frame drops?
I watched your video. It has at least 20% dropped frames.