Turn any webcam into an IP camera
Turn any webcam into an IP camera.
Example (in web browser):
http://localhost:56000/htmlor
http://localhost:56000/mjpegYou can also use apps like ffplay or vlc:
ffplay -i http://localhost:56000/mjpegvfw build tag).vfw - on Windows, use Video for Windows to access camera instead of the default Media Foundationlibjpeg - build with libjpeg (go-libjpeg) instead of native image/jpegDownload the latest binaries from the releases.
go install github.com/gen2brain/cam2ip/cmd/cam2ip@latestThis command will install cam2ip in GOBIN, you can point GOBIN to e.g. /usr/local/bin or ~/.local/bin.
…/html: HTML handler, frames are pushed to canvas over websocket/jpeg: Static JPEG handler/mjpeg: Motion JPEG, supported natively in major web browserscmd/camview is a small native window that shows the local camera live, using iv for display.
go install github.com/gen2brain/cam2ip/cmd/camview@latestNo open issues yet, or sync has not completed.