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

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

Is your camera build-in or on usb?

Did you try this : https://processing.org/reference/libraries/video/Capture_list_.html

Please also show your code

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

1 Like

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:

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!

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.

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.

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?

Possibly try using pipeline:autovideosrc as the camera name.