GET /api/dev/subtitle-removal/:taskId

查询字幕抹除任务状态。

路径参数类型必填说明
taskIdstring任务 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 字段说明:

字段类型说明
phasestring当前阶段:detection(检测)、inpainting(修复)、export(导出)
currentFramenumber当前处理帧
totalFramesnumber总帧数
fpsnumber处理速度(帧/秒)
etaSecnumber预估剩余时间(秒)

已完成响应:

{
  "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": "错误信息"
  }
}