I have an image which is a frame of 1024×1024 resolution which is half empty or transparent... I have various number of videos of different resolutions and I want to scale them to the empty space width and height(might be 1024×512) by keeping the aspect ratio of the video unchanged and I want to add padding for the empty space.
Whenever I'm trying to overlay the image over the video, the output video is in the resolution same as the input video's because of which half of the frame (input image) is getting cut in the output video.
I need help... I want the output video to have the resolution of the input image not of the input video's. It should more or less look like PIP. Can I do that on FFmpeg??