Keep video and audio synchronized
Hi,
I'm making a video and audio looper inside max for live.
for this I used for audio [playlist~] and for video [jit.playlist] connected to [jit.world]
I'm using audio and video with the exact same length (verified with [dict.view] directly in the patch)
a simple button trig both.
Everything work fine, but after few loop audio and video starting to de synchronized.
Is there a way to keep them synch ?
best
answer to your question would be to use looping only on 1 of both players
and to trigger play start on the other one using loop turnover bang.
that worked, but only if you switch from media to another "quiet" often.
It would be amazing if a bang would come at every start or every end loop.
but maybe this a limitation of what can be down in max
you know well jit.movie~ by now i think.
If you want separated players, then you have to
live with disadvantages.
question is what is better to use as master, audio or video ?
It is trivial task to fire playback for both, even not to use looping at all,
but to use end bang from one player to repeat or retrigger start again.
Which is maybe a better solution anyway.
good point of view, I'm giving a try to this solution !
you could also think about using the "sync output" > snapshot~ to trigger your movie.
best,
pelo
here is a rough example:
Thank you Pelo !
I adapted your solution to my patch it works really fine !
As I was using [jit.playlist] to get visual information about rate and loop start and end. I keep it and use the [jit.movie] for the play function.
I've dabbled a bit in creating audio-visual projects and faced similar sync issues. It's super frustrating when everything starts perfectly aligned and then drifts apart after a few loops. One trick I found helpful was to ensure that both the audio and video are processed in a way that they trigger simultaneously and maintain a consistent processing time throughout each loop. Sometimes, introducing a manual sync check or a reset at the beginning of each loop can help keep everything tight.
For editing and aligning projects outside of Max for Live, I've had some good experiences with https://www.movavi.com/imovie-for-windows/. It's a straightforward tool for when I need to quickly sync audio and video without getting too deep into complex software. Might be worth a look for other aspects of your work.