#8535 无返回翻译结果self=[DeepSeek]: uuid='61016a34d0', proxy_str=None, translate_type=5, is_test=False, source_code='auto', target_c

2409**d395 Posted at: 1 hour ago

无返回翻译结果
self=[DeepSeek]: uuid='61016a34d0', proxy_str=None, translate_type=5, is_test=False, source_code='auto', target_code='Simplified Chinese', common_target_code='zh-cn', api_url='https://api.deepseek.com/v1/', model_name='deepseek-v4-pro', trans_thread=40, wait_sec=0.0, local_dir=None, is_cuda=True, aisendsrt=True, ainame='deepseek', temperature=0.1, max_tokens=16384, reasoning_effort=None, extra_body=None
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 90, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 167, in _run_srt
videotrans.configure.excepts.TranslateSrtError: 无返回翻译结果
self=[DeepSeek]: uuid='61016a34d0', proxy_str=None, translate_type=5, is_test=False, source_code='auto', target_code='Simplified Chinese', common_target_code='zh-cn', api_url='https://api.deepseek.com/v1/', model_name='deepseek-v4-pro', trans_thread=40, wait_sec=0.0, local_dir=None, is_cuda=True, aisendsrt=True, ainame='deepseek', temperature=0.1, max_tokens=16384, reasoning_effort=None, extra_body=None

trk=[TransCreate]: uuid='61016a34d0', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/The Secret to High-End Exterior Renders (3ds Max Tutorial).mp4,
输出结果保存到文件夹: E:/_video_out/The Secret to High-End Exterior Renders (3ds Max Tutorial)-mp4,
临时文件夹: E:/win-pyvideotrans-v4.17/tmp/3528/61016a34d0
已选 清理已存在
已启用CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 自动检测, , 数据类型:default
翻译渠道:DeepSeek,原始语言:自动检测,目标语言:简体中文, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=8926733


=
system:Windows-10-10.0.17134-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.17

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 DeepSeek 在“发送完整字幕”模式下,单批发送的字幕量过大(当前每批 40 条完整 SRT 字幕块,即 aitrans_thread=40,且 max_tokens=16384),同时 deepseek-v4-pro 开启了思考模式,导致输出被截断或超时,模型返回空内容,最终抛出 TranslateSrtError: 无返回翻译结果。

请按以下顺序处理:

  1. 关闭思考模式:进入菜单—翻译设置—DeepSeek,取消勾选 Thinking 复选框(思考模式会大量消耗输出 token,极易被截断)。
  2. 调小每批字幕行数:进入 菜单 → 工具/选项 → 高级选项 → 字幕翻译,将 AI翻译渠道每批字幕行数 由 40 改为 10 或更小(如仍报错可改 1)。
  3. 调大最大输出 token:在 DeepSeek 渠道设置中将 max tokens 调大(如 32768),或直接更换 deepseek-v4-flash 等长输出能力较强的模型。
  4. 检查原始字幕:打开 E:/_video_out/...-mp4/ 下的原始字幕文件,确认是否有某行出现大量重复文字(如连续几十个 no/hey 等),此类内容会让模型陷入死循环并耗尽 token,需先手工删改该行。
  5. 兜底方案:取消勾选 发送完整字幕,改用逐行文本翻译模式,虽损失部分上下文,但可避免此类整体失败。

若以上处理后仍返回空,请确认 DeepSeek 账户余额及 API Key 是否有效(返回空也可能是服务端拒绝请求)。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource