I am trying to synchronize an animation and video and save the output as a new video. The animation is based on data collected at arbitrary times, roughly at 20 fps (but not close enough to look right at that speed). Therefore I need to tag the data with the time it is collected and display the corresponding frame of the video each time a new data point is loaded.
It is simple to do this using Movie.jump(), but that function takes several seconds to complete, so rendering an entire video is intractably slow. I also tried using the jmcvideo library, but it only works with Processing 1.5.1 and doesn't display frames correctly.
Is there another library or function that can load video frames quickly? Rendering in real-time is acceptable, but any slower will make the whole program useless. Thanks!