golang-camera-web-server icon indicating copy to clipboard operation
golang-camera-web-server copied to clipboard

Camera HTTP Streaming Server in Golang

Camera/Video HTTP Server in Golang

Install OpenCV for Go

$ go get -u -d gocv.io/x/gocv
$ cd $GOPATH/src/gocv.io/x/gocv
$ make install

Run it

# serve the default webcam /dev/video0 
$ go run main.go 

# serve an ip camera stream
$ go run main.go rstp://camera_ip:554/

# serve another a usb camera
$ go run main.go /dev/video1