Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't open file when using VideoFileSource

hi guy

I have used the code in Java and C++ (NDK in Android). In my code have used VideoFileSource read video file. But when I ran, below error has occurred.

Error
     E/cv::error(): OpenCV(3.4.1) Error: No Error (can't open file: ) in virtual void cv::videostab::{anonymous}::VideoFileSourceImpl::reset(), file /build/master_pack-android/opencv/modules/videostab/src/frame_source.cpp, line 71

frame_source.cpp

#ifdef HAVE_OPENCV_VIDEOIO
        vc.release();
        vc.open(path_);
        if (!vc.isOpened())
            CV_Error(0, "can't open file: " + path_); //line 71

How to fix this bugs?

click to hide/show revision 2
retagged

updated 2018-07-13 05:38:46 -0600

berak gravatar image

Can't open file when using VideoFileSource

hi guy

I have used the code in Java and C++ (NDK in Android). In my code have used VideoFileSource read video file. But when I ran, below error has occurred.

Error
     E/cv::error(): OpenCV(3.4.1) Error: No Error (can't open file: ) in virtual void cv::videostab::{anonymous}::VideoFileSourceImpl::reset(), file /build/master_pack-android/opencv/modules/videostab/src/frame_source.cpp, line 71

frame_source.cpp

#ifdef HAVE_OPENCV_VIDEOIO
        vc.release();
        vc.open(path_);
        if (!vc.isOpened())
            CV_Error(0, "can't open file: " + path_); //line 71

How to fix this bugs?