concat_media
Joins multiple video or audio files in sequence into one output, using stream copy for matching formats or re-encoding when they differ; supports dry-run planning and verification.
Instructions
Join multiple video or audio files in order into a single file. Uses stream copy for matching files or re-encodes when formats differ. Supports dryRun and post-flight verification.
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": {
"inputPaths": "<inputPaths>",
"outputPath": "<outputPath>"
},
"name": "concat_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Concatenation mode. 'auto' (default) probes inputs to check codecs, resolutions, framerates, and audio sample rates, using fast stream copy if matching or falling back to re-encoding if they differ. 'lossless' forces stream copy. 'reencode' forces filtergraph normalization. | auto |
| dryRun | No | Plan-before-encode: returns planned FFmpeg command, parameters, and target output without writing files. | |
| inputPaths | Yes | List of media files to concatenate in sequential order | |
| outputPath | Yes | Target output file path |