# Unable to export real-time audio reactive visuals

**URL:** <https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242>\
**Category:** Libraries\
**Created:** [June 17, 2023, 6:23pm UTC](https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242 "2023-06-17T18:23:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaival](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@shaival](https://discourse.processing.org/u/shaival)\
**Post date:** [June 17, 2023, 6:23pm UTC](https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242/1 "2023-06-17T18:23:43Z")

</div>

Hi All!

I am creating a music visualizer in Processing 4.0.  
However when I try to export using saveFrame function, the audio is playing in real-time but the saving function delays the draw loop considerably which results in frame skipping.

For a twenty second song, I’m only getting only 150-200 frames which when played back result in a 7fps frame rate whereas without the saveFrame, the code plays it at a much higher frame rate.

P.S. The video export library is not compatible with Processing 4.

Please help.

---

<div class="post-metadata">

**Author:** ![nuhuhwy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nuhuhwy/32/18485_2.png) [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Post date:** [July 9, 2023, 6:53pm UTC](https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242/2 "2023-07-09T18:53:44Z")

</div>

You can try using thread!  
If the image is really big, try saving it not as a PNG!  
If you save it as a tiff, it’s way faster 😃
