Having problem is creating video from image arrays

asked 2015-07-10 17:26:42 -0500

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.

edit retag flag offensive close merge delete

Comments

MJPG and .avi should work

berak gravatar imageberak ( 2015-07-11 00:28:46 -0500 )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 ( 2015-07-12 18:32:28 -0500 )edit