Working: USB webcam as IP camera using mjpeg_streamer

Moderator: leecollings

Post Reply
Paul
Posts: 5
Joined: Saturday 31 October 2015 16:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Working: USB webcam as IP camera using mjpeg_streamer

Post by Paul »

Working: USB webcam as IP camera using mjpeg_streamer

following on from previous post it dawned on me to try this method.

So, compile mjpeg_streamer using this guide

http://blog.cudmore.io/post/2015/03/15/ ... pberry-pi/

Info on mjpeg_streamer parameters in this guide

http://skillfulness.blogspot.co.uk/2010 ... ation.html

Then the command line that worked for my old webcam is

/usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so -f 2 -r QVGA" -o "/usr/local/lib/output_http.so -p 9090 -w /usr/local/www"

My webcam may now run faster now I tracked down why w1_bus_master was hogging cpu

Then to set up in domoticz

just add a new camera, point it to domoticz ip address (or 127.0.0.1 I guess)

if you use the command line above then its port is 9090

then ImageURL is ?action=snapshot

nice!
Paul
Posts: 5
Joined: Saturday 31 October 2015 16:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Working: USB webcam as IP camera using mjpeg_streamer

Post by Paul »

As a followup...

1. is a problem somewhere with w1-gpio/1-wire where is that?, guess I will find out soon as I want to use the raspberry gpio, but not 1-wire... i2c have temp sensors... though some nice metal encased 1-wire sensor assemblies...

2. at 2 frames a second low-res qvga (320x240) RPi load average is only 0.11, 0.10, 0.07, running domoticz (SD image) and mjpeg_streamer on same RPi B+ and viewing the stream in the domoticz web app on another computer, so no stress, good setup.

3. FYI and sure you will find it useful if you are an expert, I also install tmux to do testing, nice to detach/re-attach to a console over ssh or N consoles even... on one remote connection... persistent local user apps.

man the Linux universe is soo Cool!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest