Video filter: a live replay over 300 seconds needs a trim first
Sume video-filter takes a source of 300 seconds or less and returns output_duration_exceeded above it. Trim the live replay highlight first, then dim or crop.

Sume POST /v1/video-filter takes a source of at most 300 seconds. A longer clip, such as a full live-sale replay, fails with output_duration_exceeded when the worker reads it. The fix is to cut the moment you want with POST /v1/video-trim first, then send the trim's video_url to the filter.
The limit is in Video filter and the trim limits in Video trim (read 2026-10-06). Trim accepts a source of up to 1800 seconds and cuts up to 900, so a 20-minute replay goes through trim and not directly through the filter.
What does the order look like?
Trim, then filter, then captions. Each step returns a new MP4, and its video_url is the next step's input.
| Step | Source limit | Output limit | Rate |
|---|---|---|---|
| Video trim | 1800 s | 900 s | $0.02 |
| Video filter | 300 s | Keeps the source's length | $0.02 |
| Video captions | public HTTPS URL | Up to 60 s at $0.20 | $0.20 |
How do I avoid paying for a refused job?
Run the free check first. POST /v1/video-filter/check runs the same schema, allowlist, and host checks as the encode, with no job and no charge. It cannot see the length on the worker, so a program that passes can still fail on a long source. Trim first and the length is no longer a risk.
curl -X POST https://api.sume.com/v1/video-trim \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: replay-90s-for-filter" \
-d '{
"video_url": "https://media.sume.com/artifacts/artf_demo/live-sale.mp4",
"start": 600,
"duration": 90
}'What about the output?
A 90-second highlight is well under the 300-second filter limit. After the trim completes, read its video_url and send that to the filter, with a dim or crop op as you need.
- Import the replay with
POST /v1/media-importsbefore trimming. - The filter keeps the geometry, rate, and audio of its source unless the program changes them.
- A failed filter job returns a structured error, and a trim you already paid for stays usable.
Sources
Related posts
More in Use cases
- Post-call QA for a voice agent: transcribe 500 recorded calls for $40
Sume STT is batch, not live. Use it after the call: 500 eight-minute recordings cost about $40 a month at $0.01 a minute, with no speaker labels.
- Turn a voice memo into a narrated short: transcribe, edit, re-voice
Speak your idea into a phone, transcribe it with Sume STT, tidy the text, then re-voice and caption it. The memo becomes the script, not the audio.
- YouTube watch series button: viewers may land on episode 7 first
A viewer who finds one Short in their feed sees a watch series button, so any episode can be the first they see. Write and render episodes that stand alone.
- Wedding save-the-date clip: first frame or reference photos
Send one engagement photo as a first frame to animate it, or up to 10 reference images to Omni Flash 1.1 to keep the couple's look. 8-second prices inside.
Written by Sume