magpai-app
/
cog-ffmpeg
- Public
- 421 runs
Run magpai-app/cog-ffmpeg 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 |
---|---|---|---|
file1 |
string
|
File 1 to process
|
|
file2 |
string
|
File 2 to process
|
|
file3 |
string
|
File 3 to process
|
|
file4 |
string
|
File 4 to process
|
|
output1 |
string
|
File name for output 1
|
|
output2 |
string
|
File name for output 2
|
|
command |
string
|
ffmpeg -version
|
FFMPEG Command
|
{
"type": "object",
"title": "Input",
"properties": {
"file1": {
"type": "string",
"title": "File1",
"format": "uri",
"x-order": 0,
"description": "File 1 to process"
},
"file2": {
"type": "string",
"title": "File2",
"format": "uri",
"x-order": 1,
"description": "File 2 to process"
},
"file3": {
"type": "string",
"title": "File3",
"format": "uri",
"x-order": 2,
"description": "File 3 to process"
},
"file4": {
"type": "string",
"title": "File4",
"format": "uri",
"x-order": 3,
"description": "File 4 to process"
},
"command": {
"type": "string",
"title": "Command",
"default": "ffmpeg -version",
"x-order": 6,
"description": "FFMPEG Command"
},
"output1": {
"type": "string",
"title": "Output1",
"x-order": 4,
"description": "File name for output 1"
},
"output2": {
"type": "string",
"title": "Output2",
"x-order": 5,
"description": "File name for output 2"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"files"
],
"properties": {
"files": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Files"
}
}
}