# Web cam capture Win 11 vs Mac OS

**URL:** https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640
**Category:** Libraries
**Created:** [November 20, 2021, 8:57pm UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640 "2021-11-20T20:57:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mario60](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mario60](https://discourse.processing.org/u/mario60)
#### Post date: [November 20, 2021, 8:57pm UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/1 "2021-11-20T20:57:57Z")

</div>

Hi

on a Win11 machine, to capture a web cam, it seems I need the following line of code:

```
  cam = new Capture(this, "pipeline:autovideosrc"); 
  cam.start(); 

```

as the following one returns an error that there is not a device

```
 String[] cameras = Capture.list();
 if (cameras.length != 0) { 
 cam = cameras[0]; 
 cam.start(); 
 }

```

(both codes works fine on a Mac).  
Is it a known issue? How do i fix it on the Win machine?

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 21, 2021, 12:51am UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/2 "2021-11-21T00:51:35Z")

</div>

Hello,

Related:

- [“Could not find any devices”&nbsp;error on Windows · Issue #168 · processing/processing-video · GitHub](https://github.com/processing/processing-video/issues/168)

- [Processing can't find the camera - Video Libraries don't work](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128)

`:)`

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [November 22, 2021, 3:37pm UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/3 "2021-11-22T15:37:23Z")

</div>

I would just use `pipeline:autovideosrc` everywhere! Is there a reason you think you need to “fix” it?

---

<div class="post-metadata">

### Author: ![mario60](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mario60](https://discourse.processing.org/u/mario60)
#### Post date: [November 22, 2021, 10:26pm UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/4 "2021-11-22T22:26:08Z")

</div>

Hi,

with the `pipeline:autovideosrc` code I am not sure how to list several webcam devices (i need at least two). Is there a way?  
thanks cheers  
mario

---

<div class="post-metadata">

### Author: ![mario60](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mario60](https://discourse.processing.org/u/mario60)
#### Post date: [November 22, 2021, 10:35pm UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/5 "2021-11-22T22:35:51Z")

</div>

Hi

I see the solution by [“Could not find any devices”&nbsp;error on Windows · Issue #168 · processing/processing-video · GitHub](https://github.com/processing/processing-video/issues/168#issuecomment-812100048) (lucasfredericks commented on Apr 1). Unfortunately I do not know what `pipeline:autovideosrc`, `pipeline:ksvideosrc` and so on, really refer to. How/where do I learn about those options? Thanks  
m.

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [November 23, 2021, 9:49am UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/6 "2021-11-23T09:49:32Z")

</div>

> [@mario60](#):
>
> Unfortunately I do not know what `pipeline:autovideosrc` , `pipeline:ksvideosrc` and so on, really refer to.

They are direct references to the underlying GStreamer pipeline elements and configuration - eg. [ksvideosrc](https://gstreamer.freedesktop.org/documentation/winks/index.html?gi-language=c#ksvideosrc-page)

Unfortunately, `autovideosrc` does not support device indexes. You need to use `device-index=0` and `device-index=1` etc. to pick up multiple cameras. And if you want the sketch to work across multiple OS you need to specifiy different pipelines on each. PraxisLIVE actually handles this for you, but if you don’t want to use that, our code for this may at least be useful to look at [https://github.com/praxis-live/praxiscore/blob/master/praxiscore-video-gstreamer/src/main/java/org/praxislive/video/gstreamer/configuration/GStreamerSettings.java#L38](https://github.com/praxis-live/praxiscore/blob/master/praxiscore-video-gstreamer/src/main/java/org/praxislive/video/gstreamer/configuration/GStreamerSettings.java#L38)

---

<div class="post-metadata">

### Author: ![doni](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@doni](https://discourse.processing.org/u/doni)
#### Post date: [September 28, 2022, 4:15am UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/7 "2022-09-28T04:15:31Z")

</div>

hi. does the library ( [praxiscore/GStreamerSettings.java at master · praxis-live/praxiscore · GitHub](https://github.com/praxis-live/praxiscore/blob/master/praxiscore-video-gstreamer/src/main/java/org/praxislive/video/gstreamer/configuration/GStreamerSettings.java#L38)) could handle multiple webcam input in processsing. thank you

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [September 29, 2022, 11:09am UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640/8 "2022-09-29T11:09:12Z")

</div>

@doni that is not a library, it’s a part of the PraxisCORE framework. Yes, via [PraxisLIVE](https://www.praxislive.org) you can use multiple camera sources with Processing nodes, but it’s not a library you can use with Processing.

The Video library should support multiple cameras anyway.
