Security Cam: Yawcam to Zoneminder
This is not a polished entry, because the project is ongoing.
We needed a security cam. I'm a technophile. Google is awesome.
Put them in a pot, and the immediate results are Zoneminder and Yawcam.
With Yawcam, it's straightforward to get a webcam streaming over HTTP -- pretty much turns a webcam into an IP cam.
With Zoneminder, you can take all of your IP cam streams across your LAN, consolidate them into a single management site, and feed just one website over the internet to wherever you are.
No amount of Googling explained how to stream from Yawcam to Zoneminder, so I went about discovering little pieces here and there.
For all you other security-cam needing, technophile google-lovers, here's what I did.
All done!
Did this work for you? Let me know!
We needed a security cam. I'm a technophile. Google is awesome.
Put them in a pot, and the immediate results are Zoneminder and Yawcam.
With Yawcam, it's straightforward to get a webcam streaming over HTTP -- pretty much turns a webcam into an IP cam.
With Zoneminder, you can take all of your IP cam streams across your LAN, consolidate them into a single management site, and feed just one website over the internet to wherever you are.
No amount of Googling explained how to stream from Yawcam to Zoneminder, so I went about discovering little pieces here and there.
For all you other security-cam needing, technophile google-lovers, here's what I did.
- Yawcam
This was done with version 0.4.1.
Download and install yawcam on a Windows computer with a webcam. I don't remember doing anything special during the installation. - MJPEG streamVery important step.
There might be other ways to do this, but I haven't figured it out yet. With Yawcam running: Settings --> Edit Settings --> Choose the "Stream" Category --> Set "Stream Type" to "MJPEG" - Verify with VLCThis was done with version 2.0.8 Twoflower.
If you don't have VLC, go install it first.
Media --> Open Network stream.
In "Please enter a network URL", type:
http://x.x.x.x:yyyy/video.mjpg?q=30&fps=33&r=1234567890123&a=.mjpg
(where x.x.x.x is your local IP address, and yyyy is the port that yawcam is streaming on; "r=...." is supposed to be a random number).
Note: The final "&a=.mjpg" is not required for yawcam or VLC, but is critical because it helps Zoneminder recognize the stream as an MJPG.
If you see yourself in VLC, press on!! - Linux Live
I used Linux Live to create a Debian Wheezy ISO on an 8GB USB so that I could just boot an existing computer into Linux, without mucking with the existing Windows implementation.
Saved me the trouble of quashing a perfectly good machine in case the project failed. Also allows me to take the USB stick and move my Zoneminder configuration to another computer, if required. - Install Zoneminder
In your linux, run aptitude updateThen run aptitude zoneminder install
Then run aptitude ffmpeg install - Add some fixups
Once those are done, follow the instructions in this Zoneminder wiki entry (with the exceptions of compiling zoneminder and ffmpeg at the end). Although it's in Spanish, follow along the commands being executed - Let Apache see the videos
Then, make sure you run add-user www-mpeg video, per step 5 in this Unixmen blog entry - Add a Zoneminder monitor (type = Remote) for the stream, and set the source to be the same source as verified in VLC.
All done!
Did this work for you? Let me know!
Labels: Nanny Cam, Security Cam, VLC, Webcam, Yawcam, Zoneminder