I'm looking to composite a video with ffmpeg that places the video in the centre no matter what the composited video's aspect ratio/size.
The "background" video will always be 16:9 and 1920x1080px. I won't know the aspect ratio or size of the overlay video as it will be user uploaded and could be any size/ratio.
Here's an example of what I'm trying to achieve:
This is the background image:
Now I want to overlay a video over the top:
Essentially no matter what the dimensions I want to ensure it's always resized to fit within 1920x1080 and in addition ensure it's always centred.
Finally, if the uploaded video is also 16:9 it should simply overlay the entire video: