O'Reilly logo

GNU/Linux Rapid Embedded Programming by Rodolfo Giometti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The video tools

Even if using the sysfs interface to manage video devices in a more efficient manner, we can use a dedicated tool set named v4l-utils in the package by the same name, which can be installed as usual into the system if it is missing.

The main program in the package is v4l2-ctl that can be used to get a lot of information regarding a video device. Just to show the power of this command, let's try to explore all capabilities of a video device assuming we know about nothing of it. First of all, we can detect connected video devices using the --list-devices option argument as shown here:

root@bbb:~# v4l2-ctl --list-devices 
USB 2.0 Camera (usb-musb-hdrc.1.auto-1): 
   /dev/video0 
   /dev/video1

Then, we have discovered that our device has been ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required