#4234 RuntimeError: 858ad8b551 split no voice error:while opening encoder - maybe incorrect parameters such as bit_rate, rate,

240e:39e* Posted at: 2 hours ago 👁6

858ad8b551 split no voice error: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\_mult_video.py", line 42, 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: 858ad8b551 split no voice error: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. 检查视频文件:使用播放器(如PotPlayer、VLC)确认该视频能否正常播放,且播放时无花屏、黑屏等异常。
  2. 检查视频编码:该视频可能采用了软件不支持的编码格式(如非常规的H.265变体、AV1等)。可尝试将视频先转换为H.264编码的MP4格式(可使用格式工厂、ShanaEncoder等工具再试)。
  3. 使用旧版兼容模式:在菜单栏 工具 → 选项 → 高级选项 → 视频输出控制 中,勾选 强制软编码视频,然后重试。
  4. 缩短文件路径:将视频文件移到一个很浅的目录下,并重命名为简短纯英文/数字名称(如 D:/test.mp4),然后重试。
  5. 禁用GPU解码:在 高级选项 → 视频输出控制 中,取消勾选 视频合成cuda硬解码,然后重试。

如果以上步骤均无效,请提供该视频的详细编码信息(可用MPC-BE或MediaInfo查看)以及 logs/ 目录下的最新日志,以便进一步分析。

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