Skip to content
/ go-v4l2 Public

Package v4l2 exposes the V4L2 (Video4Linux version 2) API to Golang

License

Notifications You must be signed in to change notification settings

reiver/go-v4l2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-v4l2

Package v4l2 exposes the V4L2 (Video4Linux version 2) API to Golang.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-v4l2

GoDoc

Example

	device, err := v4l2.Open(v4l2.Video0)
	if nil != err {
		//@TODO
		return err
	}
	defer device.Close()

	fmt.Printf("Driver:  %q\n", device.MustDriver())
	fmt.Printf("Card:    %q\n", device.MustCard())
	fmt.Printf("BusInfo: %q\n", device.MustBusInfo())
	fmt.Printf("Version: %q\n", device.MustVersion())
	fmt.Println()
	fmt.Printf("Has Video Capture: %v\n", device.MustHasCapability(v4l2.CapabilityVideoCapture))
	fmt.Printf("Has Streaming I/O: %v\n", device.MustHasCapability(v4l2.CapabilityStreaming))

About

Package v4l2 exposes the V4L2 (Video4Linux version 2) API to Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages