Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoWriter fps parameter

Through the VideoWriter the incoming webcam stream is stored in uncompressed form in a .avi. The opencv VideoWriter has an fps parameter that should be set in the initialization of the object so as to proceed with the video writing. However, the incoming stream may have an fps lower of higher to that defined in the parameter. Also the real fps of the incoming stream may be not constant. My question is how the data are stored into the uncompressed .avi in accordance to the real fps? Is there an up sampling or downsampling so as to meet the VideoWriter fps? I couldnt found a documentation for that explanations or other ones that I could not imagine right now.

Thanks.