Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get videoWriter working with directShow

Hi,

The documentation of videoWriter in openCV >= 4.0.0 stats clearly:

On Windows FFMPEG or MSWF or DSHOW is used;

The Problem is that in videoio_registry.cpp the directshow backend gets discarded because mode is only: MODE_CAPTURE_BY_INDEX and line 277 in videoio_registry.cpp applies:

if (info.mode & MODE_WRITER) result.push_back(info);

My question is: Is the documentation wrong? Or in case it is correct, how to use the videoWriter and how to select a specific codec in particular?

tnx