Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (22 loc) · 623 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 623 Bytes

kaleidoscope

from Video import Video
from Pattern import Pattern

# open the input video file
video = Video('video.mp4') 
# export frames
video.toFrames() 

# open the frames as an image pattern
pattern = Pattern('video_frames/video%d.jpg')
# apply several filters (the images will be overwritten)
pattern.apply([
	'makeSquare', 
	'mirrorTopRight', 
	'kaleidoscope',
	'duplicateMirrorV'
])
# export the images as a video
pattern.toVideo(outputPath="output.mpg")

For reference: video.mp4, output.mpg