Problems with the video writer in OpenCV-3.0.0
Hi,
I asked this question last week about the video writer in OpenCV-3.0.0 with Python 2.7 not working properly, but didn't get any answers. I am surprised nobody else is facing similar problems.
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."
**The following are my commands:
fourcc = cv2.VideoWriter_fourcc('M','J','P','G') video_out = cv2.VideoWriter('Motion_correction.avi', fourcc, 60, (640, 480))**
When I use video_out.write(frame_array), nothing gets written in the buffer. I really need help in this regard. The documentation is not helpful at all.