Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture not working with DSHOW backend

I built OpenCV (with mingw 4.9.2 @ Win7Prof64) with CMake switches for WITH_FFMPEG and WITH_DSHOW turned on. When I access a movie file with

VideoCapture (fileName)

works fine (it uses ffmpeg backend then).

But

VideoCapture (fileName, cv::CAP_DSHOW)

doesn't work (isOpened() returns false).

What is missing/ what do I do wrong? Are there any kind of dshow stubs/ libs/ dlls needed?

VideoCapture not working with DSHOW backend

(This is a duplicate of SO)

I built OpenCV (with mingw 4.9.2 @ Win7Prof64) with CMake switches for WITH_FFMPEG and WITH_DSHOW turned on. When I access a movie file with

VideoCapture (fileName)

works fine (it uses ffmpeg backend then).

But

VideoCapture (fileName, cv::CAP_DSHOW)

doesn't work (isOpened() returns false).

What is missing/ what do I do wrong? Are there any kind of dshow stubs/ libs/ dlls needed?