processing / processing-video

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

Processing Video on Mac #152

Closed KazimWalji closed 3 years ago

KazimWalji commented 4 years ago

I deleted and re dowbloaded processing 3 times and followed differnet tutorials. Whenever I try showing video a gray screen shows up, my camera works as i use factime. Here is my code:

import processing.video.; // Step 1. Import the video library. import processing.video.;

//Step 2. Declare a capture object. Capture video;

// Step 5. Read from the camera when a new image is available! void captureEvent(Capture video) { video.read(); }

void setup() {
size(320, 240);

// Step 3. Initialize Capture object. video = new Capture(this,320, 240);

// Step 4. Start the capturing process. video.start(); }

// Step 6. Display the image. void draw() {
image(video, 0, 0); }

martintricaud commented 4 years ago

Duplicate of #134

christo commented 4 years ago

@codeanticode this should be closed

benfry commented 3 years ago

Closing as duplicate of #134.