Jit.qt.movie with constant changing rate, audio crashes?

Jan 6, 2008 at 8:12pm

Jit.qt.movie with constant changing rate, audio crashes?

Good day,

I haven’t been working with Max/Msp/jitter for a long time yet, but am enjoying it so far. I’m working on a visual installation where three movies will playback with different playback rates. The rate is changed by the brightness of the incoming image from a camera, using jit.qt.grab and jit.3m. I’m first trying to get things working with one video.
This works fine, and the movie plays well. Except the audio!
It’ll play for about 16/17 seconds, before it starts stuttering heavily for a second, and then just stops. If I then change the playback rate to -1, I’ll have sound again, and if I go back to 1, sound will play fine for another 16 seconds.
I’ve tried to play the movie with a constant rate, but this makes the audio crash as well. If I use loadram, the audio will play for 25 seconds before crashing. The video will continue to play fine either way. I’ve tried uncompressed audio, and compressed, but uncompressed seems to work better.
Am I just doing something incredibly stupid, or forgetting something?
Please do help.

If needed, here’s my patch so far:
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 109 135 45 9109513 qmetro 5;
#P message 361 149 41 9109513 loadram;
#P message 31 209 68 9109513 fullscreen $1;
#P toggle 14 209 15 0;
#P newex 56 184 35 9109513 sel 27;
#P newex 14 184 40 9109513 key;
#P newex 335 217 55 9109513 metro 1000;
#P newex 369 342 92 9109513 scale 0. 255. -1. 2.8;
#P message 435 229 30 9109513 close;
#P newex 349 311 70 9109513 unpack 1 2 3 4;
#P newex 335 276 53 9109513 jit.3m;
#P message 405 229 28 9109513 open;
#P number 474 205 35 9 0 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 474 229 58 9109513 vdevice $1;
#P newex 335 246 47 9109513 jit.qt.grab;
#P newex 109 226 47 9109513 jit.window;
#P message 304 149 42 9109513 rate $1;
#P message 168 149 28 9109513 read;
#P message 238 149 27 9109513 stop;
#P message 204 149 31 9109513 start;
#P message 268 149 31 9109513 clear;
#P toggle 109 105 16 0;
#P newex 109 167 55 9109513 jit.qt.movie;
#P connect 1 0 22 0;
#P fasten 1 0 16 0 114 193 340 193;
#P connect 16 0 8 0;
#P fasten 15 0 6 0 374 369 301 369 301 118 309 118;
#P connect 22 0 0 0;
#P connect 21 0 0 0;
#P connect 6 0 0 0;
#P connect 2 0 0 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 5 0 0 0;
#P connect 0 0 7 0;
#P connect 20 0 7 0;
#P connect 13 1 15 0;
#P fasten 18 0 19 0 61 206 19 206;
#P fasten 19 0 20 0 30 224 30 209;
#P fasten 17 0 18 0 55 201 55 186;
#P connect 14 0 8 0;
#P connect 11 0 8 0;
#P connect 9 0 8 0;
#P connect 8 0 12 0;
#P connect 12 1 13 0;
#P connect 10 0 9 0;
#P window clipboard copycount 23;

#35241
Jan 17, 2008 at 8:23pm

yesyesyes…

use cocktail of jit.movie (vol 0 if audio still exists on
quicktime file) and SFPLAY (SFPLAY to playback audio).

#119957

You must be logged in to reply to this topic.