Log in

View Full Version : AverageFrames fork is (much) slower on R55+


Couleur
4th June 2022, 10:28
Hey, I've been using vs-frameblender (https://github.com/f0e/vs-frameblender) for a little while, but noticed it was noticeably slower if I ran it on anything newer than R54

https://files.catbox.moe/d9ya5t.png

You can find 156 sloc lines of C++ code here (https://github.com/couleurm/vs-frameblender/blob/main/vs-frameblender/main.cpp)
Compiling instructions on my fork (https://github.com/couleurm/vs-frameblender#compiling)

Sample code:


import vapoursynth as vs
import havsfunc
core = vs.core

#input_video = r"C:\Users\hello replace this\Downloads\cian qd.mkv"
clip = core.ffms2.Source(input_video, cache=False)

out_fps = 60
blended_frames = int((clip.fps / out_fps) * 1.0) # Set that int to blend more frames
weights = [1,1,1,1,1]
clip = core.frameblender.FrameBlend(clip, weights, True)
clip = havsfunc.ChangeFPS(clip, out_fps)

clip.set_output()


Sample 280FPS footage (25MB) (https://cdn.discordapp.com/attachments/824297395801554974/980799991201271858/cian.mp4)

I'd be very thankful if someone could find the reason why it's slower on newer versions

Couleur
2nd November 2023, 11:56
fixed in classic
https://github.com/AmusementClub/vapoursynth-classic/issues/7