Here is my sample program for creating Video from images with OpenCV. But my output video is not working and An error occurred ans stating that \"Could not demultiplex strea
Usually this is not a FOURCC problem. The problem here is that the size of the img and the size used to open the VideoWriter are different.
In that way you should be sure that IPLImages or Mat images, and the VideoWriter have the same size, otherwise the video output will be wrong.