Search code examples
videoprocessingcompatibility

Processing Video library and code used in 1.5.1 not compatible with 3.0


Compiling a code for my college project, I realized I had been using processing 1.5.1 as it ran the most smoothly and displayed no QuicktimeSTD errors in my laptop. (Took the initial code from Open Processing)

Once I finished the code I realized that processing 2.0 and processing 3.0 gives a much better frame rate to work with and increases the efficiency of the program. But now I am not able to make it compatible with the latest version of processing. I have tried reinstalling the libraries a couple of times. The two libraries that are being used are Video and Core

Running the code on Processing 3.0 shows me this error on this line: NoSuchMethodError: You may be using a library that's incompatible with this version of Processing

capture = new Capture(this, 800, 600, 30);

I would really appreciate if someone could just help me run the code below in processing 3.0 or in the worst case processing 2.0

The code: http://pastebin.com/uRqbVHK9

The core.jar file (to be put in the code folder): https://drive.google.com/open?id=0B8B1cIEvfYOAdjNxc2ZlMXhaS1U

Thank You so much.


Solution

  • You should add Video library (menu Sketch, Import Library), and your code should reference it:

    enter image description here

    import processing.video.*;
    
    ...