# Selecting from multiple cameras

**URL:** <https://discourse.processing.org/t/selecting-from-multiple-cameras/19679>\
**Category:** Coding Questions\
**Created:** [April 11, 2020, 11:55pm UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679 "2020-04-11T23:55:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![carterjohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/carterjohnson/32/8790_2.png) [@carterjohnson](https://discourse.processing.org/u/carterjohnson)\
**Post date:** [April 11, 2020, 11:55pm UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/1 "2020-04-11T23:55:02Z")

</div>

Thanks in advance to anyone who might be able to help me out. I want to be able to make a selection as to which camera is utilized by its name or aspect ratio or some other property, and to do so with the code.

I know this can be done with Processing, but haven’t figured out how to do so with P5.js. Anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 18, 2020, 4:28am UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/2 "2020-04-18T04:28:03Z")

</div>

Were you able to resolve this issue?

---

<div class="post-metadata">

**Author:** ![carterjohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/carterjohnson/32/8790_2.png) [@carterjohnson](https://discourse.processing.org/u/carterjohnson)\
**Post date:** [April 18, 2020, 5:26am UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/3 "2020-04-18T05:26:12Z")

</div>

No, I was not. Can you help?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 18, 2020, 7:01am UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/4 "2020-04-18T07:01:07Z")

</div>

Try looking over the solutions discussed here for getting camera ids and then creating a capture pointing to each id:

> <https://github.com/processing/p5.js/issues/1043>
>
> The need to use a different camera with createVideo(CAPTURE) has come up several times this semester. @lmccart posted an example for...

---

<div class="post-metadata">

**Author:** ![carterjohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/carterjohnson/32/8790_2.png) [@carterjohnson](https://discourse.processing.org/u/carterjohnson)\
**Post date:** [August 12, 2020, 4:47pm UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/5 "2020-08-12T16:47:04Z")

</div>

No, never have. Any suggestions?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 12, 2020, 8:54pm UTC](https://discourse.processing.org/t/selecting-from-multiple-cameras/19679/6 "2020-08-12T20:54:07Z")

</div>

> [@carterjohnson](#):
>
> No, never have. Any suggestions?

I gave you a suggestion. Did you try it? What happened?

> [@jeremydouglass](#):
>
> Try looking over the solutions discussed here for getting camera ids and then creating a capture pointing to each id
