Command to list available webcam/video devices?

Is there a way to list all webcams that are available to my Mac (e.g. FaceTime camera) using Terminal?

I know there's

diskutil list

to list all disks attached to my Mac, but is there a command that does the same thing for input cameras?

Things I've already tried:

system_profiler SPCameraDataType

This doesn't list the identifier with associated number, which is the information that I need from the list.

ls -ltrh /dev/video*

I tried this too, but I'm pretty sure this only works for Linux/Ubuntu, which I know nothing about.

Thanks in advance.


Solution 1:

Try ioreg command:

ioreg | grep -i cam

Solution 2:

I have installed webcamoid and Reincubate Camo, and both of their plugins are installed into

/Library/CoreMediaIO/Plug-Ins/DAL/

However Reincubate's documentation indicates that it is not compatible with FaceTime, so not all virtual cameras will work with it.