Cropping Black Bars of VideoFile

Thu Sep 23, 2021 12:24 pm

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!
Attachments
Capturar.PNG
Capturar.PNG (103.82 KiB) Viewed 366 times
olazzzzz
 
Posts: 12
Joined: Fri Sep 25, 2020 10:40 am

Re: Cropping Black Bars of VideoFile

Thu Sep 23, 2021 8:37 pm

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.
Eric
Site Admin
 
Posts: 3211
Joined: Wed Apr 09, 2014 9:28 pm

Re: Cropping Black Bars of VideoFile

Fri Sep 24, 2021 1:23 pm

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!
olazzzzz
 
Posts: 12
Joined: Fri Sep 25, 2020 10:40 am

Re: Cropping Black Bars of VideoFile

Fri Sep 24, 2021 5:27 pm

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.
Terry Payman
 
Posts: 648
Joined: Sun Sep 14, 2014 8:15 am
Location: UK

Re: Cropping Black Bars of VideoFile

Sun Sep 26, 2021 10:02 am

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.
Valis
 
Posts: 19
Joined: Thu Feb 11, 2021 6:37 am

Re: Cropping Black Bars of VideoFile

Mon Sep 27, 2021 2:33 pm

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.
olazzzzz
 
Posts: 12
Joined: Fri Sep 25, 2020 10:40 am

Return to General Discussion

© 2021 Color & Music, LLC • This web site is mobile-friendly