GET /api/dev/subtitle-removal/:taskId
查询字幕抹除任务状态。
| 路径参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | 是 | 任务 ID,由创建接口返回 |
请求示例:
curl http://127.0.0.1:9527/api/dev/subtitle-removal/sr_1712345678000 \
-H "X-API-Key: dk_your_key_here"
运行中响应:
{
"ok": true,
"data": {
"status": "running",
"inputPath": "/Users/test/demo.mp4",
"outputPath": "/Users/test/demo_no_sub.mp4",
"progress": {
"phase": "inpainting",
"currentFrame": 120,
"totalFrames": 300,
"fps": 15.2,
"etaSec": 12
}
}
}
其中 progress 字段说明:
| 字段 | 类型 | 说明 |
|---|---|---|
phase | string | 当前阶段:detection(检测)、inpainting(修复)、export(导出) |
currentFrame | number | 当前处理帧 |
totalFrames | number | 总帧数 |
fps | number | 处理速度(帧/秒) |
etaSec | number | 预估剩余时间(秒) |
已完成响应:
{
"ok": true,
"data": {
"status": "completed",
"inputPath": "/Users/test/demo.mp4",
"outputPath": "/Users/test/demo_no_sub.mp4"
}
}
失败响应:
{
"ok": true,
"data": {
"status": "failed",
"inputPath": "/Users/test/demo.mp4",
"outputPath": "/Users/test/demo_no_sub.mp4",
"error": "错误信息"
}
}