MJPG stream with Android

asked 2015-06-02 02:43:57 -0500

Adikse gravatar image

Hi !

I want use an IP camera in my project opencv running on Android. I did a sample code on pc and it's running perfectly with a URL of my camera when I create the VideoCapture object. But when I do the same thing for my Android project in my native code it doesn't work.

capture = new cv::VideoCapture("http://user:pass@my.ip/video/mjpg.cgi?val=.mjpeg");

if (!capture->isOpened())
{
    cout << "Cannot open the video cam" << endl;
}

There is a way to open a video stream on Android with opencv or do I have to integrate other library like GStreamer ?

edit retag flag offensive close merge delete

Comments

"or do I have to integrate other library like GStreamer ?" - yes.

berak gravatar imageberak ( 2015-06-02 03:21:06 -0500 )edit