iheredia / kaleidoscope

Python module for kaleidoscope video creation from videos and images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Python module for kaleidoscope video creation from videos and images

License:The Unlicense


Languages

Language:Python 100.0%