techtek / steempi

Steemit LED notifications and Web interface for Raspberry Pi
9 stars 9 forks source link

USB Webcam Module #42

Open techtek opened 7 years ago

techtek commented 7 years ago

Test results:

Loads in SteemPi Module

to Pc 4+/- fps On Pi2 to tv 4 +/- fps Pi2 to phone 3 fps

(all on wifi)

Not smooth but usable, config file can be tweaked for better preformance.

How to:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install motion

Type in the command 'lsusb' and enter. You should see the name of your camera. If it is NOT there, then there is some problem in your camera or the camera is not supported in 'motion'.

sudo nano /etc/motion/motion.conf

Make sure 'daemon' is ON. Set 'framerate' anywhere in between 1000 to 1500. Keep 'Stream_port' to 8081. 'Stream_quality' should be 100. Change 'Stream_localhost' to OFF. Change 'webcontrol_localhost' to OFF. Set 'quality' to 100. Set 'width' & 'height' to 800 & 600. Set 'post_capture' to 5.

(also play with the frame rate)

save and exit

sudo nano /etc/default/motion

Set ' start_motion_daemon ' to yes. Save and exit.

Restart the motion software. To do it type in the command 'sudo service motion restart' and press enter.

'sudo motion' and press enter. The server is ready.

Open browser and typ in IP of the Pi and add port number :8081

Tutorial source: http://www.instructables.com/id/How-to-Make-Raspberry-Pi-Webcam-Server-and-Stream-/

techtek commented 7 years ago

https://videos.cctvcamerapros.com/raspberry-pi/how-to-setup-video-streaming-server.html