1 (edited by Gagzila 07-08-2013 10:25:57)

Topic: Use SVP generated AVS script in MeGUI - help!

Hey Guys,

Got MeGUI working via this guide now to interpolate my videos to a higher FPS but not that happy with the artefacts and general quality. I got a really nice setup in SVP and generated an AVS script but dumping this script straight into the MeGUI script creator and trying to use this to convert my videos is throwing up error after error...is anyone able to fix the script so it will work in MeGUI? Would be much appreciated  smile

# 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=15
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("\", fps=11.988, convertfps=true, pixel_type="YV12")
SetMTMode(2)

global crop_params=""
global resize_string="LanczosResize(2048,1080)"
global super_params="{scale:{up:0},gpu:1,rc:false}"
global analyse_params="{main:{search:{coarse:{distance:-10,bad:{sad:2000}}}}}"
global smoothfps_params="{gpuid:11,rate:{num:5,den:2},algo:13,scene:{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 ###########

Cheers,

Craig

Re: Use SVP generated AVS script in MeGUI - help!

i'm not a pro in megui, but just replace

DirectShowSource("\", fps=11.988, convertfps=true, pixel_type="YV12")

with

<input>.ConvertToYV12()

assuming that you don't need deinterlace and denoise features of megui
and both resizing and cropping already set from SVP

3 (edited by Gagzila 07-08-2013 10:47:59)

Re: Use SVP generated AVS script in MeGUI - help!

Thanks Chainik, that sorted it! Tried fixing it myself before by changing that line, to removing it all together and kept getting all other kinds of errors...one simple change and it all works beautifully! big_smile Got a job running with it now, can't wait to see how it comes out...thinking I may not even have to mux to add the audio back in looking at the script.

Will let you know the end result, thanks for your assitance cool

Cheers,

Craig