Ask Your Question

Revision history [back]

Android VideoCapture from video file always return null

I use example code as following to try open MP4 video file and put some text to video file but open result always return failed.

extern "C" { .... something code............

const char* arrURL = "mnt/sdcard/Download/VID_20140317_104750.mp4"; string source(arrURL);

VideoCapture inputVideo; // Open input //inputVideo.open(source);

if (!inputVideo.open(source)) -> alway return false here... { env->ReleaseStringUTFChars(URL, arrURL); env->ReleaseStringUTFChars(sInputText, arrInputText); return; } ....

i used eclipse CDT - juno, NDKr9, OpenCV 2.4.8 do everyone can help me answer some questions? - VideoCapture can not be supported on android? - Do you know any other solution on android? (not FFMPEG lib)

Thanks

click to hide/show revision 2
retagged

updated 2014-03-18 04:35:36 -0600

berak gravatar image

Android VideoCapture from video file always return null

I use example code as following to try open MP4 video file and put some text to video file but open result always return failed.

extern "C" { .... something code............

const char* arrURL = "mnt/sdcard/Download/VID_20140317_104750.mp4"; string source(arrURL);

VideoCapture inputVideo; // Open input //inputVideo.open(source);

if (!inputVideo.open(source)) -> alway return false here... { env->ReleaseStringUTFChars(URL, arrURL); env->ReleaseStringUTFChars(sInputText, arrInputText); return; } ....

i used eclipse CDT - juno, NDKr9, OpenCV 2.4.8 do everyone can help me answer some questions? - VideoCapture can not be supported on android? - Do you know any other solution on android? (not FFMPEG lib)

Thanks

click to hide/show revision 3
No.3 Revision

Android VideoCapture from video file always return null

I use example code as following to try open MP4 video file and put some text to video file but open result always return failed.

extern "C"
{
.... //.... something code............

code............

const char* arrURL = "mnt/sdcard/Download/VID_20140317_104750.mp4"; string source(arrURL);

source(arrURL);

VideoCapture inputVideo; // Open input //inputVideo.open(source);

//inputVideo.open(source);

if (!inputVideo.open(source)) -> alway return false here... { env->ReleaseStringUTFChars(URL, arrURL); env->ReleaseStringUTFChars(sInputText, arrInputText); return; } ....

//....

i used eclipse CDT - juno, NDKr9, NDK-r9, OpenCV 2.4.8 do everyone can help me answer some questions? - VideoCapture can not be supported on android? - Do you know any other solution on android? (not FFMPEG lib)

Thanks