processing / processing-video

GStreamer-based video library for Processing
274 stars 130 forks source link

Only drawing video one time #138

Closed 5knnbdwm closed 4 years ago

5knnbdwm commented 4 years ago

Hey, for some reason the video library just stopped working for me. When I run any sketch containing the video library the draw will run once and then stop working completely.

I have macOS Catalina installed, so I already fixed the bug described in #134. And it was working for the last two/three days.

I reinstalled processing, the video library. Tested it on a different machine and there it works fine.

import processing.video.*;

static final String CAMERA_NAME = "FaceTime HD Camera (Built-in)";
Capture cam;

void setup() {
  size(640, 480);
  cam = new Capture(this, width, height, CAMERA_NAME);
  cam.start();
}

void draw() {
  if (cam.available()) {
    cam.read();
    image(cam, 0, 0);
    print("--");
  }
}

Even just this only runs one time and I only get a black canvas.

5knnbdwm commented 4 years ago

If someone else has this problem. Here is my solution. I deleted processing and all the libraries that I installed. removed all the preferences the processing app might have created. Cleared my NVRAM and installed everything again. Then it worked again.