Is there a way using C++ to get the number of video devices and their names inside linux?

125 Views Asked by At

Currently I use ls -ltrh /dev/video* to list all the video devices in the terminal, or cat /sys/class/video4linux/video0/name to display the name of that video device in terminal. I wonder is there a way to call some api in the C++ to get these information as well? Thanks.

0

There are 0 best solutions below