Short answerWith ffmpeg you crop a 16:9 video to 9:16 in one line, or center it on a blurred background. Then compress and upload.
Center crop
ffmpeg -i in.mp4 -vf "scale=-2:1920,crop=1080:1920" -c:a copy out.mp4
Full video over a blurred background
ffmpeg -i in.mp4 -filter_complex "[0:v]scale=1080:1920,boxblur=20[bg];[0:v]scale=1080:-2[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2" -c:a copy out.mp4
Compression for upload
ffmpeg -i out.mp4 -c:v libx264 -crf 20 -pix_fmt yuv420p -movflags +faststart final.mp4
Always check the result on your own file. For the video plan use the vertical video planner skill; export assets as in animated assets with Claude Code.
Frequently asked questions
How do I convert a 16:9 video to 9:16 with ffmpeg?
With scale and crop: ffmpeg -i in.mp4 -vf "scale=-2:1920,crop=1080:1920" out.mp4, or with a blurred background using filter_complex.
What resolution do Shorts need?
The vertical format is 1080×1920, a 9:16 ratio.