Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

frame size in out.write(frame) must be the same as the size argument in the constructor VideoWriter.

You could change the size properties to VideoCapture or resize the grabbed frame as your needs