Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Possible reasons,

1.Codec problem.
-> Try with other codec.

2.Image resolution.
-> If the camera not giving the frame of 640x480 resolution that may create the problem.
-> So either resize the image to 640X480 or use VideoCapture::get() to get the frame width, height and initialize VideoWriter with it.