# Video Export Library / Export Error

**URL:** <https://discourse.processing.org/t/video-export-library-export-error/38256>\
**Category:** Libraries\
**Created:** [August 6, 2022, 7:31pm UTC](https://discourse.processing.org/t/video-export-library-export-error/38256 "2022-08-06T19:31:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 6, 2022, 7:31pm UTC](https://discourse.processing.org/t/video-export-library-export-error/38256/1 "2022-08-06T19:31:14Z")

</div>

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.

```auto
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);
  }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 7, 2022, 11:44am UTC](https://discourse.processing.org/t/video-export-library-export-error/38256/2 "2022-08-07T11:44:30Z")

</div>

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](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/f/bf28e75bc82602e2ae16331ec389d7acd432e408.png)

`:)`

---

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 7, 2022, 1:46pm UTC](https://discourse.processing.org/t/video-export-library-export-error/38256/3 "2022-08-07T13:46:07Z")

</div>

Helllo @glv ,

Thank you for answering. I’m using;

- Processing-4.0b8 version
- Required library is [Video Export](https://funprogramming.org/VideoExport-for-Processing) 0.2.3.
- My OS is Version 21h1 OS Build 19043.1826, Windows 10

Could you solve your problem on Processing 4.0b.?

---

<div class="post-metadata">

**Author:** ![searchingforananswer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Post date:** [August 7, 2022, 3:00pm UTC](https://discourse.processing.org/t/video-export-library-export-error/38256/4 "2022-08-07T15:00:39Z")

</div>

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" .

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 7, 2022, 4:45pm UTC](https://discourse.processing.org/t/video-export-library-export-error/38256/5 "2022-08-07T16:45:24Z")

</div>

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.

`:)`
