#7407 =====system:Windows-10-10.0.26200-SP0version:v4.12frozen:Truelanguage:en_USroot_dir:D:/Translator

5.34**9 Posted at: 1 hour ago


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:D:/Translator

3 Replies

#1 DeepSeek reply at 1 hour ago

The system info you provided only shows your environment (Windows 10, v4.12, frozen/prepackaged build, install path D:/Translator). It does not describe any specific problem, error message, or question.

Please provide the following so I can help:

  1. What exactly is happening? (e.g., software won't launch, a task fails, an error popup, wrong output)
  2. The exact error text or a screenshot of the error.
  3. The step/function you were using when it occurred (e.g., 翻译视频 / 语音转录 / 文字配音), and which channels were selected (ASR / translation / TTS).
  4. If a task failed, copy the last ~30 lines from the newest file in D:/Translator/logs/.

Once you share these details, I can pinpoint the cause.

#2 5.34**9 reply at 1 hour ago


Application started at 2026-09-17 21:27:14

Loading resources...
Loading main window...
Initializing UI...
SetupUI end...
import recognition ...
import tts ...
import translate ...
Get cache ...
Set default value ...
import voices list ...
Set tts voice ...
[DEBUG] Version: v4.12, Frozen:True, OS: win32
上次缓存的角色:No,字幕嵌入类型:2,发音语言:en,目标语言:zh-cn,目标语言代码:None,模型:large-v3-turbo,TTS渠道[0]
show main window ...
Bind signal...
set cursor...
preload TTS win...
preload STT win...
preload translate srt win...
end
[DEBUG] 平台: Windows。正在按优先级检测最佳的 'h264' 编码器: ['nvenc', 'qsv', 'amf']
[DEBUG] 可用 Nvidia 显卡数: 1
[DEBUG] 正在测试编码器是否可用: h264_nvenc...
[DEBUG] 找到 1 个 Nvidia GPUs, 耗时: 4s
[DEBUG] cpu_count=12,app_cfg.MAX_GPU_PROCESS=1, app_cfg.MAX_CPU_PROCESS=2, task_nums=2
[DEBUG] start 17 jobs
[DEBUG] 硬件编码器 'h264_nvenc' 可用。
[DEBUG] 已选择硬件编码器: h264_nvenc
[DEBUG] 最终确定使用的编码器: h264_nvenc
[DEBUG] 平台: Windows。正在按优先级检测最佳的 'hevc' 编码器: ['nvenc', 'qsv', 'amf']
[DEBUG] 正在测试编码器是否可用: hevc_nvenc...
[DEBUG] 硬件编码器 'hevc_nvenc' 可用。
[DEBUG] 已选择硬件编码器: hevc_nvenc
[DEBUG] 最终确定使用的编码器: hevc_nvenc
[DEBUG] app_cfg.proxy=''
[DEBUG] 可以使用 huggingface.co
[DEBUG] The file info after process:result={'video_fps': 7.0, 'r_frame_rate': 7.0, 'video_codec_name': 'av1', 'audio_codec_name': 'opus', 'width': 1920, 'height': 1082, 'time': 25159708, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
Exception ignored in:
Traceback (most recent call last):
File "wave.py", line 326, in del
File "wave.py", line 444, in close
File "wave.py", line 467, in _ensure_header_written
File "wave.py", line 479, in _write_header
struct.error: argument out of range

#3 DeepSeek reply at 1 hour ago

struct.error: argument out of range 发生在 Python 标准库 wave.py_write_header(写入 WAV 文件头)阶段,通常意味着生成的音频数据量超出了 WAV 头字段的容量范围,或音频参数/时长异常。此错误出现在程序启动后的编码器检测阶段(注意异常前的日志显示 Exception ignored,属于被忽略的非致命异常),需结合实际处理任务判断。

暂无法确定具体触发场景的原因。请提供以下信息以便分析:

  1. 该报错是在软件启动时出现,还是点击开始执行后处理某个视频时出现?
  2. 涉及的音频/视频时长、采样率等信息(日志中显示视频为 av1/opus,1920x1082,fps 7.0)。
  3. 软件安装目录 D:/Translator/logs/ 下最新日志文件底部约 30 行内容。

补充提示:

  • 日志中视频帧率为 7.0 fps,属于非常规低帧率,可能是经过特殊处理的视频。
  • 若该异常出现在语音识别或配音阶段生成的临时音频上,建议将高级选项中的计算数据类型/音频参数保持默认后再试。

请查阅相关文档:

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