Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.03 KB

File metadata and controls

27 lines (19 loc) · 1.03 KB

Proxy for motion jpeg images

This proxy exists in order that I can share the my raspberry pi camera, streaming using mjpeg over http, to more clients from a machine on the internet. It works with motion, and maybe with other sources, who knows?

It was written in order that the PigeonCam does not use too much of my precious bandwidth.

Features

  • If there are no clients, only requests one JPEG every 30 seconds
  • Caches the last JPEG for better user experience
  • Maintains connections with its clients even if the back-end goes away briefly
  • If you use the ?width=XX parameter, it will resize for you. For multiple clients at the same size, the calculation is only done once.

Requirements

Needs zeromq. On Debian-y systems install with

apt install libzmq3-dev pkg-config

Running it

cargo run -- -u http://webcam.local:8080

Known Problems

Actually, currently none.