I'm wondering if there's a way to get a 4x4 matrix of videos with the video processor? I tried changing the number values to 0.25 from 0.5, but it didn't seem to work, so I imagine the code is a little more complicated than I think it is, but i don't really have the knowledge to fully grasp it, haha.
Here's the code to paste into the Video Processor plugin in an empty track with sixteen video tracks below it. I'm not sure what the & commands are for in the existing 2x2 matrix code but what I've done works.
Code:
// 4x4 matrix - draws up to 16 videos from previous tracks
x=0;
loop(16,
gfx_blit(input_track(x), 1 /* preserve aspect */,
(x%4)*project_w*0.25, ((x/4)%4)*project_h*0.25, // position
project_w*0.25,project_h*0.25 // output width and height
);
x += 1;
);
Last edited by jak352; 04-05-2020 at 10:21 AM.
Reason: Adding code tags
And for completeness I though I would add the code for getting 3x3 matrix of videos up.
Code:
// 3x3 matrix - draws up to 9 videos from previous tracks
x=0;
loop(9,
gfx_blit(input_track(x), 1 /* preserve aspect */,
(x%3)*project_w/3, ((x/3)%3)*project_h/3, // position
project_w/3,project_h/3 // output width and height
);
x += 1;
);
Last edited by jak352; 04-05-2020 at 10:21 AM.
Reason: Adding code tags
And because COVID-19 is inspiring everyone to make videos like this, here's a version where you can set the number of columns and rows by dragging rotary controls... Just put this code into the Video Processor effect on a track and have video tracks on the tracks below it.
Code:
// rows x cols matrix - draws up to 100 videos from previous tracks
//@param 1:cols "Columns" 1 1 10 5 1
//@param 2:rows "Rows" 1 1 10 5 1
x=0;
loop(cols*rows,
gfx_blit(input_track(x), 1 /* preserve aspect */,
(x%cols)*project_w/cols, ((x - (x%cols))/cols)*project_h/rows, // position
project_w/min(rows,cols),project_h/min(rows,cols) // output width and height
);
x += 1;
);
Last edited by jak352; 04-05-2020 at 10:22 AM.
Reason: Adding code tags
Thank you so much. Is there a way I could make videos to fix windows, so they would not auto fill, but stay only in its place?
Do you mean the videos disappear or hop around when a video item ends? The easiest way that works is to drag in an image file into the space in a track and drag the duration of the image item to fill out all the space. As long as all the tracks have no spaces the tracks will stay in stable positions on the grid. The video processor treats image files and video files in the same way fortunately.
Some more info? Where you got the videos? How did all these musicians perform? All in real-time, or all against some background reference? Where they uploaded their videos, probably youtube, but how you found all videos? Anything else I forgot. Great project.
Is it possible to keep a place "taken"?
So that when a new video comes in, it wouldn't rearrange everything.
I am trying to insert a black screen video, but i can't make it work well yet.
And i wondered if you have a better idea
No video necessary. Just a black image should do because it can be extended in time as needed. Just place it in the track where you want it as a placeholder and stretch it in time till the video (musician) starts.
Some more info? Where you got the videos? How did all these musicians perform? All in real-time, or all against some background reference? Where they uploaded their videos, probably youtube, but how you found all videos? Anything else I forgot. Great project.
Thanks.
They do this as amateurs for fun. They did record on a click track and a lot of time editing was needed. They sent original files through wetransfer mainly.