Having problem is creating video from image arrays

asked Jul 10 '15

desri gravatar image

Hi,

I am using Opencv-3.0.0 through Python 2.7. I am not able to create video from image arrays, using the cv2.VideoWriter(). The process of inserting and encoding image frames into the video stream does not yield any errors, but the resulting video is only 7 KB in size and when opening through VLC, I get the error that "could not demultiplex stream."

I appreciate any help in getting over this problem.

Preview: (hide)

Comments

MJPG and .avi should work

berak gravatar imageberak (Jul 11 '15)edit

No, actually it still doesn't work. The following are my commands: fourcc = cv2.VideoWriter_fourcc('M','J','P','G') video_out = cv2.VideoWriter('Motion_correction.avi', fourcc, 60, (640, 480))

Could you please let me know what is that I am doing wrong?

desri gravatar imagedesri (Jul 13 '15)edit