.
playing on layer 1. are there any ffmpeg option to return the dimension (left, top, width and height ) of the black area. i want to use those values to scale the layer 2 to squeeze back. i can do the scaling with constant values, but i want the scaling of layer 2 dependent on the dimension of layer 1’s black area.
Layer 1 --> PLAY 1-1 ATTACHED_FILE
Layer 2 --> PLAY 1-2 MOVIE_FILE
I don‘t think so, as it would need a AI to messure the black area. And I don‘t think that FFMPEG has that. You better use a value measured out in Photoshop.
This will definitely not be possible to do in CasparCG solely. Maybe you’ll be able to generate the coordinates using standalone ffmpeg and video filters although I think this is not the right forum for a question like that.
Perhaps if you take the negative of the image (preferably the negative of the alpha channel) and then use the output of the cropdetect filter in ffmpeg you’ll get something useful?