GSVideo in Processing 3+

I'm really desperate.

I find no solution to this problem. GSVideo in Processing 3+.

My 64bit environment. Windows 10 Processing 3+ Netbeans Java

With Processing 2 and GSVideo i got no Problems.

Here is my test code. I simply wish to transmit a video image of my Quadcopter.

package main;

import processing.core.*;
import codeanticode.gsvideo.*;


public class Video1 extends PApplet{

    GSCapture cam;

        public static void main(String[] args) {
        PApplet.main("main.Video1");
    }

    public void settings() {
     size(1300, 700, P2D);   
    }

    public void setup() {     

        String[] cameras = GSCapture.list();

        if (cameras.length == 0){
            println("There are no cameras available for capture.");
            exit();
        } else {
            println("Available cameras:");
            for (int i = 0; i < cameras.length; i++) {
                println(cameras[i]);
            }
            cam = new GSCapture(this, 320, 240, cameras[0]);   <- Hier wird der Fehler angezeigt
            cam.start();

            int[][] res = cam.resolutions();
            for (int i = 0; i < res.length; i++) {
                println(res[i][0] + "x" + res[i][1]);
            }       
        }
    }

    public void draw() {

            if (cam.available() == true) {
                cam.read();
            }
            background(200, 200, 200);     
            image(cam, 300, 50);         
    }   
}

I use gstreamer etc. from the CodeAntiCode Library.

Gruß Willi

Answers

  • Has no idea? I also tried to contact CodeAntiCode directly. No success. :\">

  • use processing 2?

  • edited May 2016

    That will be the best. Processing 3 is still very young.

Sign In or Register to comment.