ablakely / streamer

node.js daemon that captures a still from a URL and streams it to the client as a .mjpeg over HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streamer

This is a node.js daemon that captures a still from a URL and streams it to the client as a .mjpeg over HTTP. This is useful for IP cameras/NVRs that do not offer a MJPEG or other stream but do allow you to see a still image from camera.

Config

streamer reads a JSON file as it's config from ./streams.json

{
    "/stream1.mjpeg": "https://127..../still-image.jpg"
}

Optional Settings

  • _pol_interval_ (Number) can be used to set how often the server fetches a frame from the still image URL in miliseconds.

  • _listen_port_ (Number) can be used to change the port the HTTP server listens on, the default is 8000.


Written by Aaron Blakely <aaron@ephasic.org>

About

node.js daemon that captures a still from a URL and streams it to the client as a .mjpeg over HTTP

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%