Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Raspberry Pi Sensors
  • Toc
  • feedback
Raspberry Pi Sensors

Raspberry Pi Sensors

By : Rushi Gajjar
4.4 (9)
close
Raspberry Pi Sensors

Raspberry Pi Sensors

4.4 (9)
By: Rushi Gajjar

Overview of this book

This book is perfect for hardware enthusiasts who want to develop amazing projects using Raspberry Pi. Some knowledge and experience working with Linux, C, and Python is a plus, but once you're set up to go, you'll be ready to push the creative capabilities of your Raspberry Pi even further.
Table of Contents (10 chapters)
close
9
Index

Live streaming using a network camera


Have you ever wondered whether the RasPi can be used for live streaming purposes? We are going to stream videos on the RasPi on the localhost network using RasPi as a network camera. There are multiple ways to make use of the RasPi for live streaming:

  • By fixing a camera interfaced with the RasPi being in the same network, you can SSH through the connection and open the camera port through the command-line interface

  • Use open source software motion to enable live streaming at the local web browser

We will be using motion to get access to the RasPi camera. Motion has a built-in HTTP server that enables the camera view from the web browser. Motion can record videos in MPEG format and capture images in JPEG format. These images and videos can be stored wherever you want, and it does support databases such as MySQL. Enter these commands to install motion on the RasPi:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install bison
sudo apt-get -y install...
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete