Video Export Library / Export Error

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? :confused: 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);
  }
    }
  }
}

Hello @searchingforananswer,

It helps to include:

  • Processing version
  • The name of the required libraries and version
  • OS such as W10 or other…

I got the same error on Processing 4.0b.

I had a different result with Processing 3.5.4 and this popped up:

image

:)

Helllo @glv ,

Thank you for answering. I’m using;

  • Processing-4.0b8 version
  • Required library is Video Export 0.2.3.
  • My OS is Version 21h1 OS Build 19043.1826, Windows 10

Could you solve your problem on Processing 4.0b.?

Hello again @glv :),

I downloaded “latest git master branch build version: 2022-08-03-git-d3f48e68b3 , ffmpeg-git-full.7z”. But video export still gives the same error on Processing-4.0b8.

Also on terminal when i search for “ffmpeg -codecs” it gives this error at the bottom : " [NULL @ 0000029fcf9c3380] Unable to find a suitable output format for ‘pipe:’
pipe:: Invalid argument" .

Hello @searchingforananswer,

I don’t have more to offer on this topic.

I have both Processing 3.5.4 and Processing 4.0b8 on my PC and can switch between the two as required.

:)