Trim and conform to 1080x1920 at 30 fps in one video-trim job
Video trim's output field re-encodes to a set width, height and 24/25/30/60 fps in the same $0.02 job, exact precision only. Request, ranges and refusal codes.

You can cut and conform in one $0.02 job: send output: {width, height, fps} with the trim and Sume re-encodes the range to that geometry. Width and height run 256 to 2160, fps is 24, 25, 30 or 60, and output works only with precision: "exact" (Video trim).
Request
Keep the audio, trim 8 seconds from the 2-second mark and output 1080x1920 at 30 fps.
curl -X POST https://api.sume.com/v1/video-trim \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: conform-001" \
-d '{
"video_url": "https://media.sume.com/artifacts/artf_demo/talk.mp4",
"start": 2,
"duration": 8,
"precision": "exact",
"audio": "keep",
"output": {"width": 1080, "height": 1920, "fps": 30}
}'Field rules
| Field | Allowed | Refusal |
|---|---|---|
output.width/height | 256 to 2160 | 400 schema |
output.fps | 24, 25, 30, 60 | 400 schema |
output + precision: keyframe | Not allowed | video_trim_output_requires_exact |
Raw ffmpeg keys (vf, codec, crf) | Not allowed | ffmpeg_fields_rejected |
Aspect ratio caveat
The docs describe output as a conform of width, height and fps; they do not say whether a mismatched aspect ratio is padded or stretched. To change aspect on purpose, crop first with video filter, then conform.
Sources
Related posts
More in Media tools
- 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.
- 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.
Written by Sume