Thread: Vapoursynth
View Single Post
Old 13th September 2017, 17:53   #2760  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
How do I apply filter to a range of frames on a video? I have a list of range and a list of different setting of a filter, and have each setting applies to each range of frames.
Code:
ranges = [[0,100],[500,1000],[1500,10000]]
settings = [1,2,3]

clip = somefunc(setting=settings[0]) # applies to frame 0-100
clip = somefunc(setting=settings[1]) # applies to frame 500-1000
This looks like a task for the FrameEval but it doesn't allow me to set the range of frames as input.
Trim and splice. Like avisynth.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote