tcFile = r"%temp_file%_timestamps.txt" # timestamps file path
clip = core.ffms2.Source(r"%source_file%", cachefile=r"%source_temp_file%.ffindex", timecodes=tcFile) if os.path.exists(tcFile) else core.ffms2.Source(r"%source_file%", cachefile=r"%source_temp_file%.ffindex")
core = vs.get_core(threads=8)

if not hasattr(core,'svp2'):
    core.std.LoadPlugin(r"C:\\Program Files (x86)\\SVP 4\\plugins64\\svpflow2_vs.dll")
if not hasattr(core,'trt'):
    core.std.LoadPlugin(r"C:\\Program Files (x86)\\SVP 4\\rife\\vstrt.dll")
import sys
sys.path.append("C:\\Program Files (x86)\\SVP 4\\rife")
from vsmlrt import RIFE, RIFEModel, Backend
from durfix import FixFrameDurations

clip = clip.resize.Spline64(format=vs.YUV420P8)

smoothfps_params = "{rate:{num:1}}"

src_fps     = 23.976
demo_mode   = 0
stereo_type = 0
nvof = 0
rife = 1
rife_num = 5
rife_den = 2
rife_trt = 1
rife_sc = 0.1
rife_fmt = vs.RGBH
rife_mnum = 46
trt_backend = Backend.TRT(fp16=True,device_id=0,num_streams=4,output_format=1,use_cuda_graph=True,workspace=None)

def interpolate(clip):
    input_um = clip.format.replace(core=core, bits_per_sample=32)
    input_m = input_um
    input_m8 = input_m
    input_m = input_m.std.AddBorders(0,0,0,8)

    if nvof:
        smooth  = core.svp2.SmoothFps_NVOF(input_m,smoothfps_params,nvof_src=input_m8,src=input_um,fps=src_fps)
    elif not rife:
        super   = core.svp1.Super(input_m8,super_params)
        vectors = core.svp1.Analyse(super["clip"],super["data"],input_m8,analyse_params)
        smooth  = core.svp2.SmoothFps(input_m,super["clip"],super["data"],vectors["clip"],vectors["data"],smoothfps_params,src=input_um,fps=src_fps)
    elif rife:
        input_m = input_m.misc.SCDetect(threshold=rife_sc)
        input_m = input_m.resize.Bicubic(format=rife_fmt,matrix_in_s="709")
        if not rife_trt:
                smooth = core.rife.RIFE(input_m,factor_num=rife_num,factor_den=rife_den,model_path=rife_mpath,gpu_id=rife_gpu,gpu_thread=rife_threads,tta=False,sc=True)
        else:
                smooth = RIFE(input_m,multi=rife_num,model=rife_mnum,backend=trt_backend)
                if rife_den>1:
                       smooth = FixFrameDurations(smooth.std.SelectEvery(cycle=rife_den,offsets=0),input_m,rife_num,rife_den)
        smooth = smooth.resize.Point(format=input_um.format.id,matrix_s="709")
        smooth = smooth.std.CropRel(0,0,0,8)
        smooth = core.svp2.SmoothFps_RIFE(smooth,smoothfps_params,src=input_um,multi=rife_num/rife_den,fps=src_fps)

    if demo_mode == 1:
        return demo(input_m, smooth)
    else:
        return smooth

    smooth = interpolate(clip)
    smooth.set_output()

https://i.imgur.com/wRM22hM.png

I see this post before https://www.svp-team.com/forum/viewtopic.php?id=3244
but i want to try with RIFE AI Profile in StaxRip, anyone can help me?

3

(10 replies, posted in Using SVP)

Chainik wrote:

ah, missed 'vsrife' part...

do not use "RIFE CUDA" unless you know what and why you're doing
default SVP installation won't give such an error


There is no error but mpv freezing use rife ai
here is my screenrecord
https://youtu.be/lcewW-4Ua5U

4

(10 replies, posted in Using SVP)

Chainik wrote:

you probably didn't install RIFE after installing SVP

already installed, checked [VPS_64] RIFE interpolation engine (Vulkan)

5

(10 replies, posted in Using SVP)

Chainik wrote:

"reinstall new version" - reinstall new version of what? python? you don't need to install python on your own, SVP has it's own portable python in place.
this error is usually because of python versions conflict (when you have _other_ python version installed somewhere and SVP's portable version is conflicting with it)

ok i uninstall all phyton dan svp on my computer. I do fresh install svp

now this error appeared

13:13:56.193 [i]: Screens: primary screen is 0
13:14:29.780 [i]: VideoPlayer: mpv [mpv.exe] connected, waiting for the video info...
13:14:30.302 [i]: VideoPlayer: mpv 0.34.0-325-g602995fd40 /via 'mpvpipe'
13:14:30.888 [i]: Media: video 1920x1080 [PAR 1.000] at 23.976 fps
13:14:30.888 [i]: Media: codec type is AVC, YUV/4:2:0/8 bits
13:14:30.919 [i]: Playback: starting up...
13:14:30.927 [i]: Playback [a1415689]: Frame server (64-bit) C:\Program Files (x86)\SVP 4\mpv64\vapoursynth.dll
13:14:30.928 [i]: Playback [a1415689]: resulting video frame 1920x1080
13:14:30.929 [i]: Playback [a1415689]: 2 acceptible profiles, best is 'RIFE AI engine' [0]
13:14:30.964 [i]: Playback [a1415689]: enabled while video is playing
13:14:30.966 [W]: Playback [a1415689]: maximum FRC rate for RIFE v2-v3 is 2.0
13:14:30.976 [i]: Playback [a1415689]: playing at 47.952 [23.976 *2/1] 
13:14:31.332 [E]: Playback [a1415689]: VS - Script evaluation failed:
13:14:31.332 [E]: Playback [a1415689]: VS - Python exception: No module named 'vsrife'
13:14:31.332 [E]: Playback [a1415689]: VS - Traceback (most recent call last):
13:14:31.332 [E]: Playback [a1415689]: VS - File 'src\cython\vapoursynth.pyx', line 2832, in vapoursynth._vpy_evaluate
13:14:31.332 [E]: Playback [a1415689]: VS - File 'src\cython\vapoursynth.pyx', line 2833, in vapoursynth._vpy_evaluate
13:14:31.332 [E]: Playback [a1415689]: VS - File 'C:\Users\Yfs\AppData\Roaming\SVP4\scripts\a1415689.py', line 10, in <module>
13:14:31.333 [E]: Playback [a1415689]: VS - from vsrife import RIFE
13:14:31.333 [E]: Playback [a1415689]: VS - ModuleNotFoundError: No module named 'vsrife'
13:14:31.333 [E]: Playback [a1415689]: VS - could not init VS

6

(10 replies, posted in Using SVP)

Chainik wrote:

any other python versions in PATH?

no, i already remove all python and reinstall new version but i still get same error

18:22:00.079 [E]: Playback [1b0511cf]: VS - Could not initialize VapourSynth scripting.

7

(10 replies, posted in Using SVP)

Chainik wrote:

any other python versions in PATH?

where i can check it?

8

(10 replies, posted in Using SVP)

i already try open file via mpv... still not detected

22:33:44.249 [i]: Main: starting up SVP 4 Pro [4.5.0.214]... 
22:33:44.251 [i]: Main: args: none
22:33:44.251 [i]: Main: working dir is C:\Program Files (x86)\SVP 4\
22:33:44.252 [i]: Main: data dir set to C:\Users\Yfs\AppData\Roaming\SVP4\
22:33:44.253 [i]: Settings: loading main.cfg OK
22:33:44.254 [i]: Settings: loading ui.cfg OK
22:33:44.260 [i]: Settings: loading frc.cfg OK
22:33:44.262 [i]: Settings: loading profiles.cfg OK
22:33:44.269 [i]: Settings: loading custom.cfg OK
22:33:44.274 [i]: Settings: loading lights.cfg OK
22:33:44.274 [i]: Main: using Qt 5.15.1 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2019)
22:33:44.275 [i]: Main: device scale is 1.00001, user defined scale is 0
22:33:44.276 [i]: Main: system locale is [ja]
22:33:44.276 [i]: Main: preferred language is [en-gb]
22:33:44.278 [i]: Main: setting language file to en.qm...
22:33:44.289 [i]: Main: collecting system information...
22:33:44.311 [i]: Main: module 'plugins/svpflow1.dll': 4.5.0.200
22:33:44.333 [i]: Main: module 'plugins/svpflow2.dll': 4.5.0.211
22:33:44.347 [i]: Main: module 'plugins64/svpflow1.dll': 4.5.0.200
22:33:44.361 [i]: Main: module 'plugins64/svpflow2.dll': 4.5.0.212
22:33:44.373 [i]: Main: module 'plugins64/svpflow1_vs.dll': 4.5.0.200
22:33:44.387 [i]: Main: module 'plugins64/svpflow2_vs.dll': 4.5.0.214
22:33:44.402 [i]: Main: VLC filter (64 bit): 1.0.0.190
22:33:44.402 [i]: Main: PYTHONPATH is C:\Program Files (x86)\SVP 4\mpv64
22:33:44.404 [i]: OS: Windows 11 [10.0.22000]
22:33:44.405 [i]: CPU: Intel Core i3-10100 [base frequency 3601 MHz, 8 threads]
22:33:44.406 [i]: Video: registry info - NVIDIA GeForce GTX 1050
22:33:44.406 [i]: Video: reading OpenCL info...
22:33:44.561 [i]: Video: 1 GPU OpenCL device(s) on NVIDIA CUDA [OpenCL 3.0 CUDA 11.6.110] (NVIDIA Corporation)
22:33:44.561 [i]: Video 1: NVIDIA GeForce GTX 1050 (NVIDIA Corporation, ver.511.79) [gpuID=11]: OK
22:33:44.561 [i]: Video: 1 GPU OpenCL device(s) on Intel(R) OpenCL HD Graphics [OpenCL 3.0] (Intel(R) Corporation)
22:33:44.561 [i]: Video 1: Intel(R) UHD Graphics 630 (Intel(R) Corporation, ver.30.0.101.1002) [gpuID=21]: OK
22:33:44.562 [i]: Memory:  24442  MB total,  13927 MB free
22:33:44.562 [i]: System: finding network settings...
22:33:45.115 [i]: Power: AC is ON [1]
22:33:45.336 [i]: Screens: updating information, 2 screen(s) found
22:33:45.757 [i]: Main: preparing video profiles...
22:33:45.934 [i]: Main: preparing performance graphs...
22:33:46.231 [i]: Main: preparing ffdshow...
22:33:46.231 [i]: ffdshow: can't find 32-bit installation
22:33:46.232 [i]: ffdshow: found 64-bit version 1.3.4533.0 [C:\Program Files\ffdshow\ffdshow.ax]
22:33:46.237 [i]: Main: preparing AviSynthFilter (AVSF)...
22:33:46.277 [i]: AVSF: found 32-bit version 1.4.3.0 [C:\Program Files (x86)\SVP 4\avsf\avisynth_filter_32.ax]
22:33:46.316 [i]: AVSF: found 64-bit version 1.4.3.0 [C:\Program Files (x86)\SVP 4\avsf\avisynth_filter_64.ax]
22:33:46.318 [i]: Main: preparing mpv...
22:33:46.320 [i]: Main: preparing remote control...
22:33:46.320 [i]: RemoteControl: started
22:33:46.320 [i]: Main: preparing main menu...
22:33:46.422 [i]: Main: loading extensions...
22:33:46.443 [i]: Extensions: found svplight 2.0.0.190 ...
22:33:46.454 [i]: Settings: loading leds.cfg OK
22:33:46.560 [i]: Extensions: found svptube 2.1.0.221 ...
22:33:46.586 [i]: Main: initialization completed in 2302 ms, but still waiting for the screens measurement...
22:33:46.687 [i]: Updates: checking now...
22:33:48.694 [i]: Performance: quick estimation = 653 (previous value was 667)
22:33:49.470 [i]: Screens: screen 0 - 1920x1080 @74.996 Hz [measured], x1.0 [80 DPI]
22:33:49.535 [i]: Screens: screen 1 - 1366x768 @59.804 Hz [measured], x1.0 [81 DPI]
22:33:49.535 [i]: Screens: primary screen is 0
22:34:57.243 [i]: VideoPlayer: mpv [mpv.exe] connected, waiting for the video info...
22:34:57.757 [i]: VideoPlayer: mpv 0.34.0-325-g602995fd40 /via 'mpvpipe'
22:34:58.338 [i]: Media: video 1920x1080 [PAR 1.000] at 23.976 fps
22:34:58.338 [i]: Media: codec type is AVC, YUV/4:2:0/8 bits
22:34:58.373 [i]: Playback: starting up...
22:34:58.379 [i]: Playback [71837a93]: Frame server (64-bit) C:\Program Files (x86)\SVP 4\mpv64\vapoursynth.dll
22:34:58.380 [i]: Playback [71837a93]: resulting video frame 1920x1080
22:34:58.381 [i]: Playback [71837a93]: 3 acceptible profiles, best is 'RIFE AI engine' [0]
22:34:58.406 [i]: Playback [71837a93]: enabled while video is playing
22:34:58.408 [W]: Playback [71837a93]: maximum FRC rate for RIFE v2-v3 is 2.0
22:34:58.411 [i]: Playback [71837a93]: playing at 47.952 [23.976 *2/1] 
22:34:58.440 [E]: Playback [71837a93]: VS - Could not initialize VapourSynth scripting.
22:35:05.036 [i]: Playback [71837a93]: deleted

how i can fix it?