stopping video playback

Apr 30, 2007 at 6:06am

stopping video playback

i’m trying to make a video stop playing when it reaches a specific frame. i made a framecounter with a select object following it. and then a “stop” object following that, but the video keeps playing. any ideas?

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 165 164 40 196617 t b b b;
#P window setfont “Fixedwidth Serif” 10.;
#P number 540 440 51 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P message 42 198 60 196617 framedump;
#P button 539 530 15 0;
#P window setfont “Fixedwidth Serif” 10.;
#P message 116 198 50 1441802 gettime;
#P window setfont Times 10.;
#P comment 180 120 26 1310730 Play;
#P window setfont “Fixedwidth Serif” 10.;
#P message 279 95 43 1441802 time 0;
#P message 262 95 14 1441802 1;
#P button 262 73 15 0;
#P newex 165 139 55 1441802 metro 40;
#P toggle 165 119 15 0;
#P window setfont Times 10.;
#P comment 277 73 44 1310730 Restart;
#P window setfont “Sans Serif” 9.;
#P newex 516 187 40 196617 t b b b;
#P newex 540 470 58 196617 select 100;
#P window setfont Times 10.;
#P window linecount 2;
#P comment 533 257 115 1310730 Stop and start the movie at its current time position;
#P window linecount 1;
#P comment 465 237 191 1310730 Change the movie’s playback rate and volume;
#P window setfont “Fixedwidth Serif” 10.;
#P message 492 284 38 1441802 start;
#P message 450 287 32 1441802 stop;
#P window setfont Times 10.;
#P comment 204 232 29 1310730 Open;
#P window setfont “Fixedwidth Serif” 10.;
#P message 202 246 124 1441802 read FinalVideo.mov;
#P user panel 198 228 142 42;
#X brgb 255 127 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 423 237 254 80;
#X brgb 127 127 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 440 399 160 1441802 route read time framedump;
#P toggle 320 415 15 0;
#P window setfont “Sans Serif” 9.;
#P message 320 436 70 196617 fullscreen $1;
#P newex 304 459 93 196617 jit.window display;
#P newex 304 359 111 196617 jit.qt.movie 1440 900;
#P connect 25 0 13 0;
#P connect 4 2 25 0;
#P fasten 13 0 9 0 545 503 760 503 760 217 455 217;
#P connect 13 0 23 0;
#P fasten 14 0 10 0 521 210 497 210;
#P fasten 0 1 4 0 410 383 445 383;
#P connect 3 0 2 0;
#P connect 2 0 1 0;
#P connect 0 0 1 0;
#P fasten 7 0 0 0 207 295 309 295;
#P fasten 9 0 0 0 455 313 309 313;
#P fasten 10 0 0 0 497 316 309 316;
#P fasten 22 0 0 0 121 314 309 314;
#P fasten 20 0 0 0 284 188 352 188 352 316 309 316;
#P fasten 26 2 0 0 200 333 309 333;
#P fasten 24 0 0 0 47 311 309 311;
#P fasten 18 0 20 0 267 91 284 91;
#P connect 18 0 19 0;
#P fasten 14 1 7 0 536 211 207 211;
#P connect 17 0 26 0;
#P connect 16 0 17 0;
#P fasten 19 0 16 0 267 115 170 115;
#P fasten 26 1 22 0 185 189 121 189;
#P fasten 26 0 24 0 170 185 47 185;
#P window clipboard copycount 27;

#31666
Apr 30, 2007 at 6:24am

check your max window. You should be getting error messages… one
telling you that it is already framedumping, and another telling you
that your number box doesn’t understand “done” (from the framedump).
Check out >=, togedge, and jitter tutorial 4. That will show you how
to get the actual frames, and how to send a bang when it gets there.

Thanks,
Keith

On 4/30/07, DerekJ wrote:
>
> i’m trying to make a video stop playing when it reaches a specific frame. i made a framecounter with a select object following it. and then a “stop” object following that, but the video keeps playing. any ideas?
>
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 165 164 40 196617 t b b b;
> #P window setfont “Fixedwidth Serif” 10.;
> #P number 540 440 51 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont “Sans Serif” 9.;
> #P message 42 198 60 196617 framedump;
> #P button 539 530 15 0;
> #P window setfont “Fixedwidth Serif” 10.;
> #P message 116 198 50 1441802 gettime;
> #P window setfont Times 10.;
> #P comment 180 120 26 1310730 Play;
> #P window setfont “Fixedwidth Serif” 10.;
> #P message 279 95 43 1441802 time 0;
> #P message 262 95 14 1441802 1;
> #P button 262 73 15 0;
> #P newex 165 139 55 1441802 metro 40;
> #P toggle 165 119 15 0;
> #P window setfont Times 10.;
> #P comment 277 73 44 1310730 Restart;
> #P window setfont “Sans Serif” 9.;
> #P newex 516 187 40 196617 t b b b;
> #P newex 540 470 58 196617 select 100;
> #P window setfont Times 10.;
> #P window linecount 2;
> #P comment 533 257 115 1310730 Stop and start the movie at its current time position;
> #P window linecount 1;
> #P comment 465 237 191 1310730 Change the movie’s playback rate and volume;
> #P window setfont “Fixedwidth Serif” 10.;
> #P message 492 284 38 1441802 start;
> #P message 450 287 32 1441802 stop;
> #P window setfont Times 10.;
> #P comment 204 232 29 1310730 Open;
> #P window setfont “Fixedwidth Serif” 10.;
> #P message 202 246 124 1441802 read FinalVideo.mov;
> #P user panel 198 228 142 42;
> #X brgb 255 127 255;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P user panel 423 237 254 80;
> #X brgb 127 127 255;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P newex 440 399 160 1441802 route read time framedump;
> #P toggle 320 415 15 0;
> #P window setfont “Sans Serif” 9.;
> #P message 320 436 70 196617 fullscreen $1;
> #P newex 304 459 93 196617 jit.window display;
> #P newex 304 359 111 196617 jit.qt.movie 1440 900;
> #P connect 25 0 13 0;
> #P connect 4 2 25 0;
> #P fasten 13 0 9 0 545 503 760 503 760 217 455 217;
> #P connect 13 0 23 0;
> #P fasten 14 0 10 0 521 210 497 210;
> #P fasten 0 1 4 0 410 383 445 383;
> #P connect 3 0 2 0;
> #P connect 2 0 1 0;
> #P connect 0 0 1 0;
> #P fasten 7 0 0 0 207 295 309 295;
> #P fasten 9 0 0 0 455 313 309 313;
> #P fasten 10 0 0 0 497 316 309 316;
> #P fasten 22 0 0 0 121 314 309 314;
> #P fasten 20 0 0 0 284 188 352 188 352 316 309 316;
> #P fasten 26 2 0 0 200 333 309 333;
> #P fasten 24 0 0 0 47 311 309 311;
> #P fasten 18 0 20 0 267 91 284 91;
> #P connect 18 0 19 0;
> #P fasten 14 1 7 0 536 211 207 211;
> #P connect 17 0 26 0;
> #P connect 16 0 17 0;
> #P fasten 19 0 16 0 267 115 170 115;
> #P fasten 26 1 22 0 185 189 121 189;
> #P fasten 26 0 24 0 170 185 47 185;
> #P window clipboard copycount 27;
>
>

#103181
Apr 30, 2007 at 6:44am

you’re right about the max window. i don’t really understand how to use those objects in this context. maybe you could show me? i’d really appreciate it. thanks.

-Derek

#103182
May 3, 2007 at 11:34am

You might want to try loop mode 3 – it does a single shot
playthrough, but uses the looppoints (loop mode 0 ignores the
looppoints).

jb

Am 30.04.2007 um 08:06 schrieb DerekJ:

>
> i’m trying to make a video stop playing when it reaches a specific
> frame. i made a framecounter with a select object following it.
> and then a “stop” object following that, but the video keeps
> playing. any ideas?

#103183
May 3, 2007 at 2:58pm

Alternatively you could use an external source to drive the movie:

a schematic patch (not actually working, only to illustrate the idea):

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 118 128 29 196617 t b f;
#P newex 137 149 68 196617 prepend time;
#P newex 118 108 35 196617 * 0.6;
#P message 118 68 95 196617 500. , 1500. 1500.;
#P newex 118 87 40 196617 line 0.;
#P newex 118 170 102 196617 jit.qt.movie @rate 0;
#P comment 155 108 166 196617 timescale compensation;
#P connect 3 0 2 0;
#P connect 2 0 4 0;
#P connect 6 0 1 0;
#P connect 6 1 5 0;
#P connect 4 0 6 0;
#P connect 5 0 1 0;
#P window clipboard copycount 7;

Mattijs

Quote: DerekJ wrote on Mon, 30 April 2007 08:44
—————————————————-
> you’re right about the max window. i don’t really understand how to use those objects in this context. maybe you could show me? i’d really appreciate it. thanks.
>
> -Derek
—————————————————-

#103184
Jun 5, 2007 at 10:18am

I have similar problem!
In my case i drop frames for some reason and I can never achieve total time = current time. That seems t be an issue. I got 27fps sometimes even 15..
Is there any way round it??
For some reason I always get timescale – 0 for some of my movies. I want to stop the clip after it plays once and then load another just after the first.
Another strange issue is 80% of the cpu on my macbook pro is it normal jitter behavior I run two videoclips at the same time
Cant find the solution in tutorials.

thanks

Radek

#103185

You must be logged in to reply to this topic.