VideoLingo icon indicating copy to clipboard operation
VideoLingo copied to clipboard

🙋‍♂️【求助】使用 OpenAI API KEY + Replicate Cloud 翻译 1 小时 11 分钟的视频频频失败

Open AgentInfinity-CN opened this issue 4 months ago • 5 comments

背景:

我正在使用 videoling 项目通过以下配置方式尝试翻译一段 1 小时 11 分钟的视频字幕:

LLM 模型使用: OpenAI API(目前为 GPT-4.1)

推理平台: Replicate Cloud

视频长度: 1小时11分钟

容器环境: Docker Desktop (个人版)

问题描述:

在执行翻译过程中,经常遇到以下错误并导致流程中断:

ValueError: Empty translation rows detected, this is likely due to weak model, please use Claude-3-5-sonnet or manually adjust the empty rows.

但我觉得可能并不是模型的问题?我选用的是 GPT4.1

完整报错截图如下:

图片 1

Image

图片 2

Image

从日志来看,翻译过程中会生成空行数据,程序随后检测到 translation_results.xlsx 和 translation_results_for_subtitles.xlsx 中存在空行并直接抛出异常,导致后续步骤无法继续执行。

❓我想了解:

  • 是否是因为视频中存在一段时间的空白或停顿,模型误判导致跳过翻译?

  • 目前 GPT-4o 的表现是否确实不如 Claude-3.5-sonnet 在处理较长视频翻译任务?

  • 是否有推荐的自动 retry 或 fallback 策略?

  • 我该如何配置以规避这个问题?

💻环境信息:

  • 容器镜像: rqlove/videoling:latest

  • Docker Desktop 状态: Engine running,资源占用正常

  • 报错发生时间: 2025-07-28 15:47(UTC+8)

期待您们的帮助,非常感谢!🙏

如需我提供更多日志或配置详情,请随时告知!

AgentInfinity-CN avatar Jul 28 '25 09:07 AgentInfinity-CN

我重新使用了 claude-3.7 进行了尝试附件如下:

Image

AgentInfinity-CN avatar Jul 29 '25 05:07 AgentInfinity-CN

AgentInfinity-CN avatar Jul 29 '25 05:07 AgentInfinity-CN

配置翻译接口为烟神殿AI试试,api地址https://yansd666.top,比较好用且稳定的中转

jilin6654 avatar Jul 29 '25 22:07 jilin6654

长视频AI翻译有可能出现空行的情况,现在代码好像解决这个问题。你要么人工检查下内容。

ops120 avatar Jul 30 '25 07:07 ops120

最后用claude-4.0解决了这个问题,claude-3.7跑了三次都没解决,果然还是模型能力占主要的哇?

AgentInfinity-CN avatar Aug 01 '25 08:08 AgentInfinity-CN