How to stop video loop from stuttering in PLAYR module?

Stefan Makowski's icon

I'm currently fiddling around with Vizzie units for a project, and have some loops set up to run through the PLAYR module. These clips have been edited in another program to ensure that the loop point is seamless, so that the looping is imperceptible when watched continuously. However, it seems the PLAYR module automatically pauses for half a second before returning to the beginning of the clip, creating a start-stop effect each time the video loops. Is there any way to change or undo this so that the PLAYR module runs continuously without pausing each time the loop goes back to its start point?

Thanks

Stephane Morisse's icon

What are the codecs and resolution of the movies ?

Rob Ramirez's icon

also, how long are the video files? if you have sufficient system memory, and run in 64 bit mode, you could use the loadram feature with [ jit.movie @engine viddll @cache_size 1 ] in place of your PLAYR module.

adjust the cache_size attribute according to how much memory you'll need to load in the movie file (in gigabytes).

Stefan Makowski's icon

Sorry for the delay, accidentally turned notifications off for this one. As an update, I've switched over to using jit.gl.videoplane in order to alphablend all the layers, and the playback is still stuttering. It appears that all the playback units I've experimented with in Max do this, even with the default video files included in Max 7. By contrast, when I set the video to loop in my video editing software, it plays back seamlessly. I've tried adjusting the loop points and playback rate of the jit.qt.movie objects and the start-stop seam is still there. The video loops are a few seconds each, 960x540 resolution mp4's, H.264 codec, however the problem seems to be with the behaviour of the objects themselves and not the videos.

Max Gardener's icon

Sorry to be more cautious than necessary , but you DO have overdrive off, right?

Rob Ramirez's icon

you could try to convert to a non-temporal codec, such as prores 422 or photo-jpeg.

you could also try using jit.movie @engine viddll and using the loadram feature to load into memory the first 1 second or so of the movie file (recommended to use with 64 bit mode):

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

otherwise please post a patch, and please let us know which OS you are using.