Forums > Jitter

alpha mix

August 13, 2008 | 7:07 pm

hi,

i try to mix up to 8 videos which have additional alpha channel (videocollage).

- is there a "faster" codec which supports additional alpha cannel than "animation" for jitter ?

- can i use openGL for mixing (jit.gl.slab) ?

- is it possible to mix more than 2 streams with jit.alphablend at the same time ? if not is there another way ?

many thanks in advance

Pe


August 14, 2008 | 2:03 am

Slabs are definitely a good way to go for this. With slabs and
jit.gl.videoplane, the alpha channel doesn’t have to be contained in
the same texture as the video RGB data. Here’s a simple
multitexturing videoplane example, but you could easily do more
flexible stuff with a custom shader:

– Pasted Max Patch, click to expand. –

August 14, 2008 | 10:41 am

hi wesley,

thank you a lot to point me in the right direction…

it works fine with the "apply decal" funtkion for jit.gl.texture

any codecs recommends that hold a alphacannel ?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 231 440 38 196617 zl join;
#P newex 513 281 102 196617 route jit_gl_texture;
#P user ubumenu 544 181 100 196617 0 1 1 0;
#X add replace;
#X add decal;
#X add modulate;
#X add blend;
#X add combine;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P newex 589 206 71 196617 prepend apply;
#P message 555 208 30 196617 read;
#P newex 513 255 83 196617 jit.gl.texture jit;
#P newex 513 231 105 196617 jit.qt.movie 320 240;
#P newex 513 207 38 196617 r bang;
#P newex 332 283 102 196617 route jit_gl_texture;
#P newex 167 284 102 196617 route jit_gl_texture;
#P newex 106 349 38 196617 zl join;
#P user ubumenu 77 155 100 196617 0 1 1 0;
#X add replace;
#X add decal;
#X add modulate;
#X add blend;
#X add combine;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P newex 122 180 71 196617 prepend apply;
#P user ubumenu 363 183 100 196617 0 1 1 0;
#X add replace;
#X add decal;
#X add modulate;
#X add blend;
#X add combine;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P newex 408 208 71 196617 prepend apply;
#P message 374 210 30 196617 read;
#P newex 332 257 83 196617 jit.gl.texture jit;
#P newex 332 233 105 196617 jit.qt.movie 320 240;
#P newex 332 209 38 196617 r bang;
#P user ubumenu 203 184 100 196617 0 1 1 0;
#X add replace;
#X add decal;
#X add modulate;
#X add blend;
#X add combine;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P newex 248 209 71 196617 prepend apply;
#P newex 170 412 38 196617 zl join;
#P message 209 211 30 196617 read;
#P newex 167 258 83 196617 jit.gl.texture jit;
#P newex 167 234 105 196617 jit.qt.movie 320 240;
#P newex 167 210 38 196617 r bang;
#P message 97 207 30 196617 read;
#P newex 145 486 192 196617 jit.gl.videoplane jit @transform_reset 2;
#P newex 57 258 83 196617 jit.gl.texture jit;
#P newex 56 231 105 196617 jit.qt.movie 320 240;
#P newex 56 207 38 196617 r bang;
#P toggle 412 80 15 0;
#P newex 412 60 38 196617 sel 27;
#P newex 412 40 40 196617 key;
#P message 412 99 70 196617 fullscreen $1;
#P newex 412 118 144 196617 jit.window jit @depthbuffer 1;
#P newex 102 85 179 196617 jit.gl.handle jit @inherit_transform 1;
#P message 102 58 34 196617 reset;
#P newex 115 123 38 196617 s bang;
#P newex 29 122 79 196617 jit.gl.render jit;
#P newex 29 88 50 196617 t b erase;
#P newex 29 58 57 196617 qmetro 33;
#P toggle 29 33 15 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 2 1 3 0;
#P connect 6 0 3 0;
#P connect 16 0 13 0;
#P connect 12 0 13 0;
#P connect 30 0 14 0;
#P fasten 13 0 14 0 62 247;
#P connect 5 0 6 0;
#P connect 14 0 32 0;
#P connect 2 0 4 0;
#P fasten 31 1 30 0 127 175 127 175;
#P connect 33 0 32 1;
#P connect 42 0 15 0;
#P connect 17 0 18 0;
#P connect 20 0 18 0;
#P connect 22 0 19 0;
#P connect 18 0 19 0;
#P connect 19 0 33 0;
#P connect 32 0 21 0;
#P connect 34 0 21 1;
#P connect 21 0 42 0;
#P fasten 23 1 22 0 253 204 253 204;
#P connect 41 0 42 1;
#P connect 27 0 25 0;
#P connect 24 0 25 0;
#P connect 25 0 26 0;
#P connect 28 0 26 0;
#P connect 26 0 34 0;
#P fasten 29 1 28 0 413 203 413 203;
#P connect 9 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 8 0;
#P connect 8 0 7 0;
#P connect 35 0 36 0;
#P connect 38 0 36 0;
#P connect 39 0 37 0;
#P connect 36 0 37 0;
#P connect 37 0 41 0;
#P fasten 40 1 39 0 594 201 594 201;
#P window clipboard copycount 43;


August 14, 2008 | 2:58 pm

animation


August 18, 2008 | 5:12 am

and multiple-frame png and gif.

On Aug 14, 2008, at 10:58 PM, Robert Ramirez wrote:

>
> animation


October 22, 2012 | 2:58 am

Hello,

I’m also doing a video collage project, however I would like to mix 1280 x 720 video with alpha channels (animation codec), AND have the ability to sample either video AND adjust the layer order.

In the patch pasted below, I used the jit.gl.texture tricks that were mentioned above, but I’m getting white pixels around the edges of the video layers. Any ideas on what I could do to get rid of these?

– Pasted Max Patch, click to expand. –

Also, since I am using video which already has an alpha channel, am I barred from using the uyvy colormode/shader?
i.e. [jit.gl.slab blah @file cc.uyvy2rgba.jxs @dimscale 2 1]

Is there anything else I should try for optimization?


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