Camera on Raspberry pi with Motion
Blog

Camera on Raspberry pi with Motion

Lets star Playing with Camera on Raspberry pi.

We can use WebBased camera or Camera Module on Raspberry Pi. Even old Web camera of your desktop will also work perfectly.

1. Install motion tool on Pi

apt-get update
apt-get install motion

After installation check in /dev/ folder : ls will show video0

2. After installation edit motion.conf file
nano cd /etc/motion.conf
=========== Below given are parameters required in motion.conf File ===========

#daemon(motion will work at backend)

keep daemon mode on
#Basic setup mode off, Can use Either Setup or Daemon mode, Currently using Daemon Mode
keep basic setup mode off

#image characterstics
width 640
height 480
framerate 15
auto_brightness on

#Despeckle_filter EedD1
#Disable Despeckle motion image, Have seen problems in some cases

target_dir /home/pi/motion
#location to save files, Make sure directory is present or create it with correct permission.

#GLOBAL NETWORK OPTION
strem_port 6666
stream_quality 75
stream_localhost 0ff

#for both local and remote users

webcontrol_port 4444
#To remotely manage

webcontrol_html_output on
#Allow HTML

=======================
Make sure Directory is created with correct permission
mkdir motion
chmod –R 777 motion/

=========== Below given are parameters required in /etc/default/motion File ===========

nano /etc/default/motion

service motion start
service motion status
service motion restart

=======================

Firefox may give problem, in address bar about:config , press enter and and add string
network.security.ports.banned.override

Leave a Reply

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