Log in

View Full Version : Zip function?


Cary Knoop
6th January 2018, 21:53
Is there a Vapoursynth "zip" function that takes consecutive frames from a list of videos and returns a video?

For instance assume that:
videoA has frames A1, A2, A3 etc
videoB has frames B1, B2, B3 etc
videoC has frames C1, C2, C3 etc

The resulting video would be A1,B1,C1,A2,B2 etc.

new_video = zip([videoA, videoB, videoC]);

sneaker_ger
6th January 2018, 21:55
http://www.vapoursynth.com/doc/functions/interleave.html

Cary Knoop
6th January 2018, 22:02
Thanks!

jackoneill
6th January 2018, 23:20
Python comes with batteries included, so of course you can read and write Zip files (https://docs.python.org/3/library/zipfile.html).