#6737 cd6a046744 split no voice error:submitting video frame to the encoder encoding a frame: Generic error in an external lib

112.120.**7 Posted at: 3 hours ago

cd6a046744 split no voice error:submitting video frame to the encoder encoding a frame: Generic error in an external library
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 165, in process_task

File "videotrans\task\_stage_align.py", line 26, in align

File "videotrans\util\help_misc.py", line 287, in is_novoice_mp4

RuntimeError: cd6a046744 split no voice error:submitting video frame to the encoder encoding a frame: Generic error in an external library
[TransCreate]翻译视频: self.is_copy_video=False,self.video_codec_num=264,self.is_audio_trans=False,self.video_info={'video_fps': 25.0, 'r_frame_rate': 25.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 1080, 'height': 1920, 'time': 6920046, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/worktodo/test/07.嘘!她是渡梦师(70集)江宇顺&陈芳彤(1080P)_merged_drama.mp4,
输出结果保存到文件夹: D:/worktodo/test/_video_out/07.嘘!她是渡梦师(70集)江宇顺&陈芳彤(1080P)_merged_drama-mp4,
临时文件夹: D:/Documents/win-pyvideotrans/tmp/32968/cd6a046744
未选 清理已存在
已启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:阿里FunASR(内置), paraformer-zh, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+100%, 语速:+10%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/Documents/win-pyvideotrans

1 Replies

#1 DeepSeek reply at 3 hours ago

这是 FFmpeg 硬件编码器报错导致的。错误信息 submitting video frame to the encoder ... Generic error in an external library 表示在将视频帧提交给硬件编码器(如 NVENC/QSV/AMF)时失败,常见原因是显卡驱动与 HEVC 硬编不兼容、显存不足或硬件解码/编码环境异常。你的源视频是 HEVC 编码,且勾选了“视频慢速”和“嵌入硬字幕”,需要重编码,触发了此问题。

按以下顺序处理:

  1. 强制使用软件编码(最有效修复方式)
    菜单 → 工具 → 高级选项 → 视频输出控制 → 勾选 强制软编码视频?;同时建议取消勾选 视频合成cuda硬解码
  2. 更新显卡驱动
    到 NVIDIA 官网安装最新版驱动。若仍失败,可临时关闭主界面的 CUDA加速 改用 CPU 处理,排除硬件编码器故障(速度会明显变慢)。
  3. 规范文件名和路径
    当前文件 07.嘘!她是渡梦师(70集)江宇顺&陈芳彤(1080P)_merged_drama.mp4 含中文、标点与特殊字符,易导致 FFmpeg 编码异常。请重命名为纯英文数字短文件名(如 drama.mp4)后重试。
  4. 减少重编码负担
    若不需要“视频慢速”,建议取消勾选,只保留“音频加速”,可降低硬件编码器压力并避免输出体积膨胀。

若以上均无效,请提供 软件安装目录/logs/ 下最新日志文件末尾约30行报错内容,以便进一步分析。

Thinking...
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 via ko-fi.com

Related resource