First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked Jun 12 '17

nji gravatar image

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?

click to hide/show revision 2
No.2 Revision

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?