I have also facing the problem. ndk-build successfully build cvCreateFileCapture(filename). But unfortunately it returns the NULL value for a valid video filename staying in sdcard. Now my question is, is it possible to use cvCreateFileCapture() for capturing video or not or there are any other alternative.
Thanking You
Srikanta Mondal
On Friday, 26 October 2012 09:16:33 UTC+5:30, Weichao Luo wrote:
Hi, I have a question about the openCV4Android:
I have a openCV program build on windows PC which uses the cvCreateFileCapture(filename) to open a video, and I wan't to port that program on android. Now I have successfully build with ndk-build and openCV4Android-2.4.2-native-sdk downloaded from , when I try to run on Android, the cvCreateFileCapture just return NULL while it's working on PC. I checked the video path is right, and tested cvLoadImage, that's working too.
I want to know whether the method is supported on Android? If not, Is there any way to create a VideoCapture from a Video not the Camera?
thanks.