Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receiving video stream from an IP camera on android

I have an IP camera which is streaming video in MJPEG format. Now my aim is to receive it and display it in my own custom android app. For this I have three programming alternatives on android platform :

  1. Using inbuilt Anrdroid MediaPlayer class
  2. Using FFMPEG library in native C and accessing it through JNI
  3. Using GStreamer port on android to receive the stream

So please suggest a better solution?

I have no experience with FFMPEG or GStreamer. So what is the feasibility of doing this?

like image 267
Bhanu Kiran Avatar asked May 21 '12 12:05

Bhanu Kiran


People also ask

How can I watch IP camera on my phone?

A. Open the web browser on Android or Iphone and put the IP address of the camera into the address bar of the browser; then put in the username&password of the camera and you can view the camera now.

How can I see my IP camera on Android?

Setup. Download Android IP Webcam app and launch the app. When you press 'Start Server', it will start streaming video from your phone and the IP address of the device will be shown on screen.

How do I get RTSP stream from my camera?

Before you have your RTSP address entered, you're going to go into the web interface for the camera you're going to be streaming and go to “Set Up”, “Network”, and then “Port.” You need to make sure your RTSP Port is set to 554. This should be the default setting, but it doesn't hurt to check before you get going!


1 Answers

Use gstreamer for it.

I have used gstreamer at beagleboard which has 1GHz processor for taking image from 2 cameras in 30 fps with very low CPU processing power.

Gstreamer able to merge images, add strings, change formats. And presents you what you want easily in stream. The only thing you need to do is adding black boxes each other.

You can add blackboxes with both dynamically and statically.

If you are not going to change your stream depends on input at your program I suggest to use static one. But I am not sure if it works at android..

like image 138
ibrahim demir Avatar answered Oct 09 '22 15:10

ibrahim demir