Milan Nikolic cbc7d21b23 Shorten options
2018-01-27 03:50:50 +01:00
2018-01-27 03:22:33 +01:00
2018-01-27 03:22:33 +01:00
2018-01-27 03:22:33 +01:00
2018-01-27 03:28:09 +01:00
2018-01-27 03:22:33 +01:00
2018-01-27 03:28:09 +01:00
2017-10-03 20:50:11 +02:00
2018-01-27 03:50:50 +01:00
2017-10-03 20:50:11 +02:00
2018-01-27 03:28:09 +01:00
2018-01-27 03:50:50 +01:00

cam2ip

Turn any webcam into an IP camera.

Example (in web browser):

http://localhost:56000/mjpeg

or

http://localhost:56000/html

Requirements

Download

Binaries are compiled with static OpenCV library:

Installation

go get -v github.com/gen2brain/cam2ip

This will install app in $GOPATH/bin/cam2ip.

Usage

Usage of ./cam2ip:
  -bind-addr string
        Bind address (default ":56000")
  -delay int
        Delay between frames, in milliseconds (default 10)
  -height float
        Frame height (default 480)
  -width float
        Frame width (default 640)
  -htpasswd-file string
        Path to htpasswd file, if empty auth is disabled
  -index int
        Camera index
  -nowebgl
        Disable WebGL drawing of images (html handler)
  -video-file string
    	Use video file instead of camera

Handlers

  • /html: HTML handler, frames are pushed to canvas over websocket
  • /jpeg: Static JPEG handler
  • /mjpeg: Motion JPEG, supported natively in major web browsers
Description
Turn any webcam into an IP camera
Readme 339 KiB
Languages
Go 91.6%
Shell 7.8%
Dockerfile 0.6%