#4292 RuntimeError: e4ed3dfd77 split no voice error:submitting packet to decoder: Cannot allocate memory while opening encoder

2602:f6f6* Posted at: 2 months ago

e4ed3dfd77 split no voice error:submitting packet to decoder: Cannot allocate memory while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. sending frames to consumers: Generic error in an external library parsing NAL unit #0. constructing the frame RPS. parsing NAL unit #0. parsing NAL unit #0. parsing NAL unit #0. parsing NAL unit #0.
Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 119, in run
File "videotrans\task\trans_create.py", line 822, in assembling
File "videotrans\task\trans_create.py", line 1300, in _join_video_audio_srt
File "videotrans\util\help_misc.py", line 299, in is_novoice_mp4
RuntimeError: e4ed3dfd77 split no voice error:submitting packet to decoder: Cannot allocate memory while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. sending frames to consumers: Generic error in an external library parsing NAL unit #0. constructing the frame RPS. parsing NAL unit #0. parsing NAL unit #0. parsing NAL unit #0. parsing NAL unit #0.


=
system:Windows-10-10.0.22631-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.99-420

3 Replies

这是 FFmpeg 在合成视频时,因编码器内存分配失败导致的错误。直白点说,就是你电脑在最后一步“组装”翻译好的视频时,因为视频编码参数或分辨率等原因,内存炸了。

请按以下步骤尝试解决:

  1. 修改高级选项:打开软件顶部菜单栏的 工具/选项 -> 高级选项,找到 视频输出控制 区域,勾选 强制软编码视频?
  2. 降低编码器复杂度(可选):如果问题依旧,尝试将同一个设置区域内的 264/265编码 选项,从 265 改为 264。265编码更吃内存,改用264兼容性更好。
  3. 检查源视频:极少数情况下是源视频文件有损坏。可以先用这段视频单独跑一次任务,看是否每次都在合成阶段报错。如果是,尝试用格式工厂等工具将原视频转为 H.264 编码的 MP4 格式后,再作为源视频使用。

请查阅相关文档:

F5TTS,rror: Fa
iled to spawn: f5-tts_infer-gradio
Caused by: program not found
Press any key to continue . . .

这个错误是因为 pyVideoTrans 尝试自动启动 f5-tts_infer-gradio 服务,但在你的系统里没有找到相关的可执行文件或脚本。你的电脑上并没有正确部署并运行 F5-TTS 的 WebUI 服务。

解决办法很简单:手动部署并运行 F5-TTS 服务,然后在 pyVideoTrans 中填写对应的 API 地址,而不是让软件自动启动它。

请按以下步骤操作:

  1. 根据官方文档部署 F5-TTS WebUI 并启动它:
    📖 F5-TTS 部署与配置教程
    按照教程在你的电脑上启动服务,正常情况会得到一个 Web 地址,如 http://127.0.0.1:7860
  2. 在 pyVideoTrans 中配置 API 地址:
    打开软件主菜单 → TTS设置F5TTS,将你启动后获得的 API 地址填入文本框(默认地址 http://127.0.0.1:7860 即可),点击保存。
  3. 回到主界面,选择 F5-TTS 作为配音渠道,选择相应角色后重新执行任务。此时软件不会再去试图启动外部程序,而是直接调用你已运行的 WebUI 服务,问题即可解决。
如果你希望软件自动启动服务而不是手动运行,则需要确保 f5-tts_infer-gradio 这个程序已经被安装到系统路径中,但通常推荐手动启动 WebUI 更容易控制。
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: ko-fi.com/jianchang512

Related resource