Cary Knoop
24th July 2020, 00:16
I am working on a single clip where the frames from one camera need a plane shift, so for certain frame ranges, I want to perform a shift while for other ranges I want to do nothing.
How do I do this in Vapoursynth?
So assume for example we need to shift for frames between 0..2000, 3000..4000, and 6000..7000 while the other frames are correct already.
Wait, would something like this work:
part_1 = clip[0:2000].myshift()
part_2 = clip[2001:2999]
part_3 = clip[3000:4000].myshift()
part_4 = clip[4001:5999]
etc
...
clip = part_1 + part_2 + part_3 + part_4 + etc
Even if it works would it be the best approach performance wise?
How do I do this in Vapoursynth?
So assume for example we need to shift for frames between 0..2000, 3000..4000, and 6000..7000 while the other frames are correct already.
Wait, would something like this work:
part_1 = clip[0:2000].myshift()
part_2 = clip[2001:2999]
part_3 = clip[3000:4000].myshift()
part_4 = clip[4001:5999]
etc
...
clip = part_1 + part_2 + part_3 + part_4 + etc
Even if it works would it be the best approach performance wise?