Best method for interactive video scrubbing?
I'm working on an installation that involves people using hardware to scrub through video playback.
Here's an example/test of the interaction: https://instagram.com/p/0wlaIMzPJW/
This method uses the imovie object, but there's no buffer and so sometimes the video isn't very reactive. I also intend to jit.glue the videos together into one, and I don't think imovie allows you you use jit.glue.
The video files are small - a mouth and eye opening and closing - and I was looking for recommendations on the best way to set up smooth and reactive scrubbing. I've done a bit of investigation on using a buffer or matrix, but most of the examples were for live video.
I'll be running this on older Mac Minis too, so performance is an issue.
Thanks in advance for your ideas!
if you have max 7, you could use jit.movie which has a 'position' input that takes a normalised (0. to 1.) float?
loading a video can take time which explains the dropouts your having.
I'd use a program like blender (free ! ) to just put all the videos behind each other.
Export the whole set as one quicktime movie with medium settings (if they're already small files just do high quality export )
Pull this into the imovie object. Make sure to use a loadbang to initialise the file load on startup.
Because your whole video has been loaded there shouldn't be any dropouts.
To move it all to the GPU ( For better performance ) plug the ouput of the imovie object into a jit.gl.videoplane @transform_reset 2 (this adapts the movie to the jit.window aspect ratio).
You will need a jit.gl.render and a jit.window object to see the videoplane.
just a note: i did get to very smooth, high quality video scrubbing by converting my movies to jxf binary image sequences saved to fast ssds or a ram disk and then reading these back with a counter. this approach is not exactly straight forward and probably only makes sense for special scenarios but it does bypass all limitations and problems coming along with quicktime and allows for really smooth scrubbing in high quality.
k