I am working on a video editing application where each video is split into a square so that no part of the video is cropped. For this, in the case of portrait video, it contains a black part on the left and right, and for landscape video, it contains a black part on top and bottom of the video. The black parts are part of the video, they are not for AVPlayerViewController. Here is an example 
I need to cover these black parts with some CALayers.
What will be the frame ( CGRect ) CALayer?
I get the size of the video using a property naturalSizethat includes black parts.
? ( ) CGRect ?