Web Cam streaming from Raspberry Pi to Android using streamer

I tried to stream video from webcam connected with Raspberry Pi to Android phone.


webcam : PS3 Eye
Android Phone : Motorola RAZR XT912

Best Raspberry PI Kit (Recommended!)


Set up Raspberry Pi

Install gstreamer

Update your Raspbian before install gstreamer packages.
sudo apt-get upgrade
sudo apt-get update
Install gstreamer packages.
sudo apt-get install gstreamer-tools gstreamer0.10-plugins-bad gstreamer0.10-plugins-good v4l-utils

Create gstreamer start script

I like tcsh shell.
sudo apt-get install tcsh
Create the script gst-server.sh to start gstreamer streaming server. 

set myip=
set port=5000
set width=320
set height=240

  v4l2src !\
  ffmpegcolorspace !\
  video/x-raw-yuv,width=${width},height=${height},framerate=\(fraction\)30/1 !\
  jpegenc !\
  tcpserversink host=${myip} port=${port} sync=false
 Add an executable permission to the script.
chmod u+x gst-server.sh

Connect a webcam

I used PS3 Eye as a webcam. You can use other webcams.

Start gstreamer

Run the script.


If you want to stream microphone as well, check this out.

Set up Android phone

I created an Android application simplemjpegview_gst based on SimpleMjpegStreamer. You can download the source codes.

You can download apk file here.

[AKM Chip Booster] Audio ADC AK5704 PCB Design

Designing a PCB prototype with AK5704 is not so difficult and I show an example with my design. People who are not familiar with AK5704,...