Hello everyone,
I’m trying to open a video using this line
cap.open(filename, cv::CAP_DSHOW)
like shown in the overview.
I tried with several video-container and codecs (I rendered several 1 sec videos to test them). Everytime open()
returned false. With further investigation into the cap.cpp I found, CAP_DSHOW
only has the mode MODE_CAPTURE_BY_INDEX
. When opening a video file the function getAvailableBackends_CaptureByFilename()
is called and as expected does not return CAP_DSHOW
.
My question would be: Is DSHOW
no longer supported for opening video files or did I miss any build options which would set the mode to MODE_CAPTURE_ALL
?
In my opinion, if it is not supported, the overview as well as the documentation should reflect that.
Further information:
The software I’m building has to run on a fresh Windows 10 N. Therefore MSMF and ffmpeg are not a viable option for me.