Why is my output 2274x1280 instead of 1920x1080?
The accepted Stack Overflow answer sizes the background from the input with scale=ih*16/9:-1, so the output size follows the input. On the 720x1280 phone clip it wrote a 2274x1280 file:
ffmpeg -i vertical.mp4 -lavfi "[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16" out.mp42274x1280, SAR 9099:9100. For every frame it blurred a 2275x4044 layer, 4.4 times the pixels of a 1920x1080 frame, and then cropped most of it away.
Name the size you want in both scale filters, as the commands at the top do. force_original_aspect_ratio=increase plus crop fills the frame, -2 keeps the video's own shape, and the output is 1920x1080 whatever the input.




