Stream live video from phone to phone using socket fd

I found an open source project for implementing what I was trying. It processes the video with metadata through an IP camera. Although it does not send video directly to a phone, it does broadcast video for various devices to watch. The source code can be found at the following project page http://code.google.com/p/ipcamera-for-android/. With Android … Read more

How to parse mjpeg http stream from ip camera?

import cv2 import urllib import numpy as np stream = urllib.urlopen(‘http://localhost:8080/frame.mjpg’) bytes=”” while True: bytes += stream.read(1024) a = bytes.find(‘\xff\xd8’) b = bytes.find(‘\xff\xd9’) if a != -1 and b != -1: jpg = bytes[a:b+2] bytes = bytes[b+2:] i = cv2.imdecode(np.fromstring(jpg, dtype=np.uint8), cv2.CV_LOAD_IMAGE_COLOR) cv2.imshow(‘i’, i) if cv2.waitKey(1) == 27: exit(0) edit (explanation) I just saw that … Read more

Live-stream video from one android phone to another over WiFi

If you do not need the recording and playback functionality in your app, using off-the-shelf streaming app and player is a reasonable choice. If you do need them to be in your app, however, you will have to look into MediaRecorder API (for the server/camera app) and MediaPlayer (for client/player app). Quick sample code for … Read more