# VideoExport: movie duration not matching up with mp3

**URL:** <https://discourse.processing.org/t/videoexport-movie-duration-not-matching-up-with-mp3/17259>\
**Category:** Libraries\
**Created:** [January 22, 2020, 7:45pm UTC](https://discourse.processing.org/t/videoexport-movie-duration-not-matching-up-with-mp3/17259 "2020-01-22T19:45:54Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 7, 2025, 7:20pm UTC](https://discourse.processing.org/t/videoexport-movie-duration-not-matching-up-with-mp3/17259/9 "2025-10-07T19:20:41Z")

</div>

> [@glv](#):
>
> stop when you hit the desired frameCount.

It’s not about when to stop the recording.

It’s about how to have the visuals **in sync** with the music.

When in my visual a door slams, it must be met exactly the door sound in the Audio MP3.

It works when I play the Sketch, but the recording is way off.

**Remark**

I also read this: [Movie Maker: Time gap between movie and its audio file - #2 by glv](https://discourse.processing.org/t/movie-maker-time-gap-between-movie-and-its-audio-file/46748/2)

**Thank you for this.**

But we don’t achieve a sync between MP3-file and visual in the resulting movie. I tried hamoid library and your approach with the Tool Movie Maker (installing ffmpeg manually). Nothing works.

I also read this: [https://superuser.com/questions/982342/in-ffmpeg-how-to-delay-only-the-audio-of-a-mp4-video-without-converting-the-au](https://superuser.com/questions/982342/in-ffmpeg-how-to-delay-only-the-audio-of-a-mp4-video-without-converting-the-au)

(Addition: I just realized that this discussion might in fact be helpful, with the ffmpeg parameter -itsoffset)

> [@hamoid](#):
>
> The way that could be solved would be if it was possible to specify timestamps for each video frame. Some environments support this, but not ffmpeg afaik.

Maybe this is the problem.

Not solved.

---

_[View the full topic](https://discourse.processing.org/t/videoexport-movie-duration-not-matching-up-with-mp3/17259)._
