I have a project using a series of h.264 files (the format is non-negotiable, they’re generated by another part of the pipeline), and it loads and prepares videos offscreen and then crashes in on a hard cut with a play() command. The issue is that first frame from a play() can take quite a while to come back from the underlying player, so the first 4-10 frames are stalled and create a noticeable hitch. If I start the videos earlier and cut into them part-way through playback, it obviously isn’t an issue, but I lose the first x frames of the video. I was curious if there was a way to force a movie player to pre-buffer so it’s prepared to play when needed, instead of waiting for the first play command to try to populate its buffer and start preparing for full-run playback (what i assume is happening, based on the delay). I have several seconds of off-screen time between videos being prepared and needing to be on screen.
Platform: OSX using QT video
Side note: Looking through the docs, I’m not sure if there’s a way to load frame texture data onto the CPU nicely. Maybe I could load entire videos frame-by-frame (I don’t need audio) into a sort of manual buffer. I have the RAM. Ideas?