CQTAI
FFmpeg Media · FFmpeg

ConcatNEW

📌 What is this:Join multiple videos into one, in order.
💡 When to use:Use to join clips in order. Clips with matching codec & resolution take a zero-re-encode fast path (fastest); mismatched clips are auto-normalized and re-encoded before joining — no need to specify anything.

Endpoints

UsageMethodPath
Submit taskPOST/v1/ffmpeg/concat
Query ResultGET/v1/ffmpeg/info?id={taskId}
⏱ Recommended polling interval:Poll every 3-5s (response includes progress 0-100) until status = succeeded / failed. status = queued means the task is enqueued and waiting to start (not charged yet) — just keep polling. Single-task timeout is 300s with auto-refund.

Request Parameters

ParamTypeRequiredDescription
inputUrlsstring[]RequiredVideo URL array, 2-200; order is the concat order; mismatched codec/resolution is auto re-encoded to align
webhookUrlstring—Completion webhook URL (optional)

Request Example

curl -X POST https://api.cqtai.com/v1/ffmpeg/concat \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "inputUrls": ["https://cdn.novapi.ai/veo31/1788164205419_de868f9d69d445baaf577d42e87a236f.mp4", "https://cdn.novapi.ai/veo31/1788164205419_de868f9d69d445baaf577d42e87a236f.mp4"] }'
# -> { "code":200, "data":"<taskId>" }

Response Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "<taskId>",
    "operation": "transcode",
    "status": "succeeded",
    "progress": 100,
    "resultUrl": "https://cdn.novapi.ai/ffmpeg/xxx.mp4",
    "costPoints": 3,
    "errorMsg": null
  }
}