Page 1 of 1

Cropping Black Bars of VideoFile

Posted: Thu Sep 23, 2021 12:24 pm
by olazzzzz
Hi everyone,

I have made a video with a musical score (a sequence of jpgs, basically). Because the different pictures have different sizes, the video I got at the end has black bars of different sizes, depending on the score being shown. So cropping the videofile won't work.
The idea would be for any score to be surrounded by the background color, or in other words to get rid of the black bars.
Is there a way to do this?

Thank you again!

Re: Cropping Black Bars of VideoFile

Posted: Thu Sep 23, 2021 8:37 pm
by Magic
If you are asking how to set a background color, you can just use a Polygon module, Scale it to fill the screen, and then set the color to whatever you want.

Re: Cropping Black Bars of VideoFile

Posted: Fri Sep 24, 2021 1:23 pm
by olazzzzz
Hmm, no, I'm asking if I can get rid of black bars on a videofile, not by cropping it but by another process. I placed the red background just to make it clear that there are black bars surrounding the score.
Thank you for the help!

Re: Cropping Black Bars of VideoFile

Posted: Fri Sep 24, 2021 5:27 pm
by Terry Payman
I think you may need to remake your video file, but with a green backgound rather than black in the regions you wish to make transparent when the file is played in Magic. Use the Chromakey module to render these green regions transparent.

Re: Cropping Black Bars of VideoFile

Posted: Sun Sep 26, 2021 10:02 am
by Valis
If the jpegs have nothing behind them and you enable alpha, there's no need for green/colorkey.

However, why not just scale the jpeg sequence vertically? I presume the sequence is played from a single module, so apply a scale modifier on that output and scale to fit. Judging from the treble clef it needs to be scaled anyway.

Re: Cropping Black Bars of VideoFile

Posted: Mon Sep 27, 2021 2:33 pm
by olazzzzz
Hi everyone,

Thank you very much for all your answers.
I tried the approach Terry recommended and it worked perfectly.
Thank you again, community support is one of the things that makes Magic great.