some tips on jitter

Matthieu Pernaud's icon

although the tutotials are well done, after a few days patching in jitter, i have the feeling i need to get a few tips, starting with that one:

is jit.qt.movie the best solution to build a midi triggered video patch ? i can't get rid of a (short though) latency on the start of my video loops when i switch from a video to another with midi notes.

would you have a tip for me ? (i've read the Vade article about video optimization)

pelang's icon

Play the videos from a ramdisc zb(http://boredzo.org/make-ram-disk/)

pe

Matthieu Pernaud's icon

thanks ! that's a good idea

seejayjames's icon

or splice all your videos into one big one and jump around using frame commands. no lag ever.

Matthieu Pernaud's icon

yeah , it seems to be the best way to do it.

Christopher Dobrian's icon

Just checking: You should be loading your movies before you try to show them, rather than at the time you're trying to show them.

Making one big movie, reading it in, and looping the desired segment is one pretty good way to do that.

Max Patch
Copy patch and select New From Clipboard in Max.

Or if you have multiple short movies you want to show as loops, you can use two jit.qt.movie objects, but only play/show one of them at a time, and while you're showing that one you can read the next movie into the one you're not playing/showing. Here's a simplified example using just two preloaded movies, but you could add a way of reading a new movie into whichever one you're not playing.

Matthieu Pernaud's icon

thanks a lot !

bart at max (previously BITter)'s icon

[jit.qt.movie] — (loadram 0 1000)

Max Patch
Copy patch and select New From Clipboard in Max.

simple patch to show how to use loadram:

check [jit.qt.movie] help file -> reference

With [jit.qt.movie] — (loadram 0 1000) we were able to fire up 88 movies (400x300) faster then our shadow with a midi piano. :)

yair reshef's icon

just a warning,
i exported a qt movie (photo-jpeg 75%) via adobe media encoder CS5.5
using the loadram edges method i got memory leaks that eventually crashed max.
re-exporting via QTplayer the memory handeling was ok.
windows7/64bit/max6/max5

also you might want to check andrew B.
same concept+polybank
The Video Processing System, Part 4 « Cycling 74
https://cycling74.com/tutorials/the-video-processing-system-part-4/