4-video mixing, some ideas??

May 18, 2008 at 12:36pm

4-video mixing, some ideas??

Hi all

I am working these days in an installation that mixes 4 videos at the same time. The amount of mixing is modified by the movements of people in the room (i will track their movement from above). I did some things that try to speed up all the process:

1)I roughly adapted a patch of video-mixing by Zachary Seldess (thanks!).
The uslider represents the person, you can move it.

2)Although I don’t know much about open GL, somebody told me that it was a good idea to use it and to place some tasks in the graphic card instead of the processor. I use jit.gl.slab to mix matrices(??).

3)Loadram the 4 clips, in principle they are to be short, only 5 to 7 secs long

Still, my macbook coreduo 2.Ghz and 2GB RAM is doing badly (only 6 fps and less). This taking into account that I still have to do motion tracking with a firewire DV camera and cv.jit objects!!!

Any suggestion of how to speed everything up? I post my patch
Thanks

Beatriz

#37860
May 18, 2008 at 2:42pm

Hi Beatriz,

Your patch won’t open in max4.x or Max5. If you want to attach it, rather than paste the text in to the message body, it’s a good idea to zip everything up first.

best,
Zachary

#131108
May 18, 2008 at 3:30pm

Oooooeeepss

Here you have the text version (hope it works now)
Beatriz

max v2;
#N vpatcher 78 44 1170 796;
#P window setfont “Sans Serif” 9.;
#P newex 788 626 88 196617 bgcolor 50 50 80;
#P newex 143 561 62 196617 jit.scissors;
#P message 249 239 100 196617 read co.additive.jxs;
#P newex 176 149 68 196617 print movie1;
#P toggle 278 492 15 0;
#P message 278 510 59 196617 floating $1;
#P toggle 205 492 15 0;
#P newex 166 491 35 196617 sel 27;
#P message 205 510 68 196617 fullscreen $1;
#P newex 123 534 230 196617 jit.window prueba @depthbuffer 1 @fsmenubar 0;
#P newex 121 491 40 196617 key;
#P window setfont “Sans Serif” 12.;
#P newex 4 159 80 196620 t b b erase;
#P newex 4 598 125 196620 jit.gl.render prueba;
#P window setfont “Sans Serif” 9.;
#P newex 163 386 126 196617 jit.gl.slab prueba;
#P newex 310 296 86 196617 jit.gl.slab prueba;
#P newex 81 294 129 196617 jit.gl.slab prueba;
#P newex 66 412 96 196617 jit.gl.handle prueba;
#P newex 163 437 200 196617 jit.gl.videoplane prueba @scale 1.333 1. 1.;
#P user jit.fpsgui 19 206 60 196617 0;
#P newex 908 186 30 196617 !- 1.;
#P newex 855 185 30 196617 !- 1.;
#P newex 805 185 30 196617 !- 1.;
#P newex 752 183 30 196617 !- 1.;
#P number 552 558 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 506 556 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 12.;
#P flonum 904 457 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 851 457 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 798 457 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 745 457 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 58 351 424 743;
#P window setfont “Sans Serif” 12.;
#P newex 50 155 68 196620 change 0.;
#P newex 50 189 207 196620 if $f1 != 0. then $f1 else out2 0.;
#P newex 260 265 33 196620 f;
#P newex 190 265 34 196620 f;
#P newex 120 265 35 196620 f;
#P newex 50 265 36 196620 f;
#P newex 257 50 36 196620 t f f;
#P newex 260 301 33 196620 / 1.;
#P newex 188 50 36 196620 t f f;
#P newex 190 301 33 196620 / 1.;
#P newex 119 50 36 196620 t f f;
#P newex 120 301 33 196620 / 1.;
#P newex 50 50 36 196620 t f f;
#P newex 50 301 33 196620 / 1.;
#P newex 50 225 260 196620 t b f b f b f b f;
#P newex 50 122 149 196620 expr $f1+$f2+$f3+$f4;
#P newex 50 87 218 196620 pak 0. 0. 0. 0.;
#P inlet 257 25 15 0;
#P inlet 188 25 15 0;
#P inlet 119 25 15 0;
#P inlet 50 25 15 0;
#P outlet 190 342 15 0;
#P outlet 260 342 15 0;
#P outlet 120 342 15 0;
#P outlet 50 342 15 0;
#P connect 4 0 12 0;
#P connect 12 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 24 0;
#P connect 24 0 23 0;
#P connect 23 0 10 0;
#P connect 10 0 19 0;
#P connect 19 0 11 0;
#P connect 23 1 0 0;
#P connect 11 0 0 0;
#P connect 10 1 11 1;
#P connect 12 1 19 1;
#P connect 5 0 14 0;
#P connect 14 0 8 1;
#P connect 10 2 20 0;
#P connect 20 0 13 0;
#P connect 23 1 1 0;
#P connect 13 0 1 0;
#P connect 10 3 13 1;
#P connect 14 1 20 1;
#P connect 6 0 16 0;
#P connect 16 0 8 2;
#P connect 10 4 21 0;
#P connect 21 0 15 0;
#P connect 23 1 3 0;
#P connect 15 0 3 0;
#P connect 10 5 15 1;
#P connect 16 1 21 1;
#P connect 7 0 18 0;
#P connect 18 0 8 3;
#P connect 10 6 22 0;
#P connect 22 0 17 0;
#P connect 23 1 2 0;
#P connect 17 0 2 0;
#P connect 18 1 22 1;
#P connect 10 7 17 1;
#P pop;
#P newobj 745 426 170 196620 p avg&normalize;
#B color 12;
#P comment 908 224 37 196620 MELA;
#P comment 856 224 37 196620 CHOL;
#P comment 804 224 37 196620 PHLE;
#P comment 752 224 37 196620 SAN;
#P flonum 904 398 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 904 486 36 196620 s v4;
#P user multiSlider 904 244 48 146 0. 1. 1 2681 47 0 0 2 0 70 0;
#M frgb 26 20 130;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 851 398 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 851 486 36 196620 s v3;
#P user multiSlider 851 244 48 146 0. 1. 1 2681 47 0 0 2 0 70 0;
#M frgb 26 20 130;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 798 398 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 798 486 36 196620 s v2;
#P user multiSlider 798 244 48 146 0. 1. 1 2681 47 0 0 2 0 70 0;
#M frgb 26 20 130;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P flonum 745 398 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 745 486 36 196620 s v1;
#P user multiSlider 745 244 48 146 0. 1. 1 2681 47 0 0 2 0 70 0;
#M frgb 26 20 130;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user panel 716 213 263 306;
#X brgb 89 174 225;
#X frgb 255 255 255;
#X border 3;
#X rounded 0;
#X shadow 0;
#X done;
#P window setfont “Sans Serif” 9.;
#P newex 594 554 41 196617 * 0.01;
#P newex 461 554 41 196617 * 0.01;
#P newex 527 178 27 196617 r v4;
#P newex 408 176 27 196617 r v3;
#P newex 286 176 27 196617 r v2;
#P newex 170 173 27 196617 r v1;
#P newex 438 198 99 196617 jit.op @op * @val 0.;
#P newex 319 196 99 196617 jit.op @op * @val 0.;
#P newex 200 195 99 196617 jit.op @op * @val 0.;
#P newex 81 194 99 196617 jit.op @op * @val 0.;
#P message 269 37 29 196617 stop;
#P message 231 37 33 196617 start;
#P comment 915 146 17 196617 4;
#P comment 862 146 16 196617 2;
#P newex 855 99 40 196617 change;
#P message 908 75 14 196617 2;
#P message 855 76 14 196617 1;
#P newex 855 52 63 196617 split 0 0.49;
#P newex 855 127 63 196617 gate 2;
#P comment 791 146 18 196617 3;
#P newex 752 101 40 196617 change;
#P message 805 75 14 196617 2;
#P message 752 74 14 196617 1;
#P newex 752 50 63 196617 split 0 0.49;
#P newex 752 126 63 196617 gate 2;
#P newex 752 25 22 196617 r y;
#P newex 855 27 22 196617 r x;
#P comment 476 98 46 196617 PHLEG;
#B color 14;
#P comment 356 95 47 196617 MELANC;
#B color 14;
#P comment 241 94 46 196617 CHOLER;
#B color 14;
#P number 526 391 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 475 393 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user pictslider 461 419 118 109 2 2 2 2 SliderDefaultKnob.pct 0 SliderDefaultBkgnd.pct 0 2163 0 0 6553700 1. 1.;
#P window linecount 2;
#P comment 587 513 43 196617 x>50 y>50;
#P comment 411 537 43 196617 x>50 y>50;
#P comment 583 418 43 196617 x>50 y<50;
#P window setfont “Sans Serif” 12.;
#P window linecount 1;
#P comment 585 492 70 196620 100 , 10 0;
#B color 3;
#P comment 403 518 52 196620 0 , 10 0;
#B color 3;
#P comment 582 398 56 196620 100 , 0;
#B color 3;
#P window setfont “Sans Serif” 9.;
#P newex 592 576 22 196617 s y;
#P newex 460 579 22 196617 s x;
#P message 332 110 73 196617 read , loadram;
#P newex 319 131 105 196617 jit.qt.movie 320 340;
#P message 448 112 73 196617 read , loadram;
#P newex 438 134 105 196617 jit.qt.movie 320 240;
#P message 218 109 73 196617 read , loadram;
#P newex 200 127 105 196617 jit.qt.movie 320 240;
#P message 99 104 73 196617 read , loadram;
#P newex 81 126 105 196617 jit.qt.movie 320 240;
#P toggle 4 26 28 0;
#P newex 4 61 57 196617 qmetro 40;
#P window setfont “Sans Serif” 12.;
#P comment 405 398 41 196620 0 , 0;
#B color 3;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 403 417 43 196617 x<50 y<50;
#P window linecount 1;
#P comment 100 89 46 196617 SANG;
#B color 14;
#P comment 737 147 18 196617 1;
#P connect 5 0 4 0;
#P connect 4 0 90 0;
#P fasten 90 2 89 0 79 193 9 193;
#P connect 90 0 89 0;
#P connect 90 1 83 0;
#P fasten 4 0 6 0 9 84 86 84;
#P hidden connect 44 0 6 0;
#P hidden connect 43 0 6 0;
#P fasten 7 0 6 0 104 124 86 124;
#P connect 6 0 45 0;
#P connect 99 0 86 0;
#P connect 45 0 86 0;
#P fasten 96 0 92 0 283 528 128 528;
#P fasten 93 0 92 0 210 529 128 529;
#P connect 92 0 100 0;
#P connect 99 0 88 0;
#P fasten 86 0 88 0 86 371 168 371;
#P connect 88 0 84 0;
#P connect 85 0 84 0;
#P fasten 91 0 94 0 126 510 163 510 163 489 171 489;
#P connect 49 0 45 1;
#P connect 6 1 98 0;
#P fasten 4 0 8 0 9 84 205 84;
#P hidden connect 44 0 8 0;
#P connect 9 0 8 0;
#P hidden connect 43 0 8 0;
#P connect 8 0 46 0;
#P connect 46 0 86 1;
#P fasten 94 0 95 0 171 509 202 509 202 489 210 489;
#P connect 95 0 93 0;
#P connect 97 0 96 0;
#P fasten 87 0 88 1 315 366 284 366;
#P connect 50 0 46 1;
#P connect 47 0 87 0;
#P connect 99 0 87 0;
#P fasten 4 0 12 0 9 84 321 84 324 85;
#P hidden connect 44 0 12 0;
#P connect 13 0 12 0;
#P connect 12 0 47 0;
#P connect 48 0 87 1;
#P connect 51 0 47 1;
#P fasten 4 0 10 0 9 84 443 84;
#P hidden connect 44 0 10 0;
#P connect 11 0 10 0;
#P connect 10 0 48 0;
#P connect 53 0 14 0;
#P connect 23 0 22 0;
#P connect 22 0 53 0;
#P connect 22 0 77 0;
#P connect 52 0 48 1;
#P connect 22 1 78 0;
#P connect 24 0 22 1;
#P connect 54 0 15 0;
#P connect 22 1 54 0;
#P connect 81 0 56 0;
#P fasten 79 0 56 0 757 206 750 206;
#P connect 56 0 58 0;
#P connect 58 0 72 0;
#P connect 72 0 73 0;
#P connect 73 0 57 0;
#P connect 29 0 31 0;
#P connect 31 0 32 0;
#P connect 32 0 34 0;
#P fasten 33 0 34 0 810 97 757 97;
#P connect 34 0 30 0;
#P connect 30 0 79 0;
#P connect 82 0 59 0;
#P fasten 30 0 59 0 757 163 803 163;
#P connect 59 0 61 0;
#P connect 61 0 72 1;
#P connect 72 1 74 0;
#P connect 74 0 60 0;
#P connect 31 1 33 0;
#P connect 28 0 30 1;
#P connect 30 1 80 0;
#P fasten 36 0 62 0 860 175 890 175 890 206 856 206;
#P connect 80 0 62 0;
#P connect 62 0 64 0;
#P connect 64 0 72 2;
#P connect 72 2 75 0;
#P connect 75 0 63 0;
#P connect 28 0 37 0;
#P connect 37 0 38 0;
#P connect 38 0 40 0;
#P fasten 39 0 40 0 913 96 860 96;
#P connect 40 0 36 0;
#P connect 36 0 81 0;
#P fasten 36 1 65 0 913 173 948 173 948 209 909 209;
#P connect 30 1 65 0;
#P connect 65 0 67 0;
#P connect 67 0 72 3;
#P connect 72 3 76 0;
#P connect 76 0 66 0;
#P connect 37 1 39 0;
#P connect 29 0 36 1;
#P connect 36 1 82 0;
#P pop;

#131109
May 18, 2008 at 3:57pm

Hi Beatriz,

First, check out Vade’s quicktime playback optimization methods. The thread is here:

http://www.cycling74.com/forums/index.php?t=msg&goto=122378&rid=3109&S=38ba933040f9061977d35aa1cc28c834&srch=quicktime+optimization#msg_122378

And patches on his site:

http://abstrakt.vade.info/?p=147

Also, you may want to do the jit.op on the GPU as well. Below is a patch similar to one in my other recent post, but using one of Vade’s optimizations and a shader modified slightly from the Jitter Tutorial 43 (this is attached).

Having said that though, I’m getting 59-60 fps from your patch with the qmetro set to 16.

I’m on a Macbook Pro Core2Duo 2.16GHz, 2Gb RAM, with GeForce 8600M GT (512 MB) — so maybe we’re missing some details here.

best,
Zachary

max v2;
#N vpatcher 510 350 1279 836;
#P window setfont “Sans Serif” 12.;
#N vpatcher 20 74 941 423;
#P window setfont “Sans Serif” 12.;
#P message 535 47 37 196620 read;
#P window linecount 3;
#P newex 661 173 195 196620 jit.gl.slab fader @file cc.uyvy2rgba.lite.jxs @automatic 0 @dimscale 2. 1.;
#P window linecount 2;
#P newex 661 120 199 196620 jit.qt.movie @adapt 1 @unique 1 @colormode uyvy @vol 0.;
#P user ubumenu 640 84 52 196620 0 1 1 0;
#X add read;
#X add start;
#X add stop;
#X prefix_set 0 0 0;
#P window linecount 3;
#P newex 452 173 195 196620 jit.gl.slab fader @file cc.uyvy2rgba.lite.jxs @automatic 0 @dimscale 2. 1.;
#P window linecount 2;
#P newex 452 120 199 196620 jit.qt.movie @adapt 1 @unique 1 @colormode uyvy @vol 0.;
#P user ubumenu 431 84 52 196620 0 1 1 0;
#X add read;
#X add start;
#X add stop;
#X prefix_set 0 0
0;
#P window linecount 3;
#P newex 243 173 195 196620 jit.gl.slab fader @file cc.uyvy2rgba.lite.jxs @automatic 0 @dimscale 2. 1.;
#P window linecount 2;
#P newex 243 120 199 196620 jit.qt.movie @adapt 1 @unique 1 @colormode uyvy @vol 0.;
#P user ubumenu 222 84 52 196620 0 1 1 0;
#X add read;
#X add start;
#X add stop;
#X prefix_set 0 0
0;
#P window linecount 3;
#P newex 34 173 195 196620 jit.gl.slab fader @file cc.uyvy2rgba.lite.jxs @automatic 0 @dimscale 2. 1.;
#P window linecount 2;
#P newex 34 120 199 196620 jit.qt.movie @adapt 1 @unique 1 @colormode uyvy @vol 0.;
#P window linecount 1;
#P newex 357 43 56 196620 r toMov;
#P newex 661 256 46 196620 s vid4;
#P newex 452 256 46 196620 s vid3;
#P newex 243 256 46 196620 s vid2;
#P newex 34 256 46 196620 s vid1;
#P user ubumenu 13 84 52 196620 0 1 1 0;
#X add read;
#X add start;
#X add stop;
#X prefix_set 0 0
0;
#P window linecount 0;
#P comment 17 34 323 196620 using one of Vade’s quicktime optimization methods;
#P connect 18 0 7 0;
#P connect 6 0 7 0;
#P connect 1 1 7 0;
#P connect 7 0 8 0;
#P connect 8 0 2 0;
#P connect 18 0 10 0;
#P connect 6 0 10 0;
#P connect 9 1 10 0;
#P connect 10 0 11 0;
#P connect 11 0 3 0;
#P connect 18 0 13 0;
#P connect 12 1 13 0;
#P connect 6 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 4 0;
#P connect 15 1 16 0;
#P connect 18 0 16 0;
#P connect 6 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 5 0;
#P pop;
#P newobj 457 73 63 196620 p movies;
#B color 12;
#P message 250 259 31 196620 min;
#P newex 599 100 77 196620 s loadstuff;
#P newex 599 69 62 196620 loadbang;
#N vpatcher 39 174 483 377;
#P origin 11 0;
#P window setfont “Sans Serif” 12.;
#P newex 35 45 58 196620 r toSlab;
#P newex 335 73 45 196620 r vid4;
#P newex 240 73 45 196620 r vid3;
#P newex 145 73 45 196620 r vid2;
#P newex 50 73 45 196620 r vid1;
#P newex 50 109 295 196620 jit.gl.slab fader @file fourwaymix.jxs @inputs 4;
#P outlet 50 146 15 0;
#P connect 2 0 1 0;
#P connect 6 0 1 0;
#P connect 1 0 0 0;
#P connect 3 0 1 1;
#P connect 4 0 1 2;
#P connect 5 0 1 3;
#P pop;
#P newobj 367 73 85 196620 p slab_stuff;
#B color 12;
#P comment 612 265 59 196620 MASTER;
#P comment 392 265 83 196620 VIDEO MIXER;
#N vpatcher 14 187 505 581;
#P window setfont “Sans Serif” 12.;
#P window linecount 1;
#P newex 335 254 70 196620 zl group 4;
#P newex 335 223 32 196620 t 0.;
#P newex 335 192 40 196620 uzi 4;
#P newex 122 241 44 196620 zl reg;
#P window linecount 0;
#N vpatcher 20 74 270 304;
#P window setfont “Sans Serif” 12.;
#P newex 95 80 82 196620 prepend set;
#P newex 50 50 55 196620 t l 0.;
#P newex 50 110 37 196620 t b f;
#P newex 50 80 32 196620 iter;
#P newex 50 141 65 196620 accum 0.;
#P inlet 50 30 15 0;
#P outlet 50 168 15 0;
#P connect 1 0 5 0;
#P connect 5 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 2 0;
#P connect 6 0 2 0;
#P connect 2 0 0 0;
#P connect 4 1 2 1;
#P connect 5 1 6 0;
#P pop;
#P newobj 122 88 67 196620 p getSum;
#B color 12;
#P newex 190 54 37 196620 t b f;
#P newex 122 274 105 196620 vexpr $f1 * $f2;
#P newex 122 154 223 196620 if $f1 != 0. then $f1 else out2 bang;
#N vpatcher 360 611 689 790;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P message 56 92 115 196617 sendshader flush_cache;
#P inlet 41 39 15 0;
#P message 41 68 235 196617 param a $1 , param b $2 , param c $3 , param d $4;
#P comment 107 35 111 196617 parameters as scalars;
#P window linecount 1;
#P newex 41 116 46 196617 s toSlab;
#P connect 3 0 2 0;
#P connect 2 0 0 0;
#P connect 4 0 0 0;
#P pop;
#P newobj 122 316 99 196620 p slab1Params;
#B color 12;
#P hidden newex 28 124 76 196620 r loadstuff;
#P hidden message 28 154 91 196620 scalarmode 1;
#P newex 122 192 164 196620 vexpr $f2 / $f1;
#P inlet 190 29 15 0;
#P newex 122 54 30 196620 t l l;
#P newex 122 119 68 196620 change 0.;
#P inlet 122 29 15 0;
#P hidden connect 6 0 5 0;
#P connect 0 0 2 0;
#P connect 2 0 11 0;
#P connect 11 0 1 0;
#P connect 1 0 8 0;
#P hidden connect 5 0 4 0;
#P connect 8 0 4 0;
#P connect 4 0 12 0;
#P connect 10 0 12 0;
#P fasten 15 0 12 0 340 283 308 283 308 228 127 228;
#P hidden connect 5 0 9 0;
#P connect 12 0 9 0;
#P connect 9 0 7 0;
#P connect 3 0 10 0;
#P connect 10 1 9 1;
#P connect 2 1 4 1;
#P connect 8 1 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P pop;
#P newobj 250 417 109 196620 p avg&normalize;
#B color 12;
#P user multiSlider 618 285 45 122 0. 1. 1 2681 47 0 1 3 0 70 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 250 285 359 122 0. 1. 4 2681 47 0 1 3 0 70 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 125 150 57 196620 s toMov;
#P user jit.fpsgui 92 214 60 196620 0;
#P window linecount 2;
#P newex 367 103 179 196620 jit.gl.videoplane fader @color 1 1 1 1 @scale 1 0.75 1.;
#P window linecount 1;
#P newex 92 182 267 196620 jit.gl.render fader @erase_color 0. 0. 0. 1.;
#N vpatcher 10 59 278 258;
#P window setfont “Sans Serif” 12.;
#P message 99 112 89 196620 fullscreen $1;
#P toggle 99 91 15 0;
#P newex 99 63 47 196620 sel 27;
#P newex 99 35 40 196620 key;
#P outlet 99 139 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 0 0;
#P pop;
#P newobj 367 154 81 196620 p fullscreen;
#B color 12;
#P newex 92 119 76 196620 t b b erase;
#P comment 25 438 153 196620 (they always sum to 1.);
#P newex 367 182 364 196620 jit.window fader @size 640 480 @pos 10 50 @fsmenubar 0;
#P window linecount 3;
#P comment 43 311 206 196620 think of these as a depiction of each video’s proportional presence in the final matrix —>;
#P window linecount 1;
#P comment 25 418 223 196620 levels proportionally normalized —>;
#P toggle 92 59 24 0;
#P newex 92 89 66 196620 qmetro 2;
#P window setfont “Sans Serif” 18.;
#P comment 179 22 407 196626 PROPORTIONAL-PRESENCE FOUR-VIDEO MIXER;
#P connect 2 0 1 0;
#P connect 1 0 7 0;
#P connect 7 0 9 0;
#P connect 7 2 9 0;
#P connect 9 0 11 0;
#P connect 7 1 12 0;
#P connect 21 0 13 0;
#P connect 13 0 15 0;
#P fasten 14 0 15 1 623 412 354 412;
#P connect 18 0 10 0;
#P connect 8 0 5 0;
#P connect 19 0 20 0;
#P pop;

#131110
May 19, 2008 at 4:06pm

Hi
3 issues from a confused mind!

1)))
I have been reading carefully the fantastic documentation by Vade about QT optimization, which by the way really works.
What surprised me, is that while playing the patches made by Vade, I wasn’t getting the fps rate that he specifies. For example, in one of them he writes that he gets a speed of amply 60 fps, and in my computer I hardly get 25 fps!!.
Is this a problem of my graphic card, a GMA 950?? I have tested these same patches in other (better) computer, a Mac Book Pro with NVIDIA graphic card and the speed was the correct one,60 fps, so evidently faster. I post in the .zip file the configuration of my “performance options”, maybe I can change them and somehow make my graphic card faster (???)

Also I noticed that using Max 5/ Jitter 1.7 instead of Max 4.6/Jitter 1.5.2. in my computer increases speed.

2)))))
I post in the .zip file included my patch again,made by the way with Max 4.6 / Jitter 1.5.2 and using this QT optimization and Zachary’s mixing patch. Still, something is not working properly, it seems that only one clip appears in the screen and the working is not being made. Can you find the problem?

3))))
I must have messed up something with all this shaders issue!! I changed my patch to a different folder and suddenly I got messages in the max window like :
“error: jit.gl.shader:cant find
patch>cc.uyvy2rgba.lite.jxs”

Actually, I copied the shaders file(s) needed to that location.
Where are supposed the shaders to be located??? in the patch folder? they exist already in libraryapplication supportcycling74jitter-shaders (which by the way I included in my search path in file preferences)
…..still more and more confused about the File Preferences.

Many questions here, hope to hear some nice suggestions!

Greetings
Beatriz

#131111
May 19, 2008 at 5:22pm

> What surprised me, is that while playing the patches made by Vade, I wasn’t getting the fps rate that he specifies. For example, in one of them he writes that he gets a speed of amply 60 fps, and in my computer I hardly get 25 fps!!.
> Is this a problem of my graphic card, a GMA 950??

more than likely. gma 950 ain’t so hot.

> Also I noticed that using Max 5/ Jitter 1.7 instead of Max 4.6/Jitter 1.5.2. in my computer increases speed.

hurray!

> Actually, I copied the shaders file(s) needed to that location.
> Where are supposed the shaders to be located???

jitter core shaders are located in the cycling ’74 folder, so they are in the default search path. any other shaders need to be added to the search path, or in the same folder as the patch that’s loading them.

#131112
May 20, 2008 at 11:19am

well, questions 1 and 3 are solved,thanks robtherich! ;)

Still I can’t guess what’s wrong with my patch and why the clips don’t mix in the jit.window. I guess the problem must be in the parameterers I send to jit.gl.slab, it seems like the sliders didn’t work….

Beatriz

#131113
May 20, 2008 at 3:39pm

Your earlier patch works fine on my MacBook Pro (with a GeForce 8600M GPU). It might be your card again causing the problem. It sounds to me like you might be better of NOT relying on slab processing with your current video card. You might just want to remove the jit.slabs and go back to a
jit.expr @expr “in[0]+in[1]+in[2]+in[3]“

best,
Zachary

#131114
May 22, 2008 at 9:21am

thank you Zachary, I will follow your advice

Beatriz

#131115
May 22, 2008 at 8:08pm

but do some comparisons first before jumping fully into one or the other.

i know the 950 won’t be able to do advanced slab processing, but some of the basic ones it might handle just fine.

only way to know for sure is to test it out.

#131116

You must be logged in to reply to this topic.