strange behaviour of the jit.movie~

yaniki's icon

Friends

I struggle with a strange behavior of the [jit.movie~] - or I'm doing something wrong (as usual).

I need a simple mechanism for rewind to the beginning of a video file, when playing is finished (just to display 1st frame of the video file on the end). Nothing fancy.

First strange issue: not sure' it is documented or not, but I can't play (via [jit.movie~]) sound from files when audiotrack is uncompressed (but ok, I prepared a movie with compressed sound). The second thing is stranger: I'm using @loopreport 1 attribute to capture "loopnotify" message and to trigger "frame 0" message (mentioned "autorewind" mechanism). However this works fine with movies used in Max examples (such as "crashtest.mov") I can't force my patch to work with my own footages. I tested it with prores422 and h264 encoded files (.mov) and it doesn't work. [jit.movie~] is sending "loopnotify" message, but I can't... convince my patch to withdrew film to the first frame.

I tried some experiments: among others I tested movies prepared in different ways (from Motion/FCP, MPEGStreamClip, etc.) - to be sure, that it's not something related to the compression/file itself - and constantly I bounce from the same problem.

I prepared a simple example: http://paweljanicki.jp/shared/test.zip

I'm on Sierra, working with Max in 64bit mode.

Rob Ramirez's icon

hi yaniki, thanks for the patch and the report. this is a bug and i'll take a look.

in the meantime, it looks like there's a simple workaround if you use loadram to load a small section of the beginning of the file, e.g. "loadram 1" to load the first second of the file. (you may need to increase your cache_size to load the entire second of video)

yaniki's icon

Hi Rob

Thanks for quick reaction.

This is really strange... Can't use @loadram 1 attribute (see '"loadram" is not a valid attribute argument' in Max Console). I can send "loadram 1" message manually to the [jit.movie~] with no error message, but it doesn't work.

ps. I'm using Max 7.3.1 ( Viddlle 1.0.6)

yaniki's icon

Ach, sorry - the trick with loadram works perfect - I forgot, that loadram is not an attribute...

thanks again, Rob