Crop a 16:9 video to a centered 9:16 strip: the crop fractions
For a centered 9:16 crop of a 16:9 video, send crop x 0.3418, y 0, width 0.3164, height 1 to Sume video-filter. 1:1 and 4:5 values are in the table.

Sume's crop op takes fractions of the source frame, not pixels. For a centered 9:16 strip from a 16:9 video, the fractions are x 0.3418, y 0, width 0.3164, height 1, because 9/16 divided by 16/9 is 81/256, or 0.3164, and half of what is left is 0.3418. The same arithmetic gives 1:1 and 4:5 in the table. This works for any 16:9 source, whatever its pixel size.
The crop rules are from the video filter docs, read 2026-10-02; the arithmetic is mine and you can check it against any frame size.
What are the crop rules?
Per the docs, x and y are in 0 to 1, width and height in 0.05 to 1, x + width and y + height must not exceed 1, and the compiler rounds to even sizes for yuv420p. A fraction that misses the frame, or a side under 0.05, is video_filter_crop_out_of_bounds. A crop op carries only op, x, y, width, height; any extra key is unsupported_filter_op_field.
curl -X POST https://api.sume.com/v1/video-filter \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: center-9x16-001" \
-d '{
"video_url": "https://media.sume.com/artifacts/artf_demo/wide.mp4",
"ops": [{ "op": "crop", "x": 0.3418, "y": 0, "width": 0.3164, "height": 1 }]
}'What does a crop to 16:9 source give for other ratios?
For a 16:9 source, a full-height centered crop to ratio r has width (r) divided by (16/9) and x of half the remainder.
| Target ratio | width | x | height |
|---|---|---|---|
| 9:16 | 0.3164 | 0.3418 | 1 |
| 4:5 | 0.4500 | 0.2750 | 1 |
| 1:1 | 0.5625 | 0.2188 | 1 |
Does the crop make a 1080x1920 file?
No. A crop returns the cropped pixels at their own size: a 1920x1080 source cropped to 0.3164 wide is about 608x1080. To reach 1080x1920, chain a scale filter in filtergraph (it runs after ops[]), or build the shot in Timeline 1.0 with output width and height and fit: "cover". Scaling a narrow crop up makes it softer, so crop from the highest-resolution source you have.
Sources
Related posts
More in Media tools
- Cut out a subject from a video frame: video frames, then RMBG
Pull a lossless PNG frame with Sume video frames (unbilled), then run RMBG 1.0 on it for a transparent PNG. Sume does not remove backgrounds from a whole video.
- Cut a Seedance 2.5 clip shorter: video-trim or regenerate?
To shorten a Seedance 2.5 clip, cut it with video-trim at $0.02 a job. Regenerating re-rolls the whole video and cannot go under the model's 4-second minimum.
- Cut out then upscale, or upscale then cut out? Order for PNG alpha
Upscale first, then remove the background last so nothing can drop alpha. Sume RMBG returns PNG with alpha; upscale takes output_format png, jpg or webp.
- Cyber Monday ad in 9:16, 1:1 and 16:9 from one clip with Timeline
Resize one offer video to vertical, square and landscape with Timeline 1.0 output width and height, fit blur or cover, for $0.30 across three renders.
Written by Sume