in , ,

Live Camera Streaming Raspberry Pi – Motion Setup

Raspberry Pi is a handy little computer that is used by hobbyists and techies all alike. Due to its compact size, powerful processor and less power consumption it can be used for anything and anywhere.

In this tutorial, I will show you how you can setup an IP camera using Raspberry Pi and use it to stream live video and view it on your mobile phone, laptop or other devices from anywhere

Instructions

Step 1

Get your Raspberry Pi from Here. Download and setup any OS for raspberry pi in a micro SD card. Insert the micro SD card in your Pi and power it up.

Set a password for user pi

sudo passwd pi

Do an update

sudo apt update

Step 2

Purchase a camera module for raspberry pi from this link. Connect your camera to the Raspberry Pi.

Run raspi config and enable camera module

sudo raspi-config

Note: Some distros doesn’t have raspi-config pre installed. But don’t worry you can download it from the below link.

Download

Now its time to check whether your pi is detecting the camera module or not. Go to /dev/ and see whether ‘videox’ is present or not.

If it is not there, run

sudo raspi-update

Then restart the pi and run

sudo modprobe bcm2835-v4l2

Step 3

Now you can install motion by running the command

sudo apt install motion

Now its time to edit configuration file

Now open up the configuration file in /etc/motion/motion.conf using a text editor

sudo nano /etc/motion/motion.conf

Edit the following lines.

  • daemon on
  • stream_localhost off
  • stream_maxrate 50
  • framerate 50
  • width 640
  • height 480

Now open the daemon file

sudo nano /etc/default/motion
start_motion_daemon=yes

Now start the daemon by running the command

sudo service motion start

Now open up a web browser on any device on that network and enter the IP address of the pi with the port number 8081. Like http://192.168.1.58:8081

You are now live streaming from the camera.

Rate the Project

Did you find this page useful? Help us to improve by rating this page.

Rating
Live Camera Streaming Raspberry Pi - Motion Setup Overall rating: 4.5 out of 5 based on 134 reviews.

What do you think?

0 points
Upvote Downvote

Total votes: 0

Upvotes: 0

Upvotes percentage: 0.000000%

Downvotes: 0

Downvotes percentage: 0.000000%

Comments

Leave a Reply

Leave a Reply

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

Loading…

Comments

comments

Robotics and Home Automation Using WiFi Command Center

raspberry pi project

Raspberry Pi WiFi Robot controlled from Android Smart Phone