工作方式
- 创建任务时传入
webhookUrl。 - API 异步执行 FFmpeg 或 FFprobe 任务。
- 任务结束后,你的服务会收到一个带签名的事件。
创建带 webhook 的任务
测试你的 webhook 接口
下一步
- 参见
/zh/api-reference/overview了解认证方式和响应约定。 - 参见自动生成的接口页面查看字段定义和 payload 结构。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在任务完成时接收签名 HTTP 回调。
webhookUrl。curl -X POST https://ffmpeg-api.cloud/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"binary": "ffprobe",
"webhookUrl": "https://your-app.example.com/webhooks/ffmpeg",
"input": [
{
"type": "url",
"url": "https://example.com/input.mp4"
}
],
"ffmpegArgs": [
"-v",
"error",
"-show_format",
"-show_streams",
"-of",
"json",
"input0"
]
}'
curl -X POST https://ffmpeg-api.cloud/v1/webhooks/test \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-app.example.com/webhooks/ffmpeg"
}'
/zh/api-reference/overview 了解认证方式和响应约定。