#6530 v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}][INFO] Starting call to 'videotrans.translator._open

116.162.**5 Posted at: 11 hours ago

v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs=
......
out': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:[self.ainame='deepseek',kwargs={'model': 'deepseek-v4-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 32768}]
[DEBUG] 原始字幕行数:1220, 翻译后行数:1220
[DEBUG] 原始语言字幕和目标语言字幕行数一致,均为 source_len=1220

[DEBUG]


==准备要嵌入的字幕:self.cfg.subtitle_type=3


=
[DEBUG] 最终确定字幕嵌入类型:3 ,目标字幕语言:zho, 字幕文件:E:/ike/win-pyvideotrans-v4.08-0802/tmp/15796/a9f44d10a1/shuang.srt

[DEBUG] 返回缓存的编解码器 Windows-264: h264_qsv
[DEBUG] 原始hw_type='h264_qsv'
[DEBUG] 整理后hw_type='qsv'
[DEBUG] [尝试硬件编解码执行命令]
-y -progress compose1786296425.7035966.txt -i novoice.mp4 -i will_embed.m4a -filter_complex [0:v]subtitles=filename='shuang.ass'[v_out] -map [v_out] -map 1:a -c:v h264_qsv -c:a copy -global_quality 23 -preset slow -movflags +faststart -shortest laste_target.mp4

1 Replies

当前日志显示翻译阶段已正常完成(1220 行字幕全部翻译,耗时约 230 秒),随后已进入最终合成阶段,正在执行硬字幕嵌入与音画合成命令。日志末尾是合成命令已开始执行,尚未看到最终成功或失败输出,因此任务并没有卡死,只是仍在合成中,请继续等待

最终合成通常需要一定时间,取决于原视频时长、编码器负载和字幕渲染复杂度。若长时间(如 10 分钟以上)停留在此命令而无任何新日志,可能是以下原因:

  1. 正在使用 QSV 硬件编码(h264_qsv),若 Intel 显卡驱动或硬件编码器异常,命令可能长时间挂起。可在 菜单 -> 工具/选项 -> 高级选项 -> 视频输出控制 中勾选“强制软编码视频?”后再试。
  2. 视频路径或字幕文件包含特殊字符、中文、空格,或路径过长,可能导致 FFmpeg 命令异常。建议将视频移到纯英文数字短路径(如 D:\pyvideotrans\test.mp4)后重试。
  3. 若最终确认失败,请提供 logs/ 目录下最新日志文件末尾约 30 行报错信息,以便进一步分析。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource