I'm using Eclipse ADT with NDK developing a Android Application involving OpenCV.
I tried
CvCapture *inputVideo = cvCaptureFromFile(location);
In the native cpp file, but it always gives input NULL.
I have make sure that location is a char* point to a MP4 file on my Android Phone and READ_EXTERNAL_STORAGE permission is given.
(which is actually a MP4 file generated by Android built-in Camera Software and could be open by build-in Video Software)
I tried VideoCapture::VideoCapture, the cpp version of cvCaptureFromFile but still video.isOpen() is False always.
Is it like actually OpenCV does not support MP4 on Android or I need to come with other software?