Minim seek to a point, audio/video sync
in
Core Library Questions
•
3 years ago
I'm using Minim to generate some heavy visuals (rendering at 5-6 frames per minute) and I want to sync the resulting video & audio.
After some research ( http://processing.org/discourse/yabb2/YaBB.pl?board=Sound;action=display;num=1206881824),
the best explanaiton I found was this -
do everything offline, fft the audio one video frame at a time, render that frame & save it, merge audio after-the-fact
so, if you had audio exactly 60 seconds long, you'd do exactly 1800 fft's (60*30) spanning exactly 79380000 samples (1800*44100) and render exactly 1800 video frames, each of which "looked at" an fft of exactly 1470 samples. That's the sort of math you'd like to see for "perfect" sync.
However, as far as I get it, Minim cannot seek to a cue point. Is there a way around this?
-l
After some research ( http://processing.org/discourse/yabb2/YaBB.pl?board=Sound;action=display;num=1206881824),
the best explanaiton I found was this -
do everything offline, fft the audio one video frame at a time, render that frame & save it, merge audio after-the-fact
so, if you had audio exactly 60 seconds long, you'd do exactly 1800 fft's (60*30) spanning exactly 79380000 samples (1800*44100) and render exactly 1800 video frames, each of which "looked at" an fft of exactly 1470 samples. That's the sort of math you'd like to see for "perfect" sync.
However, as far as I get it, Minim cannot seek to a cue point. Is there a way around this?
-l
1