Sunday 28 May 2017

Getting your Bird Box camera online: Analogue vs Digital cameras

Live birdbox camera web streaming is a great way to involve others in the development of your nesting birds.  I've attempted to collect together the various options to do this, together with how I streamed my 2017 Robins

Yes dear, I know digital cameras can be expensive, but you can DIY for a lot less...

This post aims to touch on the following...
1) Review of analogue versus digital cameras for nest boxes: Commercial and home-brew
2) How to convert your analogue camera to digital
3) Putting your birdbox on online

You can potentially spend a lot on this, or alternatively go with my approach using a low cost, home brew setup using a Raspberry Pi + webcam combo, or use the Raspberry pi foundation camera module.

Getting started
The first thing you'll need to get your bird box camera online is a digital video source. 

Many commercial birdbox cameras use analogue cameras and are designed to connect via a wired or wireless connection (2.4Ghz radio) to a SCART/composite video in your TV or via BNC type-connector to a video recording system (capture card to PC), or digital video recorders (DVRs) sold for CCTV.  As-is, analogue cameras won't let you do live streaming, you'll need to convert your analogue video to digital, or start off with a digital camera in the first place.

Analogue camera kits are available from a variety of sources, e.g.  HandyKam, UK wildlifecameras and others (I've borrowed their images, so its only polite to link out to them...).  These are mainly described as connecting to a TV (or DVR).

Examples of analogue cameras, and what to expect in a kit.

How to convert analogue video to digital video...
To get your analogue camera online, there are a couple of options to convert it to a digital form.

Analogue capture to PC: There are lots of bits of kit that can convert an analogue video signal to digital.  Some sit outside your PC.  Alternatively use a dedicated video capture card in your PC. I picked up a couple of Picolo Pro 2 PC capture cards on ebay a few years ago and have used one to for a few seasons to capture an analogue camera using iCatcher PC software in a tawny owl-come-squirrel nest box (replaced a few yrs ago with a home-brew digital setup).

Standalone IP converter.  Directly connect an analogue video source to the internet.
There are some scenarios where these may be more appropriate e.g. Inaccessible sites e.g. Norwich Cathederal Peregrines (note this does not work in chrome) or in schools where there may not be much in the way of IT support, or the person setting it up does not want to  bother with a PC component. These are expensive, and for this reason I've not tried one (would like to...).  This Axis IP converter is one example available from HandyKam, and once purchased, the per camera cost drops since several analogue cameras can be converted the same time (depending on your kit that is).

Alternatively you can just generate a digital source in the first place...

IP (IP='Internet Protocol') cameras.  The cheapest ones are generally more expensive than analogue cameras, however as the camera itself generates the digital feed, you don't need as much intermediary 'stuff' to get your video stream online, offsetting the higher camera cost.  Video quality is often better and does not degrade like you may get with a long CCTV-analogue cable, particularly if used with analogue radio transmitters, especially if like me the local 2.4Gz spectrum is already pretty much full (neighbour's chicken cams!).

IP camera options
Commercial IP cameras: There are lots of examples at the 'cheaper' end of the professional spectrum (however still in the several £100's range). Kate MacRae 'WildlifeKate' uses a Vivotek IP8152 in her Tawny owlbox

This example is approx £240 - It wont fit into a typical small bird next box however!



Hobbyist IP camera kits: 'Birdbox IP' camera kits: e.g. this kit from HandyKam: 'DigiNestCam HD camera kit - Bird box, 2MP IP camera with IR.' This would be a good place to start if you're after an a commercial kit (£179.95).   The advantage of this kit is that the PoE (power over ethernet) and cabling is sorted out for you.  This alternative is similar with additional work needed by the user for powering it.  For the DIY-er, the new Raspberry Pi camera board is 8MP, so likely improving on the resolution of these.

Domestic IP cameras: ?May be worth looking at but these offer a range of options not really required (e.g. facial recognition, subscription monitoring), some of which are still expensive so are probably best avoided.

MAKE YOUR OWN <- this is what I've done using a Raspberry pi (credit card-sized PC) + camera comes in at approx £50 -ish to make a live-streaming capable device.  This is the cheapest & most flexible option, but relies on a bit of technical know-how and setup time (but not a lot...).  Note there is additional cost to sort out PoE and any cabling.

Analogue vs IP cameras for wildlife nest monitoring


Analogue camera
IP camera
Cost
Cheaper (under £100),
More expensive (several £100)
Alternatively go the home-brew Raspberry pi route = much cheaper (under £50)
Ease of use
Many commercial kits available Handycam, UkWildlife
Limited kits for domestic nature watching use, only a few kits available, this one does the PoE thinking for you...
Small=beautiful
May be easier to fit into a nest box
Commercial cameras are usually bulky, may be more appropriate for larger nesting sites, BUT Raspberry pi solution = small.
Wired Connection options
Via CCTV cable (often comes with kit).  I've had mine work over 50+ meters extending with (variable) success to 200m over wireless 2.4Ghz.
Usually power over ethernet (PoE), quite cheap to do .. will need to learn how to wire a cat5 ethernet cable if going the home-brew Raspberry pi route (not difficult).
Wireless options
Greater signal range via 2.4Ghz transmitter/receiver pairs.  Limited by number of channels available.  Prone to interference (e.g. microwave)
Transmit over wifi.  Transmission framerate may drop over increasing distance, no drop in video quality.
Signal strength (wired)
May degrade considerably over distance.  
Does not degrade over distance (within domestic context...)
Viewing video
Direct connect to TV SCART/ composite video or via analogue video capture to PC
Via router to PC connected to same network, or direct to internet.
Recording video
Without digital conversion, using commercial CCTV digital video recorders (DVRs).  If using digital conversion, all recording options under 'IP camera' are also valid
On PC using dedicated CCTV software e.g. iCatcher console, (£139 for 2 camera licence), or Zoneminder (FREE, runs on linux PC/Raspberry pi, more fiddly to setup).
Online streaming
Needs convertor if you want to get this online (+££)
Can stream via PC or direct from camera (if supported)

So, the point of this is was to describe/document how I got my Robins online.

I used a Raspberry pi + webcam combo setup as described here to generate a video stream (motion jpeg in this case).  I then used a program called ffmpeg on a second Raspberry pi to convert this to something that YouTube could use and stream to its live events facility.  You could do all this on the same Raspberry Pi but I had a second, more recent version handy (more oomph).

I'll cover this in more detail in a subsequent post...

3 comments:

  1. This is a great review, thanks.

    I'm still looking for a USB video capture device that works properly with the Pi.

    Also, have you seen this: http://blog.alexellis.io/live-stream-with-docker/

    ReplyDelete
  2. Microsoft lifecam cinema/studio works nicely, can pick them up for £20-30 on ebay, alternatively there are cheaper webcams that work too. That docker link looks interesting - we use Docker extensively at work, but I've not had a go myself. Part of me would be a bit wary of someone else's image however... never quite sure whats its doing under the hood.. the flip side is you could say the same of an anonymous github repo... I note that the same blog has a nice looking dashboard Docker that I might have a look at...

    ReplyDelete
  3. I'm not adverse to short-cutting the compilation steps, I got ffmpeg as a pre-compiled binary from here: https://www.johnvansickle.com/ffmpeg/

    ReplyDelete