[Project] Raspberry Pi Powered WiFi Streaming Camera

Scope:

To build a Raspberry Pi powered video camera, capable of streaming over a home wireless network.

BOM:

– Raspberry Pi (With Raspbian OS)

– RPi compatible Wifi Dongle (List here)

– Camera Module (Here)

– Wifi enabled PC with VLC media player

[Project] Raspberry Pi Powered WiFi Streaming Camera

Instructions:

  1. Connect the Raspberry Pi Camera Module to the CSI connector located between the ethernet and HDMI ports.
  2. Enable the Raspberry Pi camera module in the Raspberry Pi Configuration Menu
    1. $ sudo raspi-config
    2. Enable Camera. This now gives access to the command line tool “raspivid” and “raspistill” which controls the camera
  3. Reboot Raspberry Pi as required.
  4. Update and Upgrade packages and Raspberry Pi firmware
    1. $ sudo apt-get update
    2. $ sudo apt-get upgrade
    3. $ sudo rpi-update
    4.  Reboot as necessary
  5. Now, to invoke an instance of raspivid to begin the video streaming process.
    1. $ raspivid -o - -t 0 -hf -vf -w 640 -h 360 -fps 25
    2. This line calls a new instance of raspivid with the following parameters:
      1. -o: Output file
      2. -t 0: run for x milliseconds (0 means continuously)
      3. -hf, -vf: horizontal and vertical flip
      4. -w: 640 pixels width
      5. -h: 360 pixels heigh
      6. -fps: frames per second.
  6. Because the camera and raspivid default to a h264 encoding format, we must also pipe the raspivid output to vlc and wrap tell VLC which streaming methods, encoding and port to output the stream.
    '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
    1. The full command is as follows:
    2. $ raspivid -o - -t 0 -hf -vf -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
  7. The camera is now piping it’s output to port 8090 of the raspberry pi and the only thing left to do now is to point the PC to the appropriate location on the home network to find the stream
    1. Open a new instance of VLC media player on the PC
    2. Under Media -> Open Network Stream
    3. VLC should now be displaying the output of the raspberry pi camera module (with a slight delay)

[Project] Raspberry Pi Powered WiFi Streaming Camera configration Discussion:

The Raspberry Pi computer is a credit card sized computer powered by an ARM processor and BCM2835 SOC running a Debian distribution of Linux. The Pi has GPIOs as well as dedicated CSI (Camera Serial Interface) connectors which enable peripherals to be easily connected to it.

This makes it an ideal, and budget friendly, starting point for an embedded system such as the streaming security camera presented here. The BOM for this camera is the $30.00 Raspberry Pi, $30.00 camera module and a $10.00 wifi dongle.

 

For more detail: [Project] Raspberry Pi Powered WiFi Streaming Camera


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top