#4189 RuntimeError: 5dc6107afa split no voice error:parsing NAL unit #0. parsing NAL unit #0. submitting packet to decoder: Ca

171.213* Posted at: 1 day ago 👁22

5dc6107afa split no voice error:parsing NAL unit #0. parsing NAL unit #0. submitting packet to decoder: Cannot allocate memory constructing the frame RPS. parsing NAL unit #0. parsing NAL unit #0. submitting packet to decoder: Cannot allocate memory 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
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: 5dc6107afa split no voice error:parsing NAL unit #0. parsing NAL unit #0. submitting packet to decoder: Cannot allocate memory constructing the frame RPS. parsing NAL unit #0. parsing NAL unit #0. submitting packet to decoder: Cannot allocate memory 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


=
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. 关闭其他占用内存的程序:在运行 pyVideoTrans 前,关闭所有不必要的软件(尤其是浏览器、大型游戏、设计软件等),释放系统内存。
  2. 降低视频处理负载

    • 避免同时处理多个视频。如果正在批量处理,请在“菜单 -> 工具/选项 -> 高级选项”中,勾选 批量翻译时强制串行,改为逐个处理。
    • 如果视频分辨率过高(如 4K 或更高),可以尝试先使用其他工具将视频分辨率降低(如降至 1080p),再进行翻译处理。
  3. 调整软件高级设置

    • 进入“菜单 -> 工具/选项 -> 高级选项”。
    • 【视频输出控制】 区域,尝试勾选 强制软编码视频?。这会降低处理速度但可能提高兼容性,减少内存峰值占用。
    • 输出视频压缩率slow/slower 等选项改为 fastveryfast,以降低编码复杂度。
  4. 检查临时文件路径:确保软件安装目录(D:/win-pyvideotrans-v3.99-420)所在磁盘有足够的剩余空间(建议大于原视频总大小的5-10倍)。处理过程中产生的临时文件可能占用大量空间。
  5. 重启软件和电脑:完成上述设置后,重启 pyVideoTrans。如果问题依旧,重启电脑以彻底释放被占用的内存。

如果以上步骤均无效,可能是视频文件本身编码异常。可以尝试使用其他视频转换工具(如 HandBrake)将原视频重新编码为标准 H.264 MP4 格式后,再用 pyVideoTrans 处理。

请查阅相关文档:

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