# Asset to Vertical Short with ffmpeg

> How to turn an animated asset into a 9:16 vertical video for Shorts, Reels and TikTok with ffmpeg: crop, blurred background and compression.

Status: metodo · Updated: 2026-11-18

**TL;DR:** With 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

```bash
ffmpeg -i in.mp4 -vf "scale=-2:1920,crop=1080:1920" -c:a copy out.mp4
```

## Full video over a blurred background

```bash
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

```bash
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](/en/skills/shorts-planner); export assets as in [animated assets with Claude Code](/en/guide/studio-animated-assets-claude-code).

## FAQ

### 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.
