About the live video feed

This page contains a live video feed from a camera that points at a bird feeder in my garden in Foyers, Inverness-shire, Scotland.

As well as common garden birds, Red squirrels also eat from the feeder. They love those peanuts!

The camera has also caught mice that have climbed the tree to get to the free food, and even a Pine marten.

The squirrels come and go during daylight hours, although they seem to favour the morning, particularly the first few hours after sunrise. They are shy creatures when they first start visiting and will run up the nearest tall tree and hide if I am moving around outside. As time passes most will tolerate my presence just so long as I am not too noisy or get too close. Some become very bold, allowing me to approach within a few metres while they are eating.

Sometimes I manage to capture video of the pine marten and squirrels on my phone when we encounter each other face-to-face in the garden. Follow the link below to my Youtube channel to see them.

Brief technical overview

For anyone interested in the technical details, the video source is a simple IP cam that streams live video from the bird feeder location in RTSP format. Ffmpeg, running on a local Linux server, receives the RTSP stream and converts it to RTMP format for web compatibility. It then forwards the RTMP stream to the virtual private server that hosts this website. The server then converts the RTMP stream to an HLS media file using Nginx. The HLS file is then served to website visitors by means of a HLS plugin embedded on a WordPress page, at which point the live video appears in the visitor’s web browser . This method works faultlessly and uses few system resources (I use the most basic of the VPS provider’s hardware tiers).

Rather than attempt to stream live video when it is too dark for the camera to produce a decent image, a bash script amends the ffmpeg command to replace the live feed with a static image when the sun sets. It does the reverse when the sun rises. This is not a perfect solution, as official ‘dawn’ and ‘dusk’ times are not always a reliable indicator of suitable light conditions in the garden. For example, it can still be very light long after the official sunset time here in the summer. Oppositely, it can still be quite dark after ‘sunrise’ in the late autumn and winter months. Because of this, the camera feed sometimes misses the first few hours of daylight or goes live when it is still too dark to see anything properly.

Another problem is dealing with colour balance and over exposure when the sun is low in the sky. On a fair winter day there can be a bright blue sky in the background of the image, yet the peanut feeder will still be in shade of nearby trees. This is hard to dial-out in the camera settings, with the result that the birds and the feeder appear dull against the light backdrop. The solution is probably to move the feeder to a better position or place the camera higher, so that it looks down to the ground and not the sky.