# Exporting Sketch With Movie Is Blank

**URL:** https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983
**Category:** Processing
**Created:** [February 21, 2021, 10:34pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983 "2021-02-21T22:34:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Bojangles](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bojangles/32/12171_2.png) [@Bojangles](https://discourse.processing.org/u/Bojangles)
#### Post date: [February 21, 2021, 10:34pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/1 "2021-02-21T22:34:39Z")

</div>

Hi, I’m having issues with exporting a sketch that has a movie in it from the Video library from processing. When I **run the sketch** , it runs fine and **the video plays**. But, when I **export the sketch** to an exe and try to run it, it **displays nothing** (just a blank screen).

```auto
import java.*;
import processing.sound.*;
import processing.video.*;
Movie movie;
void setup() {
 size(1000,1000,P2D); 
  movie = new Movie(this, "keyboard-cat.mov");
  // movie.width = width;
  // movie.height = height;

  movie.loop();
  movie.volume(0.1); //music volume
}

void draw() {
  background(0);
  image(movie, 0, 0, width, height);
}
void movieEvent(Movie movie) {  
  movie.read();
}

```

Yes the movie file is in the data folder which is located in the same folder as the sketch.

Help would be much appreciated!

Here’s a link to download the code + export if you need

> **[testo.zip](https://drive.google.com/file/d/1miW4-KBSa-TaEI4gNLxqGppJtdXw0j95/view?usp=sharing)**
>
> Google Drive file.

You might need to import the library via sketch → import library → Video by the processing foundation

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [February 23, 2021, 10:33pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/2 "2021-02-23T22:33:50Z")

</div>

Hi,

Welcome to the forum! 😉

Looks like it’s a common problem, I’ve already seen this kind of issue here :

- [https://discourse.processing.org/t/video-library-not-working-for-exported-application-of-the-sketch](https://discourse.processing.org/t/video-library-not-working-for-exported-application-of-the-sketch)

- [https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889/2/25264/5](https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889/2/25264/5)

I am not currently able to reproduce your issue but maybe someone can help!

---

<div class="post-metadata">

### Author: ![firasm](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@firasm](https://discourse.processing.org/u/firasm)
#### Post date: [February 28, 2021, 3:00am UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/3 "2021-02-28T03:00:42Z")

</div>

When I try to run your code, I see this error message in the console:

`No glyph found for the (\uFFFF) character`

Not 100% sure it’s related to your issue (it might actually be an issue with the video library as mentioned above), but may be worth fixing this.

P.S. I’m on macOS 11.2.1

 ![Screen Shot 2021-02-27 at 6.57.24 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0f18286fa7bb831ae0e7afc3a0e512416647a8d9.jpeg)

---

<div class="post-metadata">

### Author: ![Bojangles](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bojangles/32/12171_2.png) [@Bojangles](https://discourse.processing.org/u/Bojangles)
#### Post date: [February 28, 2021, 5:21am UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/4 "2021-02-28T05:21:08Z")

</div>

Ah that was some leftover code that we hadn’t cleaned up in time. The actual game was Textbox.pde.

For clarification for others, my team had come third place in a hackathon but whenever I tried to export the code into an exe so other people can play, it wouldn’t work. I eventually isolated the issue to processing’s movie library (or maybe I just did something silly?) and the code you see above is the movie I was trying to get to work in an exe.

If you’re curious, [here’s the link to the github page to our hackathon game](https://github.com/AdamFipke/2021-wp-hackathon). I did a bit of cleaning up but if the code above doesn’t work when exporting, then the game won’t (though you can still run the sketch fine hopefully if you import the libraries)

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [February 28, 2021, 11:41am UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/5 "2021-02-28T11:41:33Z")

</div>

Assuming you’re trying Windows 64-bit when you mention `.exe`, try creating a folder called `windows64` inside the libraries folder of the exported sketch. Move all the `.dll` files and the `gstreamer-1.0` folder into it. Does this now work?

---

<div class="post-metadata">

### Author: ![Bojangles](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bojangles/32/12171_2.png) [@Bojangles](https://discourse.processing.org/u/Bojangles)
#### Post date: [March 1, 2021, 9:17pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/6 "2021-03-01T21:17:28Z")

</div>

This fixed it! Thank you so much!! Is this common knowledge in the processing community or how did you figure it out?

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [March 1, 2021, 9:42pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/7 "2021-03-01T21:42:33Z")

</div>

> [@Bojangles](#):
>
> Is this common knowledge in the processing community or how did you figure it out?

Probably not. I maintain the Java bindings for GStreamer that Processing Video uses. Just looked for where the library was trying to load GStreamer from. Not sure whether this is a bug in the Video library or Processing’s export function. Mind you, I’m really not a fan of bundling the GStreamer native libraries, at least in the way it’s done here.

Glad it’s working for you anyway! 🙂

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [March 2, 2021, 12:02pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/8 "2021-03-02T12:02:11Z")

</div>

Opened an issue against Processing 4 at [Export sketch bug? Native libraries in different location relative to JARs · Issue #176 · processing/processing4 · GitHub](https://github.com/processing/processing4/issues/176)

---

<div class="post-metadata">

### Author: ![abatllei](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@abatllei](https://discourse.processing.org/u/abatllei)
#### Post date: [June 7, 2021, 8:14pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/9 "2021-06-07T20:14:12Z")

</div>

What do you mean “inside the libraries folder of the exported sketch”?  
How do I see the contents of an .exe file?

In mac I know how to do it but not in windows!
