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

2602:f6f6* Posted at: 2 hours ago 👁7

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

1 Replies

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

请按以下步骤尝试解决:

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

请查阅相关文档:

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