Closed jabrena closed 9 years ago
/dev/video0: Found format: MJPG - MJPEG
/dev/video0: Found format: YUYV - YUV 4:2:2 (YUYV)
/dev/video0: requesting image format 640x480
/dev/video0: set image format to 176x144 using YUYV
Preparing 4 buffers for /dev/video0
[]uint8
/usr/bin/streamer -c /dev/video0 -o frame.jpeg -s 1600x1200
cmd := exec.Command("/usr/bin/streamer", "-c", "/dev/video0", "-o", "frame.jpeg", "-s", "1600x1200")
err := cmd.Run()
if err != nil {
log.Panic(err)
}
Take a look this note: https://github.com/blackjack/webcam/issues/2#issuecomment-141982187
Example: https://github.com/SimonWaldherr/golang-examples/blob/master/expert/image.go