#5035 TaskCfgVTT(uuid='6612653ded', name='X:/BaiduNetdiskDownload/ceshi/ceshi1.mp4', dirname='X:/BaiduNetdiskDownload/ceshi',

2408:8207* Posted at: 5 hours ago

data: {"id":"","object":"chat.completion.chunk","created":0,"model":"gpt-5.5","system_fingerprint":"","choices":[],"usage":{"prompt_tokens":1479,"completion_tokens":0,"total_tokens":1479,"prompt_tokens_details":{"cached_tokens":0,"text_tokens":0,"audio_tokens":0,"image_tokens":0},"completion_tokens_details":{"text_tokens":0,"audio_tokens":0,"image_tokens":0,"reasoning_tokens":0},"input_tokens":0,"output_tokens":0,"input_tokens_details":null,"claude_cache_creation_5_m_tokens":0,"claude_cache_creation_1_h_tokens":0}}

data: [DONE]

Traceback (most recent call last):
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 583, in trans
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 80, in _item_task
videotrans.configure.excepts.TranslateSrtError: data: {"id":"","object":"chat.completion.chunk","created":0,"model":"gpt-5.5","system_fingerprint":"","choices":[],"usage":{"prompt_tokens":1479,"completion_tokens":0,"total_tokens":1479,"prompt_tokens_details":{"cached_tokens":0,"text_tokens":0,"audio_tokens":0,"image_tokens":0},"completion_tokens_details":{"text_tokens":0,"audio_tokens":0,"image_tokens":0,"reasoning_tokens":0},"input_tokens":0,"output_tokens":0,"input_tokens_details":null,"claude_cache_creation_5_m_tokens":0,"claude_cache_creation_1_h_tokens":0}}

data: [DONE]
TaskCfgVTT(uuid='6612653ded', name='X:/BaiduNetdiskDownload/ceshi/ceshi1.mp4', dirname='X:/BaiduNetdiskDownload/ceshi', noextname='ceshi1', basename='ceshi1.mp4', ext='mp4', target_dir='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4', cache_folder='C:/pyvideotrans/tmp/30724/6612653ded', is_cuda=False, source_language='英语', source_language_code='en', source_sub='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4/en.srt', source_wav='C:/pyvideotrans/tmp/30724/6612653ded/en.wav', source_wav_output='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4/zh-cn.srt', target_wav='C:/pyvideotrans/tmp/30724/6612653ded/target.wav', target_wav_output='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4/zh-cn.m4a', translate_type=3, tts_type=7, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='bachong.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=5, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='X:/BaiduNetdiskDownload/ceshi/_video_out/ceshi1-mp4/ceshi1.mp4', novoice_mp4='C:/pyvideotrans/tmp/30724/6612653ded/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='C:/pyvideotrans/tmp/30724/6612653ded/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

翻译步骤失败,核心原因是 OpenAI ChatGPT(翻译渠道 #3)返回了无效的流式响应(只收到 data: [DONE] 结束标记,没有实际翻译内容)。这说明 API 调用未正确执行。

可能原因及解决方案:

  1. API Key / Base URL 无效
    确认 菜单 → 翻译设置 → OpenAI ChatGPT 中的 API KeyBase URL 填写正确。若使用官方 api.openai.com,需确保网络能访问。
  2. 网络代理未配置
    在中国大陆访问 OpenAI 必须配置代理。请在主界面 网络代理 框中填写,格式如 http://127.0.0.1:7890。留空或填写错误会导致连接失败。
  3. 模型名称填写错误
    在相同设置界面中,模型名称 一项需手动输入正确值,例如 gpt-4o。如果留空或使用不支持流式响应的旧模型(如 gpt-3.5-turbo 也可能出此问题),请改为 gpt-4ogpt-4-turbo
  4. 暂不使用流式传输
    可在该渠道设置的 高级选项 中,将 最大输出令牌 调大(如 4096),并确保未启用某些导致流式终止的特殊选项。

操作建议:

  • 先去 菜单 → 翻译设置 → OpenAI ChatGPT 检查上述配置。
  • 若问题依旧,建议暂时切换到 DeepSeek微软翻译 等渠道(二者国内无需代理),以快速完成翻译。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource