Forums > MaxMSP

imove time unity ?


FP
April 24, 2007 | 10:31 am

could somebody explain to me what is the time unity of [imovie] (movie) ?

here’s a patch to show if i use one movie, the time unity is 24 for 1 second, and for another movie it’s 600 for 1 second.
i don’t understand why, except maybe it depends of the fps of the movie.
in that case how to do to have always the same unity to control [imovie] ?

thx.

f./

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P user com 478 353 22 196617 2;
#K set 0 28530 14848;
#K end;
#P window setfont "Sans Serif" 20.;
#P comment 186 344 36 196628 24;
#P window setfont "Sans Serif" 9.;
#P user com 110 352 70 196617 7;
#K set 0 26223 29216 12576 29541 25455 28260 14848;
#K end;
#P newex 44 30 50 196617 loadbang;
#P message 368 52 114 196617 read countdown15.mov;
#P user imovie 368 75 322 242 1 ;
#M rd countdown15.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown15.mov;
#P number 261 53 35 9 0 0 0 3 0 0 0 255 255 255 222 222 222 0 0 0;
#P message 44 53 102 196617 read countdown.mov;
#P user imovie 44 75 322 242 1 ;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#P comment 219 34 132 196617 play the video with number;
#P user com 43 327 118 196617 13;
#K set 0 30568 24948 8297 29472 29800 25888 29801 28005 8309 28265 29817 8255 3328;
#K end;
#P window setfont "Sans Serif" 20.;
#P comment 506 344 49 196628 600;
#P connect 7 0 6 0;
#P fasten 5 0 3 0 266 70 49 70;
#P fasten 5 0 6 0 266 70 373 70;
#P connect 8 0 4 0;
#P fasten 8 0 7 0 49 49 373 49;
#P connect 4 0 3 0;
#P window clipboard copycount 12;


April 24, 2007 | 10:57 am

Even if you’re not using Jitter, you might want to read the Jitter
tutorials for a reasonably clear explanation of this.

Tutorial 4 and the QuickTime Confidential appendix should be helpful.

http://developer.apple.com/documentation/QuickTime/RM/MovieInternals/
MTTimeSpace/MTTimeSpace.pdf is the official description. Check the
chapter on "Movie Time and Space".

jb

Am 24.04.2007 um 12:31 schrieb fp:

> could somebody explain to me what is the time unity of [imovie]
> (movie) ?
>
> here’s a patch to show if i use one movie, the time unity is 24 for
> 1 second, and for another movie it’s 600 for 1 second.
> i don’t understand why, except maybe it depends of the fps of the
> movie.
> in that case how to do to have always the same unity to control
> [imovie] ?


April 24, 2007 | 1:53 pm

Jeremy Bernstein schrieb:
> Even if you’re not using Jitter, you might want to read the Jitter
> tutorials for a reasonably clear explanation of this.

It does explain the technical context, it does not explain why for
example jit.gt.movie doesn’t allow navigation by time. To do that simple
calculation internally wouldn’t hurt. And I can’t imagine that the
majority of users prefers to think in awkward units versus time, and
even if, I can navigate in units, or in frames why not in time…

I came around by creating my own abhaXion for it, but still it doesn’t
explain it for me… The same is true for imovie I guess…

Maybe explanation is not enough… (another hint for Max 5… ;-)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 24, 2007 | 2:39 pm

You might be interested in the "editmode" and "edittime" attributes.

One might also argue that media is best handled in their native time
coordinates – in this case, QuickTime Time Units. For instance, many
MSP objects handle time in samples.

Pretending that QuickTime movies necessarily have regular frames or
some sort of other timing resolution which they don’t is misleading.
Nevertheless, "editmode" and "edittime" do precisely this.

jb

Am 24.04.2007 um 15:53 schrieb Stefan Tiedje:

> Jeremy Bernstein schrieb:
>> Even if you’re not using Jitter, you might want to read the Jitter
>> tutorials for a reasonably clear explanation of this.
>
> It does explain the technical context, it does not explain why for
> example jit.gt.movie doesn’t allow navigation by time. To do that
> simple calculation internally wouldn’t hurt. And I can’t imagine
> that the majority of users prefers to think in awkward units versus
> time, and even if, I can navigate in units, or in frames why not in
> time…
>
> I came around by creating my own abhaXion for it, but still it
> doesn’t explain it for me… The same is true for imovie I guess…
>
> Maybe explanation is not enough… (another hint for Max 5… ;-)
>
> Stefan
>
> —
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>



FP
April 24, 2007 | 2:45 pm

ok, thx.
it’s a little bit clearer but not really useful.

if i understood well:

#P window setfont "Sans Serif" 9.;
#P flonum 237 69 60 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 152 107 27 196617 i;
#P newex 152 88 95 196617 * 0.;
#P number 152 69 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 29 257 46 196617 / 1000.;
#P newex 29 68 115 196617 t b s;
#P message 29 108 99 196617 autofit 1 , timescale;
#P window setfont "Fixedwidth Serif" 10.;
#P message 29 49 34 1441802 read;
#P user imovie 29 132 162 122 1 ;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd caresse;
#M rd japon.mov;
#M rd P1010561.MOV;
#M rd ko1.mov;
#M rd feu;
#M rd caresse;
#M rd caresse;
#M rd crashtest.mov;
#M rd bball.mov;
#M rd blading.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd blading.mov;
#M rd bball.mov;
#M rd countdown.mov;
#M rd blading.mov;
#M rd bball.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd countdown.mov;
#M rd crashtest.mov;
#M rd crashtest.mov;
#M rd countdown.mov;
#M rd countdown15.mov;
#M rd bball.mov;
#M rd countdown.mov;
#M rd blading.mov;
#M rd blading.mov;
#M rd countdown.mov;
#P window setfont "Sans Serif" 9.;
#P newex 29 88 50 196617 del 4000;
#P comment 210 71 21 196617 ms;
#P fasten 6 0 10 0 34 276 299 276 299 66 242 66;
#P connect 10 0 8 1;
#P fasten 9 0 2 0 157 126 34 126;
#P connect 8 0 9 0;
#P connect 7 0 8 0;
#P connect 1 0 4 0;
#P connect 5 0 1 0;
#P fasten 5 1 2 0 139 126 34 126;
#P connect 3 0 5 0;
#P connect 2 0 6 0;
#P fasten 4 0 2 0 34 126 34 126;
#P window clipboard copycount 11;


April 25, 2007 | 8:16 am

Jeremy Bernstein schrieb:
> You might be interested in the "editmode" and "edittime" attributes.

Thanks for the pointer, I think they should go into the main page of the
help file.

> One might also argue that media is best handled in their native time
> coordinates – in this case, QuickTime Time Units. For instance, many MSP
> objects handle time in samples.

I won’t and didn’t argue against that. But even for me as a sort of DSP
expert, which deals a lot in samples, I mostly use milliseconds as the
main unit. The artistic way of thinking which would deal with results
rather than technical terms would always START thinking in real world
units. And the most common one is time. Especially for beginners, the
only units they know are the real world units. (consider me as a Jitter
beginner…) That’s why I think its essential that these real world
units are the first and the default for most objects.
The help file should at least point to it directly… Though the docs
list all commands, the important ones should be explained in the help
file, especially with complex objects like jit.qt.movie. I consider all
real world units to be important….

> Pretending that QuickTime movies necessarily have regular frames or some
> sort of other timing resolution which they don’t is misleading.
> Nevertheless, "editmode" and "edittime" do precisely this.

Yes, that will simplify life, until the defaults in Max 5 are user
definable I’ll make a prototype…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com



FP
April 25, 2007 | 10:58 am

>> You might be interested in the "editmode" and "edittime" attributes.

what is it ?
wher to find infos about that ?
thx.


April 25, 2007 | 12:36 pm

In the reference for jit.qt.movie.

jb

Am 25.04.2007 um 12:58 schrieb elt:

>>> You might be interested in the "editmode" and "edittime" attributes.
>
> what is it ?
> wher to find infos about that ?
> thx.
>
>


Viewing 8 posts - 1 through 8 (of 8 total)