#画像をつなぎ合わせた動画の作成方法
import cv2
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')
video = cv2.VideoWriter('movie.avi', fourcc, 30.0, (100, 100)) #fps, size
#20.0 = 1秒間に20コマ
for i in range(0, 100):
img = cv2.imread("%d.png"%(i))
video.write(img)
video.release()