Video capture in MacOS Monterey (12.0.1) not working

Help! Video capture is not working again. This time in MacOS Monterey (12.0.1). Processing (4.0b1) seems to be finding the camera in my laptop (the camera name prints out in the console ok). Looking at system preferences, Processing has permissions to read my camera, but output fails with an internal datasource error. Here is the console output from the basic Getting Started with Capture example:

Processing video library using GStreamer 1.16.0
Available cameras:
[0] “FaceTime HD Camera (Built-in)”
BaseSrc: [avfvideosrc0] : Internal data stream error.

Same example still works in MacOS Big Sur (11.5.2). Any help would be greatly appreciated!

I am having the same issue.

I just discovered that if I specify the string name of the camera instead of referencing the camera list array that I can get it to work. So use line 30 in the GettingStartedCapture example instead of line 28:

cam = new Capture(this, 640, 480, "FaceTime HD Camera (Built-in)", 30);
1 Like

Did not work until I restarted Processing 4.
Also, frame rate (30) needed to be specified. It isn’t in some other the other examples.