Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have faced the same issue, the reason is the application(.exe) folder should contain the ffmpeg dll depending on your OpenCV version in order to write the videofile. If the dll is not present there, the video file written will be of 0KB. Kindly check whether your application folder contains that dll.

For example, opencv_ffmpeg310.dll for OpenCV 3.1.0