Forums > Jitter

video priority..?

August 3, 2006 | 10:48 pm

I have a question about video priorty. I have three videos playing simaltaniously and I have a motion triggered jit.xfade and the patch seems to be confusing which video to play when both fades are in action. The correct videos play, but they will either flash on the screen or just mix the two vids when I want it to be just one playing at a time. Colud anyone help me with this? I will attach the video portion of the patch if that will help further demonstrate my problem.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 347 523 43 196617 s xfade;
#P newex 347 493 49 196617 jit.xfade;
#P message 657 105 14 196617 0;
#P button 658 74 15 0;
#P message 672 155 14 196617 1;
#P newex 231 136 44 196617 togedge;
#P newex 230 83 40 196617 change;
#P message 294 157 43 196617 0 1750;
#P message 231 158 55 196617 101 1750;
#P newex 231 187 40 196617 line;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 231 274 83 1441802 prepend xfade;
#P window setfont Times 10.;
#P comment 287 232 32 1310730 Mixer;
#P comment 216 216 15 1310730 A;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 231 256 35 10 0. 1. 131 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 231 235 43 1441802 * 0.01;
#P user hslider 232 211 18 128 101 1 0 0;
#P button 466 171 15 0;
#P window setfont "Sans Serif" 9.;
#P message 559 233 33 196617 start;
#P message 584 186 29 196617 stop;
#P newex 465 232 52 196617 metro 50;
#P newex 523 281 63 196617 jit.qt.movie;
#P message 399 246 30 196617 read;
#P user jit.pwindow 522 312 82 62 0 1 0 0 1 0;
#P newex 1174 132 69 196617 s person still;
#P newex 826 152 83 196617 s person moving;
#P newex 981 535 43 196617 s xfade;
#P newex 981 505 49 196617 jit.xfade;
#P newex 968 215 56 196617 r loadbang;
#B color 12;
#P newex 1299 267 44 196617 togedge;
#P message 1243 194 14 196617 0;
#P message 1223 194 14 196617 1;
#P newex 1299 228 40 196617 change;
#P message 1361 305 43 196617 0 1750;
#P message 1298 306 55 196617 101 1750;
#P newex 1298 335 40 196617 line;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 1298 422 83 1441802 prepend xfade;
#P window setfont Times 10.;
#P comment 1354 380 32 1310730 Mixer;
#P comment 1283 364 15 1310730 A;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 1298 404 35 10 0. 1. 131 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1298 383 43 1441802 * 0.01;
#P user hslider 1298 362 18 128 101 1 0 0;
#P user jit.pwindow 1109 382 82 62 0 1 0 0 1 0;
#P user jit.pwindow 873 386 82 62 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P message 1146 278 33 196617 start;
#P message 1185 279 29 196617 stop;
#P button 1044 238 15 0;
#P newex 1052 277 52 196617 metro 50;
#P newex 1110 326 63 196617 jit.qt.movie;
#P message 1178 310 85 196617 read traffic.mov;
#P message 910 278 33 196617 start;
#P message 949 279 29 196617 stop;
#P button 968 237 15 0;
#P newex 816 277 52 196617 metro 50;
#P newex 874 326 63 196617 jit.qt.movie;
#P message 787 311 85 196617 read track1.mov;
#P button 1125 151 15 0;
#P button 1004 150 15 0;
#N vpatcher 875 97 1475 497;
#P outlet 58 340 15 0;
#P outlet 368 345 15 0;
#P inlet 373 43 15 0;
#P inlet 135 51 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 58 286 271 196617 if $i1>=1 && $i1< =27 && $i2>=1 && $i2< =27 then bang;
#P newex 368 285 170 196617 if $i1==-1 && $i2==28 then bang;
#P connect 2 0 1 0;
#P connect 1 0 5 0;
#P connect 3 0 1 1;
#P connect 2 0 0 0;
#P connect 0 0 4 0;
#P connect 3 0 0 1;
#P pop;
#P newobj 1004 117 131 196617 p regionselect;
#P flonum 1092 86 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1004 84 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1092 55 36 196617 r yy1;
#P newex 1004 55 36 196617 r xx1;
#P comment 1143 154 71 196617 PERSON STILL;
#P comment 922 152 79 196617 PERSON MOVING;
#P comment 1066 238 26 196617 stop;
#P comment 932 239 32 196617 start;
#P fasten 45 0 64 0 528 304 352 304;
#P connect 45 0 43 0;
#P fasten 12 0 64 1 879 361 651 361 651 398 391 398;
#P connect 12 0 23 0;
#P fasten 12 0 39 0 879 360 986 360;
#P connect 55 0 64 1;
#P connect 64 0 65 0;
#P connect 61 0 59 0;
#P connect 63 0 59 0;
#P connect 62 0 63 0;
#P fasten 9 0 61 0 1009 182 656 182 656 129 661 129 677 129;
#P fasten 9 0 35 0 1009 181 1228 181;
#P connect 60 0 57 0;
#P connect 57 0 56 0;
#P fasten 58 0 56 0 299 182 236 182;
#P connect 56 0 50 0;
#P connect 50 0 51 0;
#P connect 51 0 52 0;
#P connect 52 0 55 0;
#P connect 59 0 60 0;
#P connect 59 1 60 0;
#P connect 59 2 60 0;
#P connect 60 1 58 0;
#P connect 49 0 46 0;
#P connect 44 0 45 0;
#P fasten 46 0 45 0 470 264 528 264;
#P fasten 47 0 45 0 589 222 528 222;
#P fasten 48 0 45 0 564 256 528 256;
#P connect 20 0 15 0;
#P connect 20 0 21 0;
#P fasten 18 0 39 1 1115 356 1025 356;
#P connect 18 0 24 0;
#P fasten 14 0 11 0 882 275 870 300 792 300;
#P connect 14 0 13 0;
#P connect 14 0 16 0;
#P connect 14 0 19 0;
#P connect 14 0 22 0;
#P fasten 14 0 17 0 1137 280 1137 311;
#P connect 8 1 10 0;
#P fasten 8 1 42 0 1130 143 1151 143 1151 116 1179 116;
#P fasten 8 0 41 0 1009 143 831 143;
#P connect 8 0 9 0;
#P connect 37 1 33 0;
#P connect 34 2 37 0;
#P connect 34 1 37 0;
#P connect 34 0 37 0;
#P fasten 36 0 34 0 1248 215 1304 215;
#P fasten 35 0 34 0 1228 218 1304 218;
#P connect 27 0 30 0;
#P connect 26 0 27 0;
#P connect 25 0 26 0;
#P connect 31 0 25 0;
#P fasten 33 0 31 0 1366 330 1303 330;
#P connect 32 0 31 0;
#P connect 37 0 32 0;
#P fasten 10 0 36 0 1130 175 1248 175;
#P fasten 7 0 8 1 1097 110 1130 110;
#P connect 17 0 18 0;
#P fasten 19 0 18 0 1057 309 1115 309;
#P fasten 21 0 18 0 1190 305 1115 305;
#P fasten 22 0 18 0 1151 301 1115 301;
#P connect 5 0 7 0;
#P connect 6 0 8 0;
#P connect 4 0 6 0;
#P connect 39 0 40 0;
#P fasten 30 0 39 0 1303 454 986 454;
#P connect 38 0 14 0;
#P fasten 16 0 12 0 915 301 879 301;
#P fasten 15 0 12 0 954 315 879 315;
#P fasten 13 0 12 0 821 309 879 309;
#P connect 11 0 12 0;
#P window clipboard copycount 66;


August 3, 2006 | 11:09 pm

Could you elaborate on what exactly is going wrong?
Maybe It’s me, but I don’t really understand what exactly should be the output? I see the three videos playing, one and two can fade, two and three can fade… I changed the line time to fade them slower and together, but I can not figure out what exactly you mean.


August 3, 2006 | 11:26 pm

It looks like the problem is that both sets of xfades send to the
same receive object, which i imagine is the final video out.

essentially, you have 2 [s xfade]‘s, which is essentially the same
as attaching two sets of outgoing matrices to a single object.
Basically, they compete, and you get flashing of both xfades output?

do something like this perhaps?:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 458 491 129 196617 THERE CAN BE ONLY ONE…;
#P message 510 506 44 196617 xfade 0;
#P message 461 507 44 196617 xfade 1;
#P newex 499 602 249 196617 s MAIN_OUTPUT_TO_WINDOW_OR_SOMETHING_HERE;
#P newex 499 552 49 196617 jit.xfade;
#P newex 132 500 49 196617 jit.xfade;
#P message 442 112 14 196617 0;
#P button 443 81 15 0;
#P message 457 162 14 196617 1;
#P newex 16 143 44 196617 togedge;
#P newex 15 90 40 196617 change;
#P message 79 164 43 196617 0 1750;
#P message 16 165 55 196617 101 1750;
#P newex 16 194 40 196617 line;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 16 281 83 1441802 prepend xfade;
#P window setfont Times 10.;
#P comment 72 239 32 1310730 Mixer;
#P comment 1 223 15 1310730 A;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 16 263 35 10 0. 1. 131 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 16 242 43 1441802 * 0.01;
#P user hslider 17 218 18 128 101 1 0 0;
#P button 251 178 15 0;
#P window setfont "Sans Serif" 9.;
#P message 344 240 33 196617 start;
#P message 369 193 29 196617 stop;
#P newex 250 239 52 196617 metro 50;
#P newex 308 288 63 196617 jit.qt.movie;
#P message 184 253 30 196617 read;
#P user jit.pwindow 307 319 82 62 0 1 0 0 1 0;
#P newex 959 139 69 196617 s person still;
#P newex 611 159 83 196617 s person moving;
#P newex 766 512 49 196617 jit.xfade;
#P newex 753 222 56 196617 r loadbang;
#B color 12;
#P newex 1084 274 44 196617 togedge;
#P message 1028 201 14 196617 0;
#P message 1008 201 14 196617 1;
#P newex 1084 235 40 196617 change;
#P message 1146 312 43 196617 0 1750;
#P message 1083 313 55 196617 101 1750;
#P newex 1083 342 40 196617 line;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 1083 429 83 1441802 prepend xfade;
#P window setfont Times 10.;
#P comment 1139 387 32 1310730 Mixer;
#P comment 1068 371 15 1310730 A;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 1083 411 35 10 0. 1. 131 22 0 0 0 221 221 221 222 222 222 0
0 0;
#P newex 1083 390 43 1441802 * 0.01;
#P user hslider 1083 369 18 128 101 1 0 0;
#P user jit.pwindow 894 389 82 62 0 1 0 0 1 0;
#P user jit.pwindow 658 393 82 62 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P message 931 285 33 196617 start;
#P message 970 286 29 196617 stop;
#P button 829 245 15 0;
#P newex 837 284 52 196617 metro 50;
#P newex 895 333 63 196617 jit.qt.movie;
#P message 963 317 85 196617 read traffic.mov;
#P message 695 285 33 196617 start;
#P message 734 286 29 196617 stop;
#P button 753 244 15 0;
#P newex 601 284 52 196617 metro 50;
#P newex 659 333 63 196617 jit.qt.movie;
#P message 572 318 85 196617 read track1.mov;
#P button 910 158 15 0;
#P button 789 157 15 0;
#N vpatcher 875 97 1475 497;
#P outlet 58 340 15 0;
#P outlet 368 345 15 0;
#P inlet 373 43 15 0;
#P inlet 135 51 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 58 286 271 196617 if $i1>=1 && $i1< =27 && $i2>=1 && $i2< =27
then bang;
#P newex 368 285 170 196617 if $i1==-1 && $i2==28 then bang;
#P connect 2 0 1 0;
#P connect 1 0 5 0;
#P connect 3 0 1 1;
#P connect 2 0 0 0;
#P connect 0 0 4 0;
#P connect 3 0 0 1;
#P pop;
#P newobj 789 124 131 196617 p regionselect;
#P flonum 877 93 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 789 91 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 877 62 36 196617 r yy1;
#P newex 789 62 36 196617 r xx1;
#P comment 928 161 71 196617 PERSON STILL;
#P comment 707 159 79 196617 PERSON MOVING;
#P comment 851 245 26 196617 stop;
#P comment 717 246 32 196617 start;
#P connect 67 0 64 0;
#P connect 66 0 64 0;
#P connect 64 0 65 0;
#P connect 39 0 64 1;
#P connect 63 0 64 0;
#P connect 11 0 12 0;
#P fasten 13 0 12 0 606 316 664 316;
#P fasten 15 0 12 0 739 322 664 322;
#P fasten 16 0 12 0 700 308 664 308;
#P connect 38 0 14 0;
#P fasten 30 0 39 0 1088 461 771 461;
#P connect 4 0 6 0;
#P connect 6 0 8 0;
#P connect 5 0 7 0;
#P fasten 22 0 18 0 936 308 900 308;
#P fasten 21 0 18 0 975 312 900 312;
#P fasten 19 0 18 0 842 316 900 316;
#P connect 17 0 18 0;
#P fasten 7 0 8 1 882 117 915 117;
#P fasten 10 0 36 0 915 182 1033 182;
#P connect 37 0 32 0;
#P connect 32 0 31 0;
#P fasten 33 0 31 0 1151 337 1088 337;
#P connect 31 0 25 0;
#P connect 25 0 26 0;
#P connect 26 0 27 0;
#P connect 27 0 30 0;
#P fasten 35 0 34 0 1013 225 1089 225;
#P fasten 36 0 34 0 1033 222 1089 222;
#P connect 34 0 37 0;
#P connect 34 1 37 0;
#P connect 34 2 37 0;
#P connect 37 1 33 0;
#P connect 8 0 9 0;
#P fasten 8 0 40 0 794 150 616 150;
#P fasten 8 1 41 0 915 150 936 150 936 123 964 123;
#P connect 8 1 10 0;
#P fasten 14 0 17 0 922 287 922 318;
#P connect 14 0 22 0;
#P connect 14 0 19 0;
#P connect 14 0 16 0;
#P connect 14 0 13 0;
#P fasten 14 0 11 0 667 282 655 307 577 307;
#P connect 18 0 24 0;
#P fasten 18 0 39 1 900 363 810 363;
#P connect 20 0 21 0;
#P connect 20 0 15 0;
#P fasten 47 0 44 0 349 263 313 263;
#P fasten 46 0 44 0 374 229 313 229;
#P fasten 45 0 44 0 255 271 313 271;
#P connect 43 0 44 0;
#P connect 48 0 45 0;
#P connect 59 1 57 0;
#P connect 58 2 59 0;
#P connect 58 1 59 0;
#P connect 58 0 59 0;
#P connect 51 0 54 0;
#P connect 50 0 51 0;
#P connect 49 0 50 0;
#P connect 55 0 49 0;
#P fasten 57 0 55 0 84 189 21 189;
#P connect 56 0 55 0;
#P connect 59 0 56 0;
#P fasten 9 0 35 0 794 188 1013 188;
#P fasten 9 0 60 0 794 189 441 189 441 136 446 136 462 136;
#P connect 61 0 62 0;
#P connect 62 0 58 0;
#P connect 60 0 58 0;
#P connect 54 0 63 1;
#P fasten 12 0 39 0 664 367 771 367;
#P connect 12 0 23 0;
#P fasten 12 0 63 1 664 368 436 368 436 405 176 405;
#P connect 44 0 42 0;
#P fasten 44 0 63 0 313 311 137 311;
#P window clipboard copycount 69;

v a d e //

http://www.vade.info
abstrakt.vade.info

On Aug 3, 2006, at 6:48 PM, yeshe wrote:

>
> I have a question about video priorty. I have three videos playing
> simaltaniously and I have a motion triggered jit.xfade and the
> patch seems to be confusing which video to play when both fades are
> in action. The correct videos play, but they will either flash on
> the screen or just mix the two vids when I want it to be just one
> playing at a time. Colud anyone help me with this? I will attach
> the video portion of the patch if that will help further
> demonstrate my problem.


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