GO_CAM is a Go application that allows controlling a webcam via API calls. Its primary purpose is to enable starting and stopping video recordings without audio through simple HTTP requests.
-
SO: Windows
-
Go HTTP Server Library: Echo
-
Go Vision Library: GoCV
-
Record without audio
-
Endpoints:
- startRecord →
GET start_record
- parameter
device
: Camera to use. Default0
- parameter
path
: Path where to save video. Default""
- parameter
prefix
: Prefix for video filename. Default""
- parameter
format
: Video format. Defaultmp4
- registration name:
<prefix>_<timestamp>.<format>
- respond with generated name: e.g.
prefix_20230208145236.mp4
- parameter
- stopRecord →
GET stop_record
- parameter
device
: Camera to stop. Default0
- parameter
- startRecord →
- Default Port:
1323
go run server.go
For Hot Reload (Air):
air
1️⃣ Camtron
- Electron port:
8080
-
go-webcam (base on V4L2)