Servidor MCP

ffpipe — video conversion, probe & frames

dev.ffpipe/ffpipe

Qué hace este MCP

Uses FFmpeg to asynchronously convert video, inspect media metadata, and extract frames from supplied URLs or uploads.

convert_video
Queue an asynchronous video conversion: fetches sourceUrl (or, with upload: true, waits for you to PUT the bytes to the returned uploadUrl), converts to MP4 scaled to fit maxWidth x maxHeight (defaults 1920x1080, cap 4096). Returns { jobId, status: "queued" | "awaiting_upload", statusUrl, uploadUrl?, uploadExpiresAt? } - poll with get_job_status (jobId + the t token from statusUrl) until finished/error. Download results within 24 hours. Paid: $0.02 USDC via x402 (base mainnet), or a convert-kind retryVoucher.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'upload': {'type': 'boolean', 'const': True, 'description': 'Set true to upload the bytes yourself instead of giving a sourceUrl (exactly one of the two). The paid result then returns status awaiting_upload plus uploadUrl and uploadExpiresAt: HTTP PUT the raw bytes to uploadUrl before the deadline (201 -> queued). You are charged at acceptance; an abandoned upload window errors with no refund, while a pipeline failure after your upload earns a retryVoucher.'}, 'maxWidth': {'type': 'integer', 'maximum': 4096, 'minimum': 1, 'description': 'Max output width, default 1920'}, 'maxHeight': {'type': 'integer', 'maximum': 4096, 'minimum': 1, 'description': 'Max output height, default 1080'}, 'sourceUrl': {'type': 'string', 'description': 'https URL of the input media (<= 100 MiB). Fetched from datacenter IP ranges - prefer a presigned URL from storage you control; no IP literals, no localhost/.internal/.local. Provide EXACTLY ONE of sourceUrl or upload.'}, 'retryVoucher': {'type': 'string', 'description': "Retry-voucher credential (`uuid.hmac`) from a failed paid job's status - pays for this call instead of x402. Single use, kind-matched."}}}
extract_frames
Queue an asynchronous frame extraction - the tool to reach for when you need to SEE a video: fetches sourceUrl (or, with upload: true, waits for you to PUT the bytes to the returned uploadUrl) and extracts still frames as jpeg, webp or png. mode is REQUIRED and picks the sampling (all, every_nth, interval, keyframes, evenly_spaced, timestamps); there is no default because every candidate implies a rate you did not ask for. A finished job's resultUrl is a JSON MANIFEST: source display dimensions, fps, rotation, an echo of your parameters, frame_count, and one entry per frame with index, pts_time (seconds in the source) and its own download url on this gateway - fetch the manifest, then the frames you want. Need just ONE frame at a moment - a thumbnail, poster frame or screenshot at a given second? Use mode "timestamps" with a single value, e.g. timestamps=[5], format=jpeg; the result is still a one-entry manifest pointing at that image (if you would rather have the image bytes returned directly instead of via a manifest, tell us with leave_feedback - demand decides whether we add it). Up to 1000 frames per job; "all"/"interval" on a long source can exceed that and fail fast, so prefer interval, evenly_spaced or timestamps. Unreadable input, audio-only files and still images FAIL here (probe_media diagnoses those). Download within 24 hours. Paid: $0.01 USDC via x402 (base mainnet), or a frames-kind retryVoucher.
Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['mode'], 'properties': {'n': {'type': 'integer', 'maximum': 9007199254740991, 'minimum': 1, 'description': 'every_nth only: keep every Nth DECODED frame (a frame index, not a time).'}, 'fps': {'type': 'number', 'maximum': 120, 'description': 'interval only: frames per second, may be below 1 (0.5 = one frame every two seconds).', 'exclusiveMinimum': 0}, 'mode': {'enum': ['all', 'every_nth', 'interval', 'keyframes', 'evenly_spaced', 'timestamps'], 'type': 'string', 'description': 'How to pick frames (required): "all" every frame; "every_nth" every Nth decoded frame (needs n); "interval" a fixed rate in seconds (needs fps, may be below 1); "keyframes" keyframes only, cheap on long sources; "evenly_spaced" count samples across the window (needs count); "timestamps" one frame per given second (needs timestamps).'}, 'count': {'type': 'integer', 'maximum': 1000, 'minimum': 1, 'description': 'evenly_spaced only: how many frames to spread across the window.'}, 'format': {'enum': ['jpeg', 'jpg', 'webp', 'png'], 'type': 'string', 'description': 'Image format of each frame, default jpeg (small and accepted by every vision API). png is lossless.'}, 'upload': {'type': 'boolean', 'const': True, 'description': 'Set true to upload the bytes yourself instead of giving a sourceUrl (exactly one of the two). The paid result then returns status awaiting_upload plus uploadUrl and uploadExpiresAt: HTTP PUT the raw bytes to uploadUrl before the deadline (201 -> queued). You are charged at acceptance; an abandoned upload window errors with no refund, while a pipeline failure after your upload earns a retryVoucher.'}, 'endTime': {'type': 'number', 'minimum': 0, 'description': 'Window end in seconds (0 or omitted = to the end); must exceed startTime.'}, 'quality': {'type': 'integer', 'maximum': 100, 'minimum': 1, 'description': 'Encoder quality for jpeg/webp, default 85; ignored for png.'}, 'maxFrames': {'type': 'integer', 'maximum': 1000, 'minimum': 1, 'description': 'Ceiling on frames produced, default and hard limit 1000. A request whose sampling would exceed it fails before any decoding.'}, 'sourceUrl': {'type': 'string', 'description': 'https URL of the input media (<= 100 MiB). Fetched from datacenter IP ranges - prefer a presigned URL from storage you control; no IP literals, no localhost/.internal/.local. Provide EXACTLY ONE of sourceUrl or upload.'}, 'startTime': {'type': 'number', 'minimum': 0, 'description': 'Window start in seconds (default 0).'}, 'timestamps': {'type': 'array', 'items': {'type': 'number', 'minimum': 0}, 'maxItems': 1000, 'description': 'timestamps only: seconds into the source, one accurate frame each. Sorted for you.'}, 'retryVoucher': {'type': 'string', 'description': "Retry-voucher credential (`uuid.hmac`) from a failed paid job's status - pays for this call instead of x402. Single use, kind-matched."}, 'maxOutputWidth': {'type': 'integer', 'maximum': 4096, 'minimum': 0, 'description': "Fit box width applied to the source's DISPLAY dimensions: aspect preserved, never upscaled, oriented to the input. 0 = no limit on this axis."}, 'maxOutputHeight': {'type': 'integer', 'maximum': 4096, 'minimum': 0, 'description': 'Fit box height, same rules as maxOutputWidth.'}}}
get_balance
Check your credit balance (free)
Free. Reports the credit balance of the account this client is connected to, plus what one credit is worth, what each operation costs in credits, the monthly free allowance and whether a card is on file to unlock it. Takes no input: it reads the account behind the credential your client already connected with. If you have a connected account, paid tools are funded from this balance and never present a payment challenge - so call this to find out how much work you can still queue, and top up at the account page named in the answer. Anonymous callers (x402 buyers, who pay per call instead) have no balance and get an unauthorized error; either way nothing here is charged.
Solo lectura Idempotente
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
get_job_status
Get job status (free)
Free status lookup for a job accepted by convert_video / probe_media / extract_frames. Requires the job's ownership token - the `t` query parameter of the statusUrl returned at acceptance (store the whole statusUrl; it cannot be regenerated). Status goes [awaiting_upload ->] queued -> finished | error; awaiting_upload jobs report uploadExpiresAt but NEVER the uploadUrl (that credential is handed out exactly once, in the acceptance result); finished jobs carry resultUrl/thumbnailUrl/durationMs (always served by this gateway, never a redirect; free to re-download within 24 hours of completion); a failed charged job (including one that could not be queued after payment) carries retryVoucher. A bad token and an unknown jobId both answer not_found, deliberately.
Solo lectura Idempotente
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['jobId', 'token'], 'properties': {'jobId': {'type': 'string', 'description': 'Job id from the acceptance'}, 'token': {'type': 'string', 'description': 'Ownership token - the `t` query parameter of statusUrl'}}}
leave_feedback
Request a capability / report a problem (free)
Tell us what you needed. If ffpipe does not offer the operation you came for - another output format, extracting a frame, a different transformation entirely - say so here: these requests are aggregated and they drive directly what gets built next, so a one-line "I wanted X" is genuinely useful to us. Also the place for bug reports and any other feedback. Free, unauthenticated, and one-way: nothing is returned but an acknowledgement, and no job is created. Include jobId if a specific job prompted this (context only - it is not checked and is not required), and contact if you want a reply. Message limit 2000 characters.
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['message'], 'properties': {'type': {'enum': ['feature_request', 'bug', 'feedback'], 'type': 'string', 'description': 'What this is: "feature_request" for a capability ffpipe does not offer yet, "bug" for something broken, "feedback" for anything else. Defaults to "feedback".'}, 'jobId': {'type': 'string', 'description': 'Optional job id this relates to. Context only - ownership is NOT checked and no token is needed.'}, 'contact': {'type': 'string', 'maxLength': 200, 'description': 'Optional. An email or handle to reply at, up to 200 characters. Omit it and the submission stays anonymous.'}, 'message': {'type': 'string', 'maxLength': 2000, 'minLength': 1, 'description': 'What you wanted, what went wrong, or what you think. Plain text, 1 to 2000 characters. Be concrete: "needed a single frame as a jpeg at a given timestamp" is worth more to us than "more features".'}}}
probe_media
Queue an asynchronous media inspection: fetches sourceUrl (or, with upload: true, waits for you to PUT the bytes to the returned uploadUrl) and returns its technical metadata as a downloadable file. In the default json format the result is the full raw analysis plus one added top-level "ffpipe_summary" object: container, duration_s, size_bytes, has_video, has_audio, video_codec, audio_codec, coded_width/height, display_width/height, rotation, fps, is_hdr, audio_channels, audio_sample_rate. USE display_width/display_height as the size the picture actually is - phones store portrait video as a landscape frame plus a rotation flag. A file that cannot be decoded is still a SUCCESS whose result carries the diagnosis. Returns { jobId, status, statusUrl, ... } - poll with get_job_status until finished/error, then download resultUrl within 24 hours. Paid: $0.01 USDC via x402 (base mainnet), or a probe-kind retryVoucher.
Solo lectura Acceso externo
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'upload': {'type': 'boolean', 'const': True, 'description': 'Set true to upload the bytes yourself instead of giving a sourceUrl (exactly one of the two). The paid result then returns status awaiting_upload plus uploadUrl and uploadExpiresAt: HTTP PUT the raw bytes to uploadUrl before the deadline (201 -> queued). You are charged at acceptance; an abandoned upload window errors with no refund, while a pipeline failure after your upload earns a retryVoucher.'}, 'summary': {'type': 'boolean', 'description': 'Keep the normalized ffpipe_summary block (json only). Default true; send false for byte-exact raw output.'}, 'sections': {'type': 'array', 'items': {'enum': ['format', 'streams', 'chapters', 'programs'], 'type': 'string'}, 'description': 'Which sections to report. Default: format, streams, chapters.'}, 'sourceUrl': {'type': 'string', 'description': 'https URL of the input media (<= 100 MiB). Fetched from datacenter IP ranges - prefer a presigned URL from storage you control; no IP literals, no localhost/.internal/.local. Provide EXACTLY ONE of sourceUrl or upload.'}, 'showFrames': {'type': 'boolean', 'description': 'Report per-FRAME detail. Large: a bounded window is applied for you unless you send readIntervals. Pair with showEntries to keep only the fields you need.'}, 'countFrames': {'type': 'boolean', 'description': 'Count frames exactly. Requires decoding the whole file - slow on long sources.'}, 'showEntries': {'type': 'string', 'maxLength': 256, 'description': 'Keep only the named fields, e.g. "frame=pict_type,pts_time,key_frame" or "format=duration". Section and field names only.'}, 'showPackets': {'type': 'boolean', 'description': 'Report per-PACKET detail. Same bounded-window treatment as showFrames.'}, 'countPackets': {'type': 'boolean', 'description': 'Count packets exactly. Same cost caveat as countFrames.'}, 'outputFormat': {'enum': ['json', 'xml', 'csv', 'flat', 'ini'], 'type': 'string', 'description': 'Format of the delivered analysis, default json. Only json carries the ffpipe_summary block; the rest are raw. flat is delivered as .txt.'}, 'retryVoucher': {'type': 'string', 'description': "Retry-voucher credential (`uuid.hmac`) from a failed paid job's status - pays for this call instead of x402. Single use, kind-matched."}, 'readIntervals': {'type': 'string', 'maxLength': 256, 'description': 'Limit the analysis to a window, e.g. "%+60" (first 60 seconds), "30%+10" (10 seconds from 0:30), "%+#500" (first 500 packets).'}, 'selectStreams': {'type': 'string', 'maxLength': 256, 'description': 'Restrict the analysis to matching streams, e.g. "v:0" (first video stream) or "a" (all audio).'}}}
Modificado
get_job_status
1 de October de 2026 a las 02:43
Añadido
leave_feedback
17 de September de 2026 a las 12:39
Añadido
get_balance
17 de September de 2026 a las 12:39
Añadido
get_job_status
17 de September de 2026 a las 12:39
Añadido
extract_frames
17 de September de 2026 a las 12:39
Añadido
probe_media
17 de September de 2026 a las 12:39
Añadido
convert_video
17 de September de 2026 a las 12:39