Preload & Scrub Video (help!)

Does anyone have a simple example for preloading a video for fast playback and scrubbing via gpu? I’m trying to use Queue+GetSlice but it’s not working right (my attempt is attached).

vidtest2.v4p (9.4 kB)

you have to set the number of frames the queue should store…

you have to set the number of frames the queue should store…

vidtest2.v4p (9.4 kB)

also at kalle.Modules.EX9.Texture you find the module
TimeScratch (EX9.Texture).v4p
with a helppatch.

Thanks guys but I’m getting really erratic behavior with both methods.

With Queue, some of the frames that it queues up are just blank (white frames)… where do those come from?
(I did: chose video file, set play pin to 1. Then set the Queue’s insert pin to 1 (manually) for a second then set it back to 0.)

With “TimeScratch (EX9.Texture) help.v4p” I replaced VideoIn with a FileStream and it doesn’t even really show a full frame, just a piece of one with some garbage.

Thanks guys but I’m getting really erratic behavior with both methods.

With Queue, some of the frames that it queues up are just blank (white frames)… where do those come from?
(I did: chose video file, set play pin to 1. Then set the Queue’s insert pin to 1 (manually) for a second then set it back to 0.)

With “TimeScratch (EX9.Texture) help.v4p” I replaced VideoIn with a FileStream and it doesn’t even really show a full frame, just a piece of one with some garbage.

vidtest2.v4p (12.0 kB)

Ok I think I get it…

Now a different problem: 10 seconds of 720p video takes about 2 gigs of memory, does this makes sense? 8-9mb per frame.