Hello everyone! I want to export my work at the bottom as a video with “video export” library. But when i run it, it gives me this error:
" RuntimeException: java.lang.NoSuchFieldError: frame
java.lang.RuntimeException: java.lang.NoSuchFieldError: frame
at processing.opengl.PSurfaceJOGL.lambda$initAnimator$2(PSurfaceJOGL.java:413)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NoSuchFieldError: frame
at com.hamoid.VideoExport.initialize(Unknown Source)
at com.hamoid.VideoExport.startMovie(Unknown Source)
at Midterm_Class_.setup(Midterm_Class_.java:52)
at processing.core.PApplet.handleDraw(PApplet.java:2142)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:825)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:782)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
RuntimeException: java.lang.NoSuchFieldError: frame"
What can i do? Thank you for your help already.
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
import ddf.minim.signals.*;
import ddf.minim.spi.*;
import ddf.minim.ugens.*;
import com.hamoid.*;
Minim minim;
AudioPlayer player;
VideoExport videoExport;
int rows = 10;
int cols = 5;
Pattern pattern;
void setup() {
size(1000, 500, P3D);
minim = new Minim(this);
player = minim.loadFile("beep_1.mp3");
pattern = new Pattern();
frameRate(1);
videoExport = new VideoExport(this);
videoExport.startMovie();
}
void keyPressed() {
if (keyPressed) {
if (key == 'a' || key == 'A') {
background(255, 0, 0);
player.rewind();
player.play();
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++) {
pushMatrix();
translate (i*(width/rows), j*(height/cols));
translate ( (width/rows)/2, (height/cols)/2);
int rotAmount = (int) random (4);
rotate (radians(rotAmount*90));
pattern.display();
popMatrix();
}
}
}
if (key == 's' || key == 'S') {
saveFrame ("truchet.png");
}
}
}
void draw() {
videoExport.saveFrame();
//saveFrame("video_####.png");
}
public class Pattern {
private float x, y, w, h;
private float r, g, b, a, c, d;
public void setup() {
}
public void display() {
x = 0;
y = 0;
w = 100;
h = 100;
stroke(2);
fill(255, 0, 0);
rectMode(CENTER);
rect(x, y, w, h);
fill(r, g, b);
rectMode(CORNER);
rect(-50, -20, 27, 40); //2
rect(-20, -50, 40, 17); //1
fill(r, g, b);
arc(50, 50, 140, 140, radians(-180), radians(-90));
fill(a, c, d);
arc(50, 50, 60, 60, radians(-180), radians(-90));
if (keyPressed) {
if (key == 'a' || key == 'A') {
r = random(0, 255);
g = random(0, 255);
b = random(0, 255);
a = random(0, 255);
c = random(0, 255);
d = random(0, 255);
}
}
}
}