-
-
Notifications
You must be signed in to change notification settings - Fork 128
Description
Expected Behavior
I print the capture devices list, see the entry I want to use, and open the one I want. Upon runnning some basic almost-example code, I see my video stream in the window.
Current Behavior
For certain webcam configurations above a certain data rate, I only see a gray screen. It works for lower resolution, high framerate (480p 30fps) configurations, and higher resolution, lower framerate (720p 9fps) configurations. However fairly reasonable configurations, such as 720p 30fps, result in a gray screen. Any auxiliary code runs fine. This persists even with several different webcams. When it does work, the webcam light turns on, when it doesn't the light is off.
Steps to Reproduce
Code:
import processing.video.*;
Capture video;
void setup() {
size(1280, 720);
printArray(Capture.list());
video = new Capture(this, Capture.list()[0]);
video.start();
}
void draw() {
image(video, 0, 0);
}
void captureEvent(Capture video) {
video.read();
}
Your Environment
Processing 3.3.7
Windows 10
Possible Causes / Solutions
Attached are two screenshots showing the issue.

