Selur's Little Message Board

Full Version: Error when using RIFE with scene detection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I get "Crashed with exit status 0" error when using RIFE with scene detection enabled.
'y4m [error]: bad sequence header magic' in the log file indicates that it's an issue with the Vapoursynth script.
Looking at the script:
Code:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/FrameFilter/RIFE/RIFE.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'C:\Users\Desktop\Videos\Title T08-1.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading C:\Users\Desktop\Videos\Title T08-1.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Desktop/Videos/Title T08-1.mkv", format="YUV420P8", cache=0, fpsnum=24000, fpsden=1001, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Bicubic(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 23.976
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
clip = core.misc.SCDetect(clip=clip,threshold=0.150)
# adjusting color space from YUV420P8 to RGBS for vsRIFE
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="709", range_s="limited")
# adjusting frame count&rate with RIFE
clip = core.rife.RIFE(clip, sc=True, fp32=True) # new fps: 47.952
# adjusting output color from: RGBS to YUV420P8 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="709", range_s="limited")
# set output frame rate to 47.952fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=48000, fpsden=1001)
# Output
clip.set_output()
I think I see the issue. 'misc' is used, but the required dll isn't imported. :/
Side note:
Seeing the options you chose: "RIFE(clip, sc=True, fp32=True)" I wonder how much RAM your video card has and whether the Vapoursynth Preview works.
(fp32 option was removed in the latest version of RIFE)

as a workaround you can add a custom section and simply write:
Code:
core.std.LoadPlugin(path="%FILTERPATH%/MiscFilter/MiscFilters/MiscFilters.dll")
into it.

-> will fix and send you a link to new dev version for testing via pm in ~1hr. Smile


Cu Selur
Send you a link to a dev version which should fix the issue via pm.

Cu Selur