Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This should work. Actually the error coming from before lines 17.

video_filename = 'video_{0}.avi'.format(datetime.datetime.now().strftime("%Y-%m-%d"))
out = cv2.VideoWriter(video_filename, fourcc, 20.0, (640,480)) 

Output:
output_2018-19-11.avi