Preload videos into a buffer

do0tz's icon

Hi, I'm working on a project where I'm controlling video with a keyboard. MY patch isn't set up in the most efficient flow but it works. Here it is,

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

I want to know how I can buffer every video so that when I hit a key it plays instantly. Right now there is latency.

THANKS!

gavspav's icon

Latency in these situations is often due to hard drive speed and/or choice of codec.

These optimisations may help: http://abstrakt.vade.info/?p=147

The patch near the bottom of this thread will certainly help:
https://cycling74.com/forums/efficient-qt-clip-triggering-with-no-delays/

I'm not sure if hap is a good choice of codec for quick triggering but it is beneficial in other ways: https://cycling74.com/tools/jit-gl-hap/

If you want a quick fix and you have enough ram, use the loadram message to load the movies into ram. Think you can just load the first few frames if you want too.

do0tz's icon

Yea, I'm using Pro Res 422.

do0tz's icon

Thank you for the help! I will test them out when I get some free time.