cottom/av-tools
Media probes and checks for the platform's av-tools: an upload's length, an image's decode, a video's billed seconds, a compact MP3, an export's format, a video's first or last frame. The same tools and static ffmpeg build as its Cloudflare backend.
Run cottom/av-tools with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| tool |
string
|
The av-tools tool to run: a key of catalog.json `tools`.
|
|
| sources |
string
|
The inputs as a JSON list, in the order the tool reads them: each `{url, expect?: {bytes, "
"sha256}}`, the url an https short-lived read grant and `expect` the size and SHA-256 the "
"caller's ledger holds (required with more than one source).
|
|
| options |
string
|
The tool's options as JSON, exactly its row's `options` in catalog.json.
|
|
| deliver |
string
|
|
A file tool's delivery as JSON (`AvToolDeliver`): its digest only, or a PUT to a presigned "
"upload bound to that digest; empty returns the file.
|
{
"type": "object",
"title": "Input",
"required": [
"tool",
"sources",
"options"
],
"properties": {
"tool": {
"type": "string",
"title": "Tool",
"x-order": 0,
"description": "The av-tools tool to run: a key of catalog.json `tools`."
},
"deliver": {
"type": "string",
"title": "Deliver",
"default": "",
"x-order": 3,
"description": "A file tool's delivery as JSON (`AvToolDeliver`): its digest only, or a PUT to a presigned \"\n \"upload bound to that digest; empty returns the file."
},
"options": {
"type": "string",
"title": "Options",
"x-order": 2,
"description": "The tool's options as JSON, exactly its row's `options` in catalog.json."
},
"sources": {
"type": "string",
"title": "Sources",
"x-order": 1,
"description": "The inputs as a JSON list, in the order the tool reads them: each `{url, expect?: {bytes, \"\n \"sha256}}`, the url an https short-lived read grant and `expect` the size and SHA-256 the \"\n \"caller's ledger holds (required with more than one source)."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}