Crop a 21:9 or 2.39:1 film clip to 9:16 with video filter
Width fractions for cropping ultrawide 21:9, 2.39:1 and 32:9 clips to 9:16 with one Sume video-filter crop op, plus the 0.05 minimum side and a free check.

To crop an ultrawide clip to 9:16, keep the full height and set the crop width to (9/16) divided by the source aspect ratio: 0.2411 for 21:9, 0.2354 for 2.39:1, and 0.1582 for 32:9. Sume's crop op takes fractions of the frame, so these numbers go straight into the request (Video filter).
Width fractions
Height is 1 in every row. Pick x to centre the strip: x = (1 - width) / 2.
| Source ratio | Crop width | Centred x |
|---|---|---|
| 16:9 | 0.3164 | 0.3418 |
| 2:1 | 0.2813 | 0.3594 |
| 21:9 | 0.2411 | 0.3795 |
| 2.39:1 | 0.2354 | 0.3823 |
| 32:9 | 0.1582 | 0.4209 |
The request
For a centred 2.39:1 crop, send the same body to POST /v1/video-filter/check first (unbilled, returns valid and diagnostics), then encode at $0.02 for the job.
curl -X POST https://api.sume.com/v1/video-filter \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: crop-239-001" \
-d '{
"video_url": "https://media.sume.com/artifacts/artf_demo/scope.mp4",
"ops": [{"op": "crop", "x": 0.3823, "y": 0, "width": 0.2354, "height": 1}]
}'What to watch
- The compiler rounds the crop to even values for yuv420p, so the strip can differ by a pixel from your arithmetic.
- The crop keeps the source frame rate and audio. It does not scale: a narrow strip is smaller than 1080x1920, so scale in the timeline step with
fit: cover. - Source clips are limited to 300 s for video filter.
Sources
Related posts
More in Media tools
- Trim before crop: how the 300 s filter limit sets the order
Video filter accepts sources up to 300 seconds while video trim accepts 1800. For a 20-minute clip, trim first, then crop: two jobs, $0.04.
- Dim a background clip under text: video filter dim amounts
The Sume video-filter dim op multiplies luma by an amount between 0 and 1; black stays black and chroma is untouched. Amount table, request and the $0.02 price.
- Exact or keyframe video trim: which to pick and what changes
Sume video-trim defaults to a frame-accurate exact re-encode; keyframe is a stream copy that can start a GOP early. How to choose and re-base the times.
- Extract 6 thumbnail candidates from a clip with video-frames
Send POST /v1/video-frames with an at list of up to 24 timestamps and get durable image URLs at source size. Python polling example, formats and limits.
Written by Sume