Forums > Jitter

Mixing More Than Two Videos Together?!?

April 23, 2013 | 3:34 pm

Hi,
Been working on this patch, but I now wanna mix/overlap 6 videos, instead of 2.
Is this possible, if so, does anyone know how?

As always, thanks in advance for any help/advice.

MissMax

Here it is…

– Pasted Max Patch, click to expand. –

April 23, 2013 | 5:55 pm

i’m assuming you mean 6 simultaneous video feeds overlaid on top of each other.
the easiest way to do this is with an opengl context, and blending multiple jit.gl.videoplanes

the patch below gets you started with 3. you should probably turn the qt.movie -> jit.gl.videoplane into an abstraction, for easy editing and duplicating.

if your framerate is low, you will have to make some optimizations. searching the forum for "video optimizations" or something similar will yield much information.

also, check out the jit.gl.hap external, for an efficient video playback alternative:

http://cycling74.com/toolbox/jit-gl-hap/

– Pasted Max Patch, click to expand. –

April 24, 2013 | 8:30 pm

Thanks for your help.
I’ll have a play around with your patch, it looks great!
MissMax :)


April 28, 2014 | 1:42 pm

the patch above mixing 3 videaos is great stuff for me, thanks, but I’m having a problem with image quality which seems to be falling very, very low

I’ll be really thankfull for any indication


April 28, 2014 | 2:11 pm

set @adapt 1 on each of the qt.movie objects to tell it to output frames at the resolution of the input file.


May 3, 2014 | 3:36 pm

sorry for another stupid question: can you help with saving the resulting video mix on disk with, eg, jit.qt.record or any other video recording object?

thx a lot


May 3, 2014 | 8:13 pm

jit.gl.asyncread


May 4, 2014 | 12:43 am

thank you very much for this indication: if I may, I don’t know where to position this in the patch. Should I replace the jit.qt.record with it?
I’m afraid I don’t really understand what I doing… sorry


May 4, 2014 | 10:03 pm

what wrong with cascading jit.op or jit.alphablend?


May 5, 2014 | 4:23 am

tanks a lot, Roman, for these excellent propositons for mixing video; however I still have two problems: image quality in fulscreen mode and getting results on disk properely


May 6, 2014 | 4:05 am

i am not sure if they are excellent, maybe it gets tricky with 19 sources. with 16 or 32, however, it seems the most straightforward solution.

about CPU consumption, no idea.

and of course it will all only work when the frames are in sync. and if they are not, i would suggest to change that per channel _before mixing.

-110


May 6, 2014 | 8:37 am

just throw an gl.asyncread in your patch, and add it to the context you want to readback from. it will output a matrix for every draw-frame.

you will also have to disable @fsaa on your jit.window, if it’s enabled.

many people capturing render contexts will advise using a 3rd party software, like iShowU.
the Syphon recorder is a free one that works quite well, when used with the syphon externals.

searching the forum for syphon will yield plenty of examples of its usage.


May 7, 2014 | 7:19 am

thank you so much, dear Rob and Roman, your quick replies are highly appreciated
however, I’h having a hard time understanding you guys – the patch I’m working on was primarily musical, and I now understand that I need to learn quite lot on jitter, quicktime, gl

‘hope I’ll manage

best

pdf

can you explaine the -110 signature?


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