simple mix of 2 videos


    Mar 12 2020 | 8:07 pm
    I guess it's stupid, but: I want to crossfade 2 images for a presentation, but some are videos, some are photos. I can manage to crossfade when all sizes are similar (i.e. all 1920x1080 or alike), but some of my photos are portrait format. I can manage to add preserve aspect to a jitter-object, but then I cannot crossfade anymore, unless I agree (jit.gl.layer) that one image is with strong colours and the other is foggy or I can crossfade but a pic in portrait format gets stretched all over the screen. jit.xfade is not very helpful either. Does anyone have an advice i attach the file that I came up with as closest to what I want...
    Many thanks HP

    • Mar 13 2020 | 12:30 am
      You could use 2 jit.gl.layer objects, each with their own content and control the opacity of each layer.
    • Mar 13 2020 | 9:30 am
      Thank you very much, although I have to admit another problem pops up now. How can I get a total blackout. I need this patch for a presentation app I built for sound and images (a better "keynotes" or "PowerPoint" – if you are interested I send you a copy when done). Sometimes I need the screen to be black and the again to show 1 image or a series of images being crossfaded. Any idea how to get it blacked out? I tried several things in your patch but I cannot find a way. Besides the documentation for these jitter objects is not very good, in the help file for example is not mentioning of the "color $1 $2 $3 $4" message.
      Hope you have a suggestion and am looking forward to hearing from you again.
      Best, Hans Peter
    • Mar 13 2020 | 11:09 am
      Hi Pedro, I found a solution... many thanks again, have a good day and stay healthy
    • Mar 13 2020 | 3:03 pm
      Hi Peter. You could just fade out all layers or add another blank/black jit.gl.layer above the others. Also, usually the background of jit.world or jit.gl.render is dark grey, so you could initialize jit.world with the following argument: jit.world @erase_color 0. 0. 0. 1. Take care!
    • Mar 13 2020 | 8:27 pm
      Hi Pedro, thanks again, but as I said I managed. If you are interested I add the patch which has comments for you. I really appreciate your help, many thanks and in case you are interested in a PowerPoint that can play files with up to 64 tracks and videos playing parallel and sounds not being stopped when the next image comes and vice versa, let me know, I am happy to send you my patch.
      All the best
      Hans Peter
    • Mar 13 2020 | 8:28 pm