#4194 Traceback (most recent call last): File "videotrans\translator\__init__.py", line 910, in _check_google File "requests

240e:39e* Posted at: 1 day ago 👁23

Traceback (most recent call last):
File "videotrans\translator\__init__.py", line 910, in _check_google
File "requests\api.py", line 100, in head
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 665, in send
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(, 'Connection to translate.google.com timed out. (connect timeout=5)'))
[WARNING] ==未设置代理并且检测google失败,使用微软翻译
[WARNING] ==未设置代理并且检测google失败,使用微软翻译
self.trans_thread=10,self.aisendsrt=False,self.translate_type=0
[DEBUG] 以普通文本行按行翻译:原始行数:120,翻译后行数:120
[DEBUG] [字幕翻译]渠道0,:共耗时:1s
[DEBUG] 本次EdgeTTS配音:重试延迟:5,出错将重试:4,并发:10

[DEBUG] 执行流程:所有配音任务结束。
[DEBUG] EdgeTTS配音结束:[1] errors, 119 succeed
[DEBUG] 开始执行事件循环的关闭流程...
[DEBUG] 事件循环已关闭。
[DEBUG] [字幕配音]渠道0:共耗时:184s
[ERROR] ffprobe command failed: [mov,mp4,m4a,3gp,3g2,mj2 @ 000001b7b141ed80] moov atom not found D:/sp/tmp/11904/fc5727851a/novoice.mp4: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-select_streams', 'v:0', '-show_entries', 'stream=duration', '-of', 'default=noprint_wrappers=1:nokey=1', 'D:/sp/tmp/11904/fc5727851a/novoice.mp4']' returned non-zero exit status 1.
[ERROR] ffprobe command failed: [mov,mp4,m4a,3gp,3g2,mj2 @ 000001b7b141ed80] moov atom not found D:/sp/tmp/11904/fc5727851a/novoice.mp4: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-select_streams', 'v:0', '-show_entries', 'stream=duration', '-of', 'default=noprint_wrappers=1:nokey=1', 'D:/sp/tmp/11904/fc5727851a/novoice.mp4']' returned non-zero exit status 1.
[ERROR] ffprobe command failed: [mov,mp4,m4a,3gp,3g2,mj2 @ 000002871e07d700] moov atom not found D:/sp/tmp/11904/fc5727851a/novoice.mp4: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', 'D:/sp/tmp/11904/fc5727851a/novoice.mp4']' returned non-zero exit status 1.
[ERROR] ffprobe command failed: [mov,mp4,m4a,3gp,3g2,mj2 @ 000002871e07d700] moov atom not found D:/sp/tmp/11904/fc5727851a/novoice.mp4: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', 'D:/sp/tmp/11904/fc5727851a/novoice.mp4']' returned non-zero exit status 1.

1 Replies

这是由于Edge-TTS配音失败和视频处理过程中临时文件损坏导致的。

问题分析:

  1. Edge-TTS配音失败:日志显示 [63/120]: 已达到最大重试次数,任务失败。,这是Edge-TTS渠道因请求频率过高被微软服务器限流或拒绝的典型表现。
  2. 视频处理失败:由于第63句配音失败,导致后续生成的无声视频文件 novoice.mp4 不完整(moov atom not found),无法获取视频时长信息,最终合成失败。

解决方案:

  1. 降低Edge-TTS请求频率

    • 进入 菜单 -> 工具/选项 -> 高级选项
    • 在【字幕配音调整】区域,进行如下设置:

      • EdgeTTS配音渠道配音并发数:设置为 1
      • 配音后暂停秒:设置为 5 或更高(例如10)。
      • EdgeTTS配音渠道失败重试次数:可适当增加(例如10),但主要靠降低并发和增加间隔来避免触发限流。
  2. 重新处理视频

    • 在主界面左上角勾选 清理已生成 复选框,以清除之前失败的缓存文件。
    • 重新选择视频文件并开始翻译任务。
  3. (可选)检查文件路径:确保视频文件存放路径简短且不含中文或特殊符号(如 D:\video.mp4),避免因路径过长或特殊字符导致 ffmpeg 处理异常。

请查阅相关文档:

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.

Related resource

Similar issues already exist