Crop a 5:4 monitor clip to 9:16: width 0.45 and the exact sizes
A 5:4 clip crops to 9:16 with width 0.45 and x 0.275. At 1280x1024 that is 576x1024, at 1600x1280 it is 720x1280. Two sizes, one body, and why it is exact.

Crop a 5:4 clip (1280x1024 or 1600x1280) to 9:16 with Sume video filter by keeping the full height and setting width to 0.45, x to 0.275. The result is 576x1024 or 720x1280. Both are exactly 9:16, which is rarer than it sounds: 0.45 gives whole, even pixels for any 5:4 size whose height is a multiple of 16.
The sum
5:4 is 1.25 wide per unit of height and 9:16 is 0.5625. The ratio is 0.5625 / 1.25 = 0.45. The centred offset is (1 - 0.45) / 2 = 0.275. Because 0.45 has no repeating decimals, the six-decimal value the compiler writes is 0.450000, and the crop width is floor(iw * 0.45 / 2) * 2 pixels. That is 576 for a 1280 frame and 720 for a 1600 frame, both already even.
| Source | Crop width | Output | Exactly 9:16 |
|---|---|---|---|
| 1280x1024 | 576 | 576x1024 | yes |
| 1600x1280 | 720 | 720x1280 | yes |
| 1920x1536 | 864 | 864x1536 | yes |
| 1000x800 | 450 | 450x800 | yes |
Where 5:4 footage comes from
Old 17 and 19 inch monitors, some kiosks and point-of-sale screens, and a few medical and industrial displays. A typical request is a vertical teaser cut from a recording of a back-office tool. Content in a 5:4 window is usually dense, so the crop removes more than half the width. Decide whether the key panel is in the middle 45 percent. If it sits left, keep width and change x to 0; if right, use 0.55.
Resize and ship
A 576x1024 clip is below a 1080x1920 delivery frame, so add a scale. You can do it in the same request with a filtergraph, which runs after the ops. Be aware of what upscaling does to small UI text: it softens it. If the source is 1600x1280 or larger, the strip is already 720 wide and the scale is gentler. For Timeline 1.0 you can also skip the scale and let a slot's fit do the work, but that is a cover fit, which may crop again.
{
"video_url": "https://media.sume.com/artifacts/artf_demo/kiosk.mp4",
"ops": [
{ "op": "crop", "x": 0.275, "y": 0, "width": 0.45, "height": 1 }
],
"filtergraph": "scale=1080:1920"
}Limits
The source must be 300 s or less (output_duration_exceeded otherwise). The job costs $0.02, and you can run the body through /v1/video-filter/check without charge first. Each op's width and height must be at least 0.05, and x + width must not pass 1, or the call fails with video_filter_crop_out_of_bounds.
Sources
Related posts
More in Media tools
- How many 6-second clips fill a 3-minute Short, Reel or TikTok ad?
A 3-minute Short needs 30 six-second clips, a 20-minute Reel 200, a 10-minute TikTok ad 100. Slot limits, chunked renders and Timeline cost for each.
- Pan and scan a 1.85:1 trailer to vertical: one crop per shot
For a 1.85:1 trailer, trim each shot, then crop it at its own x offset: width 0.304054, x 0 to 0.695946. A three-shot plan with job count, cost and order.
- What prompt makes a 15-second Black Friday ad track?
Write the track as three timed sections: build, drop, sting. The Music Router takes it for a flat $0.125; the whole 15-second ad is $2.305 on Sume.
- Mute a clip or extract its audio? Trim audio drop vs audio detach
Video trim with audio drop returns a silent MP4; audio detach returns a separate wav or mp3 and leaves the video alone. Which to use, and the warnings.
Written by Sume