Problems with the camera

Hello! how are you? I have a problem with the camera, I’m using macOS 10.15.6. I’m trying to run 2 codes, and I have the similar problem. For example:

import processing.video.*;

Capture video;

void setup () {
 size (600,400);
 video = new Capture(this,640,480,30);
 video.start();
}

void draw () {
 video.read();
 background(0);
 tint(255,mouseY,mouseY);
 image (video,0,0,mouseX,mouseY);
  
}

The error is this:

2020-08-28 15:05:42.934 java[2567:212032] -[__NSArray0 addObjectsFromArray:]: unrecognized selector sent to instance 0x7fff84eab460
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at processing.mode.java.runner.MessageSiphon.run(MessageSiphon.java:58)
at java.lang.Thread.run(Thread.java:748)

4   CoreFoundation                      0x00007fff2d61dd98 _CF_forwarding_prep_0 + 120
5   libgstapplemedia.so                 0x00000001341c92bc libgstapplemedia.so + 58044
6   jna8227028033524427433.tmp          0x0000000132e14134 ffi_call_unix64 + 76
7   ???                                 0x0000700006e451c8 0x0 + 123145417937352

)
libc++abi.dylib: terminating with uncaught exception of type NSException
Using startup command: /private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/bin/java -agentlib:jdwp=transport=dt_socket,address=8713,server=y,suspend=y,quiet=y -Djna.nosys=true -Djava.ext.dirs=/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/ext -Xdock:name=sketch_200828a -Djava.library.path=:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library:/Users/candela/Documents/Processing/libraries/video/library/macosx64::/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/MacOS -cp /var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/sketch_200828a7566118957889188163temp:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-linux-armv6hf.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-linux-armv6hf.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-linux-aarch64.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-linux-aarch64.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-macosx-universal.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-linux-amd64.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-linux-i586.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-windows-i586.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-linux-i586.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-linux-amd64.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/core.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-macosx-universal.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-windows-i586.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/gluegen-rt-natives-windows-amd64.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core/library/jogl-all-natives-windows-amd64.jar:/Users/candela/Documents/Processing/libraries/video/library/gstreamer-java.jar:/Users/candela/Documents/Processing/libraries/video/library/video.jar:/Users/candela/Documents/Processing/libraries/video/library/jna.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/ant.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/ant-launcher.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/core.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/jna.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/pde.jar:/private/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/AppTranslocation/BA5BA70F-8D70-4A67-BD48-0C4942FE8AED/d/Processing.app/Contents/Java/jna-platform.jar -ea processing.core.PApplet --display=-1 --sketch-path=/var/folders/wt/0ptz95b14vj0m7n0fkpnhlx40000gn/T/untitled4993003420448008647sketches/sketch_200828a sketch_200828a

Thanks for all

Do the video example sketches work correctly?
Have you tried reinstalling the lib?