# Export Application video not working

**URL:** <https://discourse.processing.org/t/export-application-video-not-working/30363>\
**Category:** Libraries\
**Tags:** homework\
**Created:** [May 30, 2021, 11:28am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363 "2021-05-30T11:28:36Z")\
**Posts on this page:** 18\
**Page:** 1

<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:** [May 30, 2021, 11:28am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/1 "2021-05-30T11:28:36Z")

</div>

So I have to play two videos on my sketch and when I run it on Processing it works well, but when I export the application, it doesn’t work at all. Even the program seems not to be running. Grey screen.

I’m on OSX 10.14.6 and Processing 3.5.4. The processing video library is imported. The videos .mov are in the “data” folder.

I think it’s the same issue as: [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/25264) and [Cannot play the video after exporting the application](https://discourse.processing.org/t/cannot-play-the-video-after-exporting-the-application/25889)

---

<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:** [May 30, 2021, 1:57pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/2 "2021-05-30T13:57:20Z")

</div>

Try this [Exporting Sketch With Movie Is Blank - #5 by neilcsmith](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983/5) Obviously need to adapt the answer slightly for macOS.

---

<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:** [May 30, 2021, 2:13pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/3 "2021-05-30T14:13:48Z")

</div>

Ok so `windows64` will be `macOS` but what is `.dll`?

---

<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:** [May 31, 2021, 7:01am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/4 "2021-05-31T07:01:19Z")

</div>

Offhand can’t remember. And the macOS folder name is probably not that. Just find the library install (in your sketchbook folder?) and replicate the location of GStreamer relative to the video library jars in your exported application.

---

<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 1, 2021, 5:03pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/5 "2021-06-01T17:03:02Z")

</div>

![contents](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7b3f4c4a116b75ace585c639594d02036b05a648.png)

I do have the gstreamer library inside the application contents

---

<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:** [June 1, 2021, 5:48pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/6 "2021-06-01T17:48:59Z")

</div>

Yes, in the wrong place! That folder and the dylib files need to be in another sub-folder. Replicate what you find in the library folder in the sketchbook.

---

<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:** [June 2, 2021, 8:45am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/7 "2021-06-02T08:45:32Z")

</div>

@abatllei having now had a chance to check the library install myself - move the `gstreamer-1.0` folder and all the `.dylib` files into a folder called `macosx` and try again.

---

<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 2, 2021, 5:40pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/8 "2021-06-02T17:40:07Z")

</div>

Ok. Where? Inside the application package? Here:

 ![contents](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5bb5ab25a9388c49fa2ee3d154394a1e3ea60663.png)  
Doesn’t work either ☹

---

<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:** [June 2, 2021, 5:52pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/9 "2021-06-02T17:52:03Z")

</div>

No, because you’re not doing what I said. Add a folder called `macosx` (lower case) in the folder that has video.jar in it (Java?), move the dylibs and the GStreamer folder into it, so all the relative links from the video.jar file are the same.

---

<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 2, 2021, 6:00pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/10 "2021-06-02T18:00:57Z")

</div>

OK like this?

 ![contents](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9b11851e0a398976e717330f940ae1563413e7db.jpeg)  
Keeps like always, sorry if I don’t understand :’(

---

<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:** [June 2, 2021, 7:28pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/11 "2021-06-02T19:28:46Z")

</div>

That’s OK. Looking closer, except the gstreamer-1.0 folder seems to have changed name, and you still have a gstreamer-1.0 folder above? Fix those and see if it works.

---

<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 3, 2021, 4:23pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/12 "2021-06-03T16:23:55Z")

</div>

Yes! The video is working now! This is the final solution:

 ![contents](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/cdb853f3809e534868b1006e8d419b9ddb3bf61f.jpeg)  
Thank you so much @neilcsmith !!!

---

<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:** [June 3, 2021, 9:54pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/13 "2021-06-03T21:54:06Z")

</div>

Great! 😃 Maybe add a comment on [Export sketch bug? Native libraries in different location relative to JARs · Issue #176 · processing/processing4 · GitHub](https://github.com/processing/processing4/issues/176) Be good if this issue was looked at.

---

<div class="post-metadata">

**Author:** ![mematron](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mematron/32/17636_2.png) [@mematron](https://discourse.processing.org/u/mematron)\
**Post date:** [October 28, 2021, 12:21pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/14 "2021-10-28T12:21:12Z")

</div>

This doesn’t work for me and I really shouldn’t need to move this stuff myself. It sucks because I am doing so very uncommon work in Processing.

---

<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:** [October 28, 2021, 2:28pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/15 "2021-10-28T14:28:37Z")

</div>

Share the file tree you have, and OS details, etc. or no-one can help you.

And yes, it sucks!

---

<div class="post-metadata">

**Author:** ![mematron](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mematron/32/17636_2.png) [@mematron](https://discourse.processing.org/u/mematron)\
**Post date:** [October 29, 2021, 9:35am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/16 "2021-10-29T09:35:09Z")

</div>

The only reason this is an issue for me is because until recently I had no need for it. I wouldn’t be surprised if it never worked 16 years ago when I first used Processing. I need it to work, not a workaround.

I thank you for wanting to help. I work in the gaming industry. Those “undocumented features” really get to me sometimes. I don’t like seeing it here - grrrrrrrr

---

<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:** [October 29, 2021, 10:41am UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/17 "2021-10-29T10:41:55Z")

</div>

> [@mematron](#):
>
> I wouldn’t be surprised if it never worked 16 years ago when I first used Processing. I need it to work, not a workaround.
> 
> I thank you for wanting to help. I work in the gaming industry.

It’s only been broken since Video library v2, so only a few years. A workaround is all you’ve got at this point.

The sector you work in reallly isn’t relevant to me. But for context, I maintain the GStreamer bindings that the Video library uses, (and via my company also provide commercial support for them). I don’t like the integration in the Video library - it’s broken in a few ways. But if you want workarounds, I can help you … or not.

---

<div class="post-metadata">

**Author:** ![JSGauthier](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jsgauthier/32/9910_2.png) [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Post date:** [May 3, 2022, 8:49pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363/18 "2022-05-03T20:49:34Z")

</div>

This issue has now been completely fixed and no longer requires the work around!

Exporting an application that uses the video library now **works** in Processing 4.0b8 (released April 22, 2022). Ensure that you have updated the video library to Processing 4 v 2.1
