#7280 Traceback (most recent call last): File "videotrans\translator\_runner.py", line 20, in _check_gorm File "requests\api

120.217**0 Posted at: 2 hours ago

Traceback (most recent call last):
File "videotrans\translator\_runner.py", line 20, in _check_gorm
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失败,改为使用微软翻译
[DEBUG] 以纯文本行形式翻译,每次翻译10行,翻译后暂停0.0s
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator.
......
]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[INFO] Starting call to 'videotrans.translator._microsoft.Microsoft._item_task', this is the 1st time calling it.
[DEBUG] [Microsoft]返回:response=
[DEBUG] 原始行数:204,翻译后行数:204
[DEBUG] 原始语言字幕和目标语言字幕行数一致,均为 source_len=204

[DEBUG]


==准备要嵌入的字幕:self.cfg.subtitle_type=1
self.cfg.target_sub='E:/迅雷下载/Marc Dorcel/_video_out/La Ruee Vers Laure(Amnesia) 1996 (1080P)-mkv/zh-cn.srt'=
[DEBUG] 最终确定字幕嵌入类型:1 ,目标字幕语言:zho, 字幕文件:D:/My Softwares/Pyvideotran 4.12-0913/tmp/8460/24cee989fc/end.srt

[DEBUG] [set_ass_font] 未修改硬字幕样式,跳过样式替换
[DEBUG] 返回缓存的编解码器 Windows-264: h264_nvenc
[DEBUG] 原始hw_type='h264_nvenc'
[DEBUG] 整理后hw_type='nvenc'
[DEBUG] [尝试硬件编解码执行命令]
-y -progress compose1789392149.2359533.txt -i novoice.mp4 -i will_embed.m4a -filter_complex [0:v]subtitles=filename='end.ass'[v_out] -map [v_out] -map 1:a -c:v h264_nvenc -c:a copy -cq 23 -preset p7 -movflags +faststart -shortest laste_target.mp4

1 Replies

#1 DeepSeek reply at 2 hours ago

Google 翻译连接超时后已自动回退到微软翻译,且微软翻译已成功完成全部 204 行翻译,字幕阶段正常结束。当前日志停留在视频最终合成(嵌入硬字幕)阶段,未显示后续结果或报错。

请确认:1. 此时软件界面是否仍在执行/卡住,或已报错弹窗;2. 若已报错,请提供 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息)以便分析;3. 若长时间无反应,可尝试在高级选项中勾选 强制软编码视频? 后重试合成。

请查阅相关文档:

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