jit.qt.movie reporting it has ended playing a movie

Oct 15, 2006 at 10:40pm

jit.qt.movie reporting it has ended playing a movie

how do i make the jit.qt.movie object to tell me that the file i loaded is done playing so i can use that info to load another file into the object, ive been trying with the duration message out of the dump but with no results

#28162
Oct 15, 2006 at 11:43pm

#86181
Oct 16, 2006 at 12:16am

problem is that when i send the message framedump it takes longer to reach the end of the movie than the image i am seeing in the jit.window, so the image finishes faster, is finishing about 4 or 5 times faster than the frames being dumped . is it format specific? i mean avi. movies have got more frames than .mov movies? or mpeg movies?

#86182
Oct 16, 2006 at 1:41am

#86183
Oct 16, 2006 at 2:14am

im jsut starting to work on it so bear that in mind. what im trying to do is to make kitters read and load randomly files from the same folder and load them in two different movie objects which then get mixed in one screen with the fader.

#86184
Oct 16, 2006 at 3:58am

#86185
Oct 16, 2006 at 4:08am

Sorry, here is the patch!

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 332 131 33 196617 clear;
#P newex 241 343 46 196617 sel done;
#P newex 241 323 87 196617 route framedump;
#P newex 128 197 30 196617 t b s;
#P newex 78 294 73 196617 t framedump l;
#P button 37 141 15 0;
#P newex 37 122 27 196617 t b l;
#P newex 173 194 74 196617 route populate;
#P toggle 56 224 15 0;
#P newex 56 248 59 196617 metro 40;
#P user jit.pwindow 55 372 253 187 0 1 0 0 1 0;
#P button 300 129 15 0;
#P window linecount 2;
#P message 128 262 253 196617 read “Macintosh HD:/Applications/MaxMSP
4.6/patches/media/crashtest.mov”;
#P window linecount 1;
#P newex 148 233 92 196617 prepend set read;
#P newex 157 148 74 196617 prepend prefix;
#P newex 37 103 60 196617 prepend set;
#P user dropfile 157 101 427 120 0 fold;
#P newex 157 128 54 196617 route text;
#P user textedit 157 101 427 120 32896 3 9 “Macintosh
HD:/Applications/MaxMSP 4.6/patches/media/”;
#P user ubumenu 83 176 100 196617 0 1 1 0;
#X add bball.mov;
#X add blading.mov;
#X add blossom.exr;
#X add chilis.jpg;
#X add colorbars.pict;
#X add colorswatch.pict;
#X add colorwheel.jpg;
#X add colorwheel.pct;
#X add countdown.mov;
#X add countdown15.mov;
#X add crashtest.mov;
#X add dishes.mov;
#X add dozer.mov;
#X add dvducks.mov;
#X add dvkite.mov;
#X add floresc.exr;
#X add fuzz_circle.jpg;
#X add garbage.mov;
#X add greenswirls.exr;
#X add horizon.exr;
#X add luv.qfx;
#X add models;
#X add “models/apple Folder”;
#X add “models/mushrooms Folder”;
#X add “models/starfish Folder”;
#X add “models/trashbin Folder”;
#X add oh.mov;
#X add ozone.mov;
#X add psychotiles.exr;
#X add rain.mov;
#X add rca.mov;
#X add redball.mov;
#X add sunset.jpg;
#X add talk.aiff;
#X add track1.mov;
#X add track2.mov;
#X add traffic.mov;
#X add volume-datasets;
#X add volume-datasets/aneurism-64.jxf;
#X add volume-datasets/aneurism-64.txt;
#X add volume-datasets/fuel-64.jxf;
#X add volume-datasets/fuel-64.txt;
#X add volume-datasets/skull-64.jxf;
#X add volume-datasets/skull-64.txt;
#X add volume-datasets/ventricles-64.jxf;
#X add volume-datasets/ventricles-64.txt;
#X add wheel.mov;
#X prefix_set 0 1 “Macintosh HD:/Applications/MaxMSP 4.6/patches/media/” 1;
#P comment 147 77 289 196617 drag and drop a folder on the textedit to
populate the ubumenu!;
#P newex 300 152 48 196617 urn 36;
#P newex 56 326 106 196617 jit.qt.movie @loop 0;
#P fasten 15 0 1 1 178 214 364 214 364 149 343 149;
#P connect 11 0 1 0;
#P fasten 22 0 1 0 337 146 305 146;
#P fasten 21 0 11 0 246 365 396 365 396 127 305 127;
#P connect 20 0 21 0;
#P connect 0 1 20 0;
#P connect 3 2 15 0;
#P connect 5 0 8 0;
#P fasten 4 0 5 0 162 124 162 124;
#P fasten 17 0 4 0 42 158 123 158 123 99 162 99;
#P fasten 16 1 4 0 59 142 111 142 111 97 162 97;
#P connect 19 1 9 0;
#P connect 9 0 10 0;
#P connect 19 0 10 0;
#P connect 3 1 19 0;
#P fasten 1 0 3 0 305 171 88 171;
#P fasten 8 0 3 0 162 168 88 168;
#P connect 10 0 18 0;
#P connect 0 0 12 0;
#P connect 13 0 0 0;
#P connect 18 1 0 0;
#P connect 18 0 0 0;
#P connect 14 0 13 0;
#P connect 16 0 17 0;
#P connect 7 0 16 0;
#P fasten 6 0 7 0 162 124 436 124 436 91 42 91;
#P window clipboard copycount 23;

>
>> im jsut starting to work on it so bear that in mind. what im trying to do is
>> to make kitters read and load randomly files from the same folder and load
>> them in two different movie objects which then get mixed in one screen with
>> the fader.
>
>
>

#86186
Oct 16, 2006 at 5:02am

can you maybe send me the patcher file instead of the text version? maybe is cos im using max on xp and not on a mac but i cant open it it keeps openning as text cheers though i think its got to do with the kind of movies im trying to play which i still need to compress into .mov format

#86187
Oct 16, 2006 at 6:26am

>
> how do i make the jit.qt.movie object to tell me that the file i loaded is
> done playing so i can use that info to load another file into the object,
> ive been trying with the duration message out of the dump but with no
> results

If you use the attributes @loop 0 and @loopreport 1 your movie will play
once (whithout looping >> because of @loop 0) and it will send a message out
of its right outlet letting you now it ended the movie (thx to @loopreport
1)

if you’re loosing too much time in between several movies i’d try to use two
instances of jit.qt.movie, and when starting one movie you can load a second
movie into the second instance of jit.qt.movie using ‘asyncread’. This will
than load your second movie whithout blocking the playback of the first.

hope this is of any use.
d.

#86188
Oct 16, 2006 at 11:31am

#86189
Oct 16, 2006 at 3:01pm

where

#86190
Oct 16, 2006 at 3:07pm

got the new from clipborad too, had never used before…mmm, really new to max even though ive used it for like 5 years already, anyway, both solutions are cool i reckon the loopreport works better cos it sends a bang straigh out of the dump when the file is finished playing instead of counting the frames which i reckon takes a little bit more power from my cpu. maybe not but it slows down a tiny little bit the performance…

#86191
Oct 16, 2006 at 3:14pm

>whereZs the patch?
>well cheers to both of you , actually the framereport message sent
>the bang i needed, cool, just wondering why it wasnt in the help
>patch of the movie object.

The Reference manual pages are a complete listing of all
messages that Jitter/Max/MSP objects expect. While some
of what an object does is covered in help files, this should
be a personal example to you that you should ALWAYS
check the reference pages – the definitive guide.

#86192
Oct 16, 2006 at 3:27pm

#86193

You must be logged in to reply to this topic.