merge
Concatenate multiple media files into one output; choose same-codec concatenation for matching formats or cross-codec re-encoding for different inputs.
Instructions
Concatenate multiple media files into one. Supports same-codec fast concat or cross-codec re-encoding.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": "<inputs>",
"output": "<output>"
},
"name": "merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | Array of input file paths to concatenate | |
| method | No | concat_demuxer: same codec, fast. concat_filter: different codecs, re-encodes | concat_demuxer |
| output | Yes | Output file path |