LIVE CAMERA STREAMING RASPBERRY PI – MOTION SETUP

 

7194377796601890209

In this instructional guide, I shall elucidate the methodology for establishing an IP camera solution utilizing the Raspberry Pi, enabling real-time video streaming and remote accessibility through mobile devices, laptops, or other compatible devices from any geographical location.

Instructions

Step 1

Set a password for user pi
sudo passwd pi
sudo apt update

Step 2

Acquire a compatible camera module for your Raspberry Pi. Then, establish a connection between the camera and the Raspberry Pi, enabling the device to capture and process visual data.

Run raspi config and enable camera module
sudo raspi-config

Note: Some distros doesn’t have raspi-config pre installed.

Verify the camera module’s connectivity by inspecting the directory /dev/ for the presence of ‘videoX’, indicating successful detection by the Raspberry Pi.

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 using the command.
sudo apt install motion
Now its time to edit configuration file


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
Simply access a web browser on any network-connected device and key in the Raspberry Pi’s IP address followed by port 8081. For instance, use the URL structure: http://IP address:8081.

You are now live streaming from the camera.

Source: LIVE CAMERA STREAMING RASPBERRY PI – MOTION SETUP


About The Author

Muhammad Bilal

I am highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

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