glue movie size issue

joshualeeginsburg's icon

hi -

i have a very simple patch that combines 4 videos into one screen using the glue object. the problem is that if the first video is not 320 x 240, its the only one that shows. if it is 320 x 240 then the setup works fine. weirdly, if a larger movie is placed in any of the other three slots, things work fine.

im sure the problem is related to the fact that the first video is passing through logic that scales it proportionally, whilst the others are passing direct from jit.qt.movie.i imagine my beginner use of open gl is also confusing things.

please can someone have a quick look and advise how i could solve this and keep my cpu load down as much as possible.

thanks,

josh

Patch controls: keys 1, 2, 3, 4 and 5 will select different states.

Max Patch
Copy patch and select New From Clipboard in Max.

glBeatriz's icon

I don´t know what you want to achieve exactly by scaling one of the videos, maybe you want to glue them in the same window, one video being bigger or smaller than the other three, and the rest adapting their size to this one video?

I think one of the problems of your patch was that there were a lot of [metro]. IMHO it can be a good practice to send the bangs as ordered as possible, then you are sure that no videos are overlapping each other, and you are not wasting resources. Besides, complex patches can get really confusing. So I in my example I put only 1 metro, or better, 1 qmetro, in your patch. a [qmetro] "waits until the whole process is done" before sending out another bang, and is very much used with openGL.
Hope it helps

Max Patch
Copy patch and select New From Clipboard in Max.