Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac webcam - get the device [closed]

How do I access my default video camera on my mac? I know on Linux it is /dev/video0 but my Mac does not have that. I'm trying to capture my webcam into ffmpeg

ffmpeg -i /dev/video0

But it won't work because /dev/video0 doesn't exist.

like image 996
michael Avatar asked Jul 02 '11 14:07

michael


People also ask

How do I turn off the green light on my Mac camera?

It cannot be turned off. It is a hardware setting. Otherwise, spyware would use the feature to turn on your camera without you realizing it.

Who is using my camera on Mac?

To see which apps have access to your camera and microphone, go to System Preferences > Security & Privacy and click the Privacy tab at the top. In the left panel, you'll see the usual suspects: Location Services, Contacts, Calendar, Reminders and Photos.

How do I turn off my webcam when not in use Mac?

On the System Preferences screen, click on the Security & Privacy tab. 3. On security & Privacy screen, click on Camera in the left pane. In the right-pane, uncheck the Apps having access to the Camera on your Mac.


1 Answers

You can achieve this by using VLC's qtcapture (QTKit) or avcapture (AVFoundation) module introduced with VLC 2.0.0 and

Try this via command line - Note: you still need to hit play i guess:

QTCapture (using the QTKit Framework)

VLC.app/Contents/MacOS/VLC -vvv qtcapture://

AVCapture (using the AVFoundation Framework)

VLC.app/Contents/MacOS/VLC -vvv avcapture://

You can also control this via GUI: VLC -> File -> Open Capture Device...

Also if you really want to have control over things you can look into AVFoundation Framework or the older QTKit Framework to access your camera (video/audio devices) programmatically.

If you have trouble finding devices try to debug it by finding out if the device is actually recognized by VLC. The verbose output through the terminal or the Log View in GUI mode should show you which devices are actually available:

VLC log output

like image 187
Mike F Avatar answered Oct 08 '22 10:10

Mike F