Quote:
Originally Posted by Jukus
What needs to be done to make a video have different FPS?
For example, I want to do something like that
Code:
from vapoursynth import core
import havsfunc as haf
clip = core.d2v.Source('index.d2v')
clip1 = core.std.Trim(clip, 0, 5579)
clip1 = haf.QTGMC(clip1, Preset='Very Slow', Sharpness=0.5, FPSDivisor=1, SourceMatch=3, Lossless=2, MatchEnhance=0.75, TFF=True)
clip2 = core.std.Trim(clip, 5580, 24186)
clip2 = haf.QTGMC(clip2, Preset='Very Slow', Sharpness=0.5, SourceMatch=3, MatchEnhance=0.75, InputType=1)
clip = clip1+clip2
clip.set_output()
but this code will not work correctly.
|
Internally in vapoursynth, it has to be CFR (constant frame rate)
1) You can duplicate frames and framerate in the second section (but same content speed). eg. by using core.std.Interleave
Or ,
2) you can temporarily assign a 2xFPS to the 2nd section using core.std.AssumeFPS to append sections (so it plays double speed), then use external timecodes (timestamps) method to make it VFR