Raspberry Pi_Eng_22.1.8 Motion Detecting Web Camera – Motion Program

22.1.8 Motion Detecting Web Camera – Program

22.1.8.1 Framework to Access Camera via Web

program is a program that monitors video signals coming from a camera. It has the ability to detect if there is a significant change in the image, that is, motion. This program not only has a function to view the contents on the web in real time by transmitting a video taken by a camera to the Internet, but also has a function of storing the motion as an image or video when a motion is detected on the screen.

Raspberry Pi_Eng_22.1.6 Viewing Video on an External Computer

22.1.6 Viewing Video on an External Computer

Here we talk about how to view video taken in Raspberry Pi on an external computer through a network.

There are a number of ways to view video over the network, but here we explain the way to use program.

22.1.6.1 Basic framework to Transmit/Receive Video Data

Here, we want to use the following framework for video transmission and reception.

Raspberry Pi_Eng_22.1.5 Converting Video Format Using FFMPEG Program

22.1.5 Converting Video Format Using Program

Video taken by Raspberry Pi camera use “H.264” format, which is a format that is not widely used by ordinary users. You can use program to convert it to a popular video format.

● Installing program

To use program, you need to install it as follows:

Raspberry Pi_Eng_22.1.4 Playing Video Contents

22.1.4 Playing Video Contents

Here, we’ll look at the tools that can be used to play videos on the Raspberry Pi system.

22.1.4.1 Playing Video Using Program

OMXPlayer is a program installed in Raspberry Pi system by default. It can play not only video files recorded with Raspberry Pi camera but also general videos in Raspberry Pi system.

Raspberry Pi_Eng_22.1.3 Taking Picture and Video Using Pi Camera

22.1.3 Taking Picture and Video Using Pi Camera

22.1.3.1 Overview of Shooting Command for Pi Camera

With Raspberry Pi’s dedicated camera, you can run the following commands. They have functions that can shoot a still image or take a movie according to a command.

■ “raspistill” command

. This command captures still images. The captured image is saved as “jpg” file.

Raspberry Pi_Eng_22.1.2 Processing API for Raspberry Pi Camera

22.1.2 Processing API for Raspberry Pi Camera

In the Raspberry Pi system, MMAL method and V4L2 method can be used as processing API for the Raspberry Pi camera function.

22.1.2.1 MMAL (Multi-Media Abstraction Layer)

The Raspberry Pi A+/B+ system uses a BCM2835 system board made by the Broadcom, where the graphics processing GPU is VideoCore Ⅳ.

Raspberry Pi_Eng_22.1.1 Basics of Camera

22.1 Using Raspberry Pi camera

22.1.1 Basics of Camera

22.1.1.1 Installing Raspberry Pi Dedicated Camera

The Raspberry Pi dedicated camera is installed by connecting the ribbon cable to the CSI port on the main body. Please refer to the description of [3.9.3 Raspberry Pi Dedicated Camera] for information about type of camera and how to install it.

Raspberry Pi_Eng_22.0 Chapter 22 Utilizing Multimedia

Chapter 22 Utilizing Multimedia

Chapter’s Main Topics

First, this chapter describes the basic knowledge for using the Raspberry Pi camera. Next, it explains how to take pictures and video using Raspberry Pi camera, and it alos provides the way to view the contents of the picture and video that has been taken.

It also describes how to watch these videos from an external computer or broadcast them over the Internet. It also provides a way to detect, record, and notify the motion on the recorded video in real time.

It includes descriptions on the following topics:
■ Basics of Raspberry Pi camera

■ Processing API for Raspberry Pi camera

■ Taking photos and videos using Raspberry Pi camera

■ Viewing videos contents

■ Viewing videos on an external computer

■ Broadcasting video over the Internet

■ Constructing Motion detection web camera

■ Using E-Mail