# Webcam doesn't work on OSX Sierra 10.12.6

**URL:** <https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903>\
**Category:** Libraries\
**Created:** [October 23, 2019, 3:53pm UTC](https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903 "2019-10-23T15:53:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yrd214](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yrd214/32/6853_2.png) [@yrd214](https://discourse.processing.org/u/yrd214)\
**Post date:** [October 23, 2019, 3:53pm UTC](https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903/1 "2019-10-23T15:53:53Z")

</div>

I’m trying to capture my webcam in Processing, but it doesn’t work.  
I’m using Processing 3.5.3 OSX Sierra 10.12.6

I used the code from the reference:

```auto
import processing.video.*;

Capture cam;

void setup() {
  size(640, 480);

  String[] cameras = Capture.list();
  
  if (cameras.length == 0) {
    println("There are no cameras available for capture.");
    exit();
  } else {
    println("Available cameras:");
    for (int i = 0; i < cameras.length; i++) {
      println(cameras[i]);
    }
    
    // The camera can be initialized directly using an 
    // element from the array returned by list():
    cam = new Capture(this, cameras[0]);
    cam.start();     
  }      
}

void draw() {
  if (cam.available() == true) {
    cam.read();
  }
  image(cam, 0, 0);
  // The following does the same, and is faster when just drawing the image
  // without any additional resizing, transformations, or tint.
  //set(0, 0, cam);
}

```

This is my Console output:

```auto
Changed waitThread to realtime priority!
Asked for format description...
```

I tried to outpute my list of devices with the following code, but the console outputs the same:

```auto
import processing.video.*;

Capture cam;
void setup(){
 size(600,600);
 background(255);
 println(Capture.list()); 
}

void draw(){
   println(Capture.list()); 
}
```

I’ve tried the code in other computers and it does work, I tried looking into System Preferences / Security & Privacy to see if there were options for camera permissions, but it doesn’t show anything.

Any help will be welcome.

Cheers!

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 23, 2019, 8:43pm UTC](https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903/2 "2019-10-23T20:43:51Z")

</div>

> <https://github.com/processing/processing-video/issues/134>
>
> Running the example file that comes with the Processing video library throws the following error:
> libc++abi.dylib: terminating with uncaught exception of type...
