I have a lot of video devices in my /dev
folder (e.g. video1
, video2
, ..., video9
) and one /dev/video
which
By looking at the source code of OpenCV 2.4.11 (cap.cpp) you can see that the overload using const string& filename is calling 'cvCreateFileCapture' which uses other plugins as FFMPEG or GStreamer to load files so the answer is no.
bool VideoCapture::open(const string& filename)
{
if (isOpened()) release();
cap = cvCreateFileCapture(filename.c_str());
return isOpened();
}