# Processing can't find the camera - Video Libraries don't work

**URL:** <https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128>\
**Category:** Libraries\
**Created:** [November 2, 2020, 9:20am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128 "2020-11-02T09:20:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fozon](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@fozon](https://discourse.processing.org/u/fozon)\
**Post date:** [November 2, 2020, 9:20am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/1 "2020-11-02T09:20:58Z")

</div>

Hey!  
For some reason whenever I try an example from a library, it doesn’t work.  
It opens a gray window and after it freezers for a while and then reports an error.

For example when I run GettingStartedCapture I get:

> Processing video library using GStreamer 1.16.2  
> There are no cameras available for capture.  
> WARNING: no real random source present!

When I try multiMarker from NyAR4psg:

> NyAR4psg/3.0.7;NyARToolkit/5.0.9  
> Processing video library using GStreamer 1.16.2  
> IllegalStateException: Could not find any devices

I run it on Windows 10.

Thanks in advance,  
fozon

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 2, 2020, 5:12pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/2 "2020-11-02T17:12:15Z")

</div>

Is your camera build-in or on usb?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 2, 2020, 5:13pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/3 "2020-11-02T17:13:27Z")

</div>

Did you try this : [https://processing.org/reference/libraries/video/Capture\_list\_.html](https://processing.org/reference/libraries/video/Capture_list_.html)

Please also show your code

---

<div class="post-metadata">

**Author:** ![fozon](https://avatars.discourse-cdn.com/v4/letter/f/aeb1de/32.png) [@fozon](https://discourse.processing.org/u/fozon)\
**Post date:** [November 2, 2020, 6:13pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/4 "2020-11-02T18:13:19Z")

</div>

hey Chrisir

my camera is inbuilt and the code you suggested gave me also something like no cameras found.

Actually, I’ve found the strangest solution to my problem:  
i had to open processing in different architecture than my pc has and also i had to change the path to sketchbook folder…

so like my pc is 64x but i opened processing for x32 and i have 0 idea why that worked …  
im so afraid it gonna blow up somehow later

---

<div class="post-metadata">

**Author:** ![stivi](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@stivi](https://discourse.processing.org/u/stivi)\
**Post date:** [November 5, 2020, 4:19pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/5 "2020-11-05T16:19:40Z")

</div>

I am also having trouble with the webcam. I used the code found on the example by @Chrisir and also am using processing for x32 on my x64 windows 10. am I missing something?

the error i get is this:

```auto
WARNING: no real random source present!

can't load library libcrypto-1_1-x64 (libcrypto-1_1-x64|liblibcrypto-1_1-x64|liblibcrypto-1_1-x64-0) with -Djna.library.path=C:/Users/User/Documents/Processing/libraries/video/library/windows32. Last error:java.lang.UnsatisfiedLinkError: Unable to load library 'libcrypto-1_1-x64':
The specified module could not be found.

The specified module could not be found.

The specified module could not be found.

Native library (win32-x86/libcrypto-1_1-x64.dll) not found in resource path ([file:/C:/Users/User/AppData/Local/Temp/sketch_201105a7376270401895390455temp/, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/core.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-aarch64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-armv6hf.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-macosx-universal.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-windows-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-windows-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-aarch64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-armv6hf.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-macosx-universal.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-windows-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-windows-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/gst1-java-core-1.2.0.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/jna.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/video.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/pde.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/core.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/jna.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/jna-platform.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/antlr.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/ant.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/ant-launcher.jar])
can't load library libssl-1_1-x64 (libssl-1_1-x64|liblibssl-1_1-x64|liblibssl-1_1-x64-0) with -Djna.library.path=C:/Users/User/Documents/Processing/libraries/video/library/windows32. Last error:java.lang.UnsatisfiedLinkError: Unable to load library 'libssl-1_1-x64':
The specified module could not be found.

The specified module could not be found.

The specified module could not be found.

Native library (win32-x86/libssl-1_1-x64.dll) not found in resource path ([file:/C:/Users/User/AppData/Local/Temp/sketch_201105a7376270401895390455temp/, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/core.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-aarch64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-armv6hf.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-linux-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-macosx-universal.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-windows-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt-natives-windows-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/gluegen-rt.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-aarch64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-armv6hf.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-linux-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-macosx-universal.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-windows-amd64.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all-natives-windows-i586.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/jogl-all.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/gst1-java-core-1.2.0.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/jna.jar, file:/C:/Users/User/Documents/Processing/libraries/video/library/video.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/pde.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/core/library/core.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/jna.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/jna-platform.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/antlr.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/ant.jar, file:/C:/Users/User/Desktop/Processing%2032/processing-3.5.4/lib/ant-launcher.jar])

(java.exe:13288): GStreamer-WARNING **: 17:16:13.272: Failed to load plugin 'C:\Users\User\Documents\Processing\libraries\video\library\windows32\gstreamer-1.0\libgstdtls.dll': 'C:\Users\User\Documents\Processing\libraries\video\library\windows32\gstreamer-1.0\libgstdtls.dll': The specified module could not be found.
Processing video library using GStreamer 1.16.2
There are no cameras available for capture.
WARNING: no real random source present!

```

---

<div class="post-metadata">

**Author:** ![yashgupta](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yashgupta/32/15414_2.png) [@yashgupta](https://discourse.processing.org/u/yashgupta)\
**Post date:** [December 16, 2020, 9:01am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/6 "2020-12-16T09:01:26Z")

</div>

I’ve been experiencing the same problem with Processing’s video library.

I get the webcam to work by repeatedly clicking Run and encountering the ‘No Devices Found’ error until it eventually works.

---

<div class="post-metadata">

**Author:** ![AbleYudada](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ableyudada/32/14190_2.png) [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Post date:** [December 23, 2020, 9:13am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/7 "2020-12-23T09:13:23Z")

</div>

I also have the same problem. Before, I could run it by tapping it several times, but now it’s getting more and more difficult.I have never encountered this situation before.

---

<div class="post-metadata">

**Author:** ![ninjaCoder](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@ninjaCoder](https://discourse.processing.org/u/ninjaCoder)\
**Post date:** [December 26, 2020, 1:27pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/8 "2020-12-26T13:27:57Z")

</div>

I have same problem, when I use **printArray(Capture.list())**, there is a camera but when I use that as a **cameraName** I have an error: **ArrayIndexOutOfBoundsException: 0**  
How can I fix this problem?

---

<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:** [December 30, 2020, 6:52pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/9 "2020-12-30T18:52:25Z")

</div>

Possibly try using `pipeline:autovideosrc` as the camera name.

---

<div class="post-metadata">

**Author:** ![fmiramar0101101](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@fmiramar0101101](https://discourse.processing.org/u/fmiramar0101101)\
**Post date:** [February 3, 2021, 11:57pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/10 "2021-02-03T23:57:01Z")

</div>

Thanks a lot @neilcsmith !!! I’ve suffered during long hour on Windows 10 trying to solve this…

---

<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:** [February 4, 2021, 1:12pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/11 "2021-02-04T13:12:49Z")

</div>

Glad it worked. For a variety of reasons, that should really be the default behaviour. The Video library needs someone to take a serious look at it. There’s a bunch of stuff that has not been correctly updated for GStreamer 1.x. I can provide guidance on that if someone takes it on.

---

<div class="post-metadata">

**Author:** ![AliNakhaee0](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AliNakhaee0](https://discourse.processing.org/u/AliNakhaee0)\
**Post date:** [February 4, 2021, 5:18pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/12 "2021-02-04T17:18:57Z")

</div>

Excuse me!  
i have the same problem.  
how can i do this ( using `pipeline:autovideosrc` as the camera name) for solving my problem.  
thancks alot

---

<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:** [February 4, 2021, 5:29pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/13 "2021-02-04T17:29:49Z")

</div>

I think you want to try removing all the capture list stuff and just use -

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

```

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [February 13, 2021, 12:26am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/14 "2021-02-13T00:26:49Z")

</div>

Thank you very much for that workaround. I also had the problem that gstreamer was already installed (for development) and processing did not use the pre-bundled one, but the one in `C:\gstreamer\1.0\x86_64\bin`. Fixed this by renaming the folder (changing env variables did not help).

Yeah it would be great to fix the video plugin for Processing. I already thought about creating a new lib based on [FrameGrabber](http://bytedeco.org/javacv/apidocs/org/bytedeco/javacv/FrameGrabber.html) to not be dependent on processing-video…

---

<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:** [February 13, 2021, 8:33am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/15 "2021-02-13T08:33:04Z")

</div>

Well, it would be better if Processing Video didn’t bundle GStreamer at all, and just pointed at the upstream installers. A FrameGrabber library might be interesting, but a properly complete GStreamer-based library could offer so much more! So, why not fork / fix Processing Video instead? Far easier, and I’m happy to advise on that - does the FrameGrabber developer know Processing?! 😉

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [February 13, 2021, 9:12am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/16 "2021-02-13T09:12:41Z")

</div>

From my experience with gstreamer (at least on the C++ dev side), it was quite a hustle to setup the prerequisites on all major platforms. I guess it makes sense to ship gstreamer bundled, because people using Processing (not library devs) are usually not happy to install any more dependencies.

To be honest, most of the time I am not using most of the gstreamer features, but just a simple pipeline for capturing a webcam. Why do we need the full gstreamer collection for that? Thats why in my opinion it makes sense to have a very simple webcam library, which can be used in these “simple” project.

If Samuel knows Processing? 🤷🏻‍♂️ But I know the FrameGrabber structure from implementing the RealSense2 binding for it. And I already wrote something similar for a project where I used Processing & JavaCV together.

The question is more, if it makes sense to replace gstreamer with opencv (which is quite bloated as well). It may make more sense to create a binding to [webcam-capture](https://github.com/sarxos/webcam-capture).

---

<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:** [February 13, 2021, 9:58am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/17 "2021-02-13T09:58:50Z")

</div>

GStreamer _was_ a hassle to set up multi-platform, but a lot of work went in upstream on this, and the installers are fairly hassle free these days. Up to you what you use - I disagree the other options are particularly better. As the lead on GStreamer’s Java bindings in use in Processing Video I’m happy to help anyone out who wants to take on the work.

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [February 14, 2021, 12:51pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/18 "2021-02-14T12:51:22Z")

</div>

Why would you disagree on the other options? I quickly built a proof of concept `Capture` device with webcam-capture as the underlaying technology. It works pretty well on my Windows and Ubuntu (MacOS is currently a bit more difficult as you know too), and is only **1.8 MB** in size.

[https://github.com/cansik/webcam-capture-processing](https://github.com/cansik/webcam-capture-processing)

That’s enough for most of my use-cases and I think for most of the Processing users, a simple library for video capture would be sufficient.

---

<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:** [February 14, 2021, 1:13pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/19 "2021-02-14T13:13:08Z")

</div>

> [@cansik](#):
>
> Why would you disagree on the other options? … That’s enough for most of my use-cases and I think for most of the Processing users.

Going on the number of questions I’ve answered on various aspects of the video library. Yes, webcam-capture library covers a proportion of cameras, although potentially less efficiently, and on some systems by the look of it (no Pi support?). However, to be fair, I hadn’t looked at that library for a long time, and hadn’t realised there was now built-in native defaults.

Still, the more options the better - there are lots of ways people want to use video with Processing, including playback, capture, recording and streaming. All that could be exposed via GStreamer in one library if someone wanted to take it on - the bindings support is all there for it. Processing Video is most of the way there, just needs a little love from someone.

---

<div class="post-metadata">

**Author:** ![DeveloperWan](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@DeveloperWan](https://discourse.processing.org/u/DeveloperWan)\
**Post date:** [February 14, 2021, 11:07pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/20 "2021-02-14T23:07:39Z")

</div>

At first I was having problems with the plugin. It kept saying the plugin didn’t exists so I delete and redownload the application and now its say this…

WARNING: no real random source present!  
Processing video library using GStreamer 1.16.2  
IllegalStateException: Could not find any devices  
IllegalStateException: Could not find any devices  
IllegalStateException: Could not find any devices  
IllegalStateException: Could not find any devices

do anybody have any ideas how to fix this?

[Next page](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128.md?page=2)
