# Create a movie from PImages and SoundFile

**URL:** <https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307>\
**Category:** Processing for Android\
**Created:** [January 8, 2019, 7:51am UTC](https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307 "2019-01-08T07:51:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FurryNightShade](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Post date:** [January 8, 2019, 7:51am UTC](https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307/1 "2019-01-08T07:51:50Z")

</div>

Hello,  
I am working on an audio visualizer. I used to just run the visualizer and record it with XBox recorder, but that created a lot of lag and sometimes other sounds in a system played, so it sometimes took many tries to just record it.  
In this new version, I want to render the video by creating PImages and joining them in a video and then adding sound to it.  
Does anyone know a library for Windows or Android, that would allow me to do this one thing?

---

<div class="post-metadata">

**Author:** ![Architector\_4](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/architector_4/32/813_2.png) [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Post date:** [January 8, 2019, 7:58am UTC](https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307/2 "2019-01-08T07:58:24Z")

</div>

A bit of googling lead me to these two:  
[https://funprogramming.org/VideoExport-for-Processing/](https://funprogramming.org/VideoExport-for-Processing/)  
[http://gsvideo.sourceforge.net/](http://gsvideo.sourceforge.net/)

I don’t know which one is better, or if they even work, but they are 2 potential starting points you might want to consider.

---

<div class="post-metadata">

**Author:** ![FurryNightShade](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Post date:** [January 9, 2019, 9:58am UTC](https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307/3 "2019-01-09T09:58:09Z")

</div>

They work for me on Windows and are easy to use, but none of them work on Android.  
Are there any such libraries for Android?

---

<div class="post-metadata">

**Author:** ![Architector\_4](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/architector_4/32/813_2.png) [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Post date:** [January 9, 2019, 12:46pm UTC](https://discourse.processing.org/t/create-a-movie-from-pimages-and-soundfile/7307/4 "2019-01-09T12:46:35Z")

</div>

I have no idea, to be honest.  
You could probably find a Java library that works on Android. Or, you could put all images into a folder, and then talk straight to the `ffmpeg` codec using such a Java library.

After some time of looking on the internet, I’ve came across this.

> **[WritingMinds/ffmpeg-android-java](https://github.com/WritingMinds/ffmpeg-android-java)**
>
> Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android - WritingMinds/ffmpeg-android-java

  
I don’t know how good you are with pure Java, but I feel like you can figure this out.

Adding .jar files as libraries to your code in Processing is possible by making a simple custom library - go to `libraries` folder in your sketchbook folder, add a folder with any name, then add another folder inside of that named `library`, and put your .jar file named same as the library there. So, you’ll have `[sketchbook]\libraries\[any_library_name]\library\[any_library_name].jar`, and after a restart of Processing, it should appear in “Sketch\>Import library…” menu, under “Contributed” text.  
I don’t know if this works for Android mode - I think it should though.

Good luck!
