Rasberry PI Webcam Server
Posted on Wed, Apr 15, 2020 at 2:25 PM With 61 Views


NOOBs Raspberry Pi.

connect to it via SSH.

sudo apt-get update
sudo apt-get upgrade

sudo apt install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev default-libmysqlclient-dev libpq-dev libsqlite3-dev libwebp-dev

sudo wget https://github.com/Motion-Project/motion/releases/download/release-4.2.2/pi_buster_motion_4.2.2-1_armhf.deb
sudo dpkg -i pi_buster_motion_4.2.2-1_armhf.deb

sudo nano /etc/motion/motion.conf

daemon on
stream_localhost off
picture_output off
movie_output off
stream_maxrate 100
framerate 100
default is 50
width 640
height 480

sudo nano /etc/default/motion

start_motion_daemon=yes

sudo service motion start
sudo service motion stop

x.x.x.x:8081

sudo service motion restart





Extra Steps for the Raspberry Pi Camera

sudo raspi-config
sudo modprobe bcm2835-v4l2
sudo nano /etc/modules

bcm2835-v4l2

sudo reboot

x.x.x.x:8081




Webcam Server Browser
sudo mkdir /motion

sudo chgrp motion /motion
sudo chmod g+rwx /motion

sudo nano /etc/motion/motion.conf

target_dir /motion

sudo service motion restart