FFmpeg Media · FFmpeg Media

TranscodeComing Soon

🚧 Coming soon — docs preview only, online run not yet available.
📌 What is thisConvert container format and audio/video codecs.
💡 When to useUse to change format (e.g. mov->mp4) or codec.

Endpoints

UsageMethodPath
Submit taskPOST/v1/ffmpeg/transcode
Query ResultGET/v1/ffmpeg/info?id={taskId}
Recommended polling intervalPoll every 3-5s (response includes progress 0-100) until status = succeeded / failed. Single-task timeout is 300s with auto-refund.

Request Parameters

ParamTypeRequiredDescription
inputUrlstringRequiredInput media URL, must be on the platform CDN allowlist (upload first to obtain it)
formatstringContainer: mp4 / webm / mkv, default mp4
vcodecstringVideo codec: h264 / h265 / vp9, default h264
acodecstringAudio codec: aac / opus / copy, default aac
webhookUrlstringCompletion webhook URL (optional)

Request Example

curl -X POST https://api.cqtai.com/v1/ffmpeg/transcode \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "inputUrl": "https://cdn.novapi.ai/tmp/video.mov", "format": "mp4", "vcodec": "h264" }'
# -> { "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
  }
}

Billing & Credits

Factor 1.0; 1 min 720P ~ 3 credits (x your user rate). Auto-refunded on failure.