#4517 Error while deserializing header: HeaderTooLargeTraceback (most recent call last): File "videotrans\task\_only_one.py",

216.195* Posted at: 5 hours ago 👁17

Error while deserializing header: HeaderTooLarge
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 50, in run
File "videotrans\task\trans_create.py", line 390, in recogn
File "videotrans\recognition\__init__.py", line 259, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_qwenasrlocal.py", line 48, in _exec
File "videotrans\configure\_base.py", line 289, in _new_process
RuntimeError: Error while deserializing header: HeaderTooLarge

1 Replies

Error while deserializing header: HeaderTooLarge 这个错误通常是由于音频数据过大(比如过长视频或高采样率)导致子进程通信时序列化数据超限,常见于本地 Qwen ASR 模型。

解决方案(按推荐顺序尝试):

  1. 缩短音频输入:在“高级选项”中将“最长语音持续秒数”设为 10,并开启“Whisper预分割音频”(即使使用Qwen ASR,预分割也能避免传递整段大音频)。
  2. 降低模型资源占用:确保系统有足够空闲内存(≥16GB),关闭其他占用内存的程序。
  3. 调整CUDA数据类型:在“高级选项-语音识别参数”中将 CUDA数据类型 设为 int8(若使用NVIDIA显卡)。
  4. 改用其他语音识别渠道:如果问题持续,可临时切换到 faster-whisperopenai-whisper(本地),并选择较小的模型(如 base)。

如果上述方法均无效,请提供 logs/ 文件夹中最新的 .log 文件(复制末尾约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.

Related resource