#7500 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files

116.76**5 Posted at: 1 hour ago

最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input
Traceback (most recent call last):
File "videotrans\task\_stage_assemble.py", line 432, in _subprocess
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-nostdin', '-y', '-progress', 'compose1789950741.070841.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='end.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-cq', '23', '-preset', 'p7', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' returned non-zero exit status 3199971767.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\_stage_assemble.py", line 282, in _join_video_audio_srt
File "videotrans\task\_stage_assemble.py", line 444, in _subproces
......
x', "[0:v]subtitles=filename='end.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'libx264', '-c:a', 'copy', '-crf', '23', '-preset', 'slow', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' returned non-zero exit status 3199971767.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\_stage_assemble.py", line 286, in _join_video_audio_srt
File "videotrans\util\_ffmpeg_runner.py", line 78, in runffmpeg
videotrans.configure.excepts.FFmpegError: opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 164, in run
File "videotrans\task\_stage_assemble.py", line 26, in assembling
File "videotrans\task\_stage_assemble.py", line 289, in _join_video_audio_srt
videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/ak_tj/Downloads/Professor Jiang: 'They're Planning It!' The Draft, Trump's Third Term & Who Gets Sent To Die First.mp4,
输出结果保存到文件夹: C:/Users/ak_tj/Downloads/_video_out/Professor Jiang: 'They're Planning It!' The Draft, Trump's Third Term & Who Gets Sent To Die First-mp4,
临时文件夹: D:/win-pyvideotrans-v4.12/tmp/8228/6b9ddeeac4
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Index-TTS(本地API), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:-27%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕


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

3 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:输入文件 novoice.mp4 损坏或为空(moov atom not found),导致 FFmpeg 无法读取,这是上游预处理阶段生成无声视频时中断或写入失败造成的,与硬/软编码无关(硬件编码和软件编码回退都报同样的错)。

从日志 moov atom not found 可确认:novoice.mp4 是一个未写完的残缺文件。常见诱因:

  1. 临时目录空间不足或路径过长:你的临时目录为 D:/win-pyvideotrans-v4.12/tmp/...,但原始文件名超长(含冒号、单引号'、空格、中文),FFmpeg 拼接命令后极可能触发 Windows 路径解析异常。
  2. 处理过程中被中断过(如中途手动停止、软件崩溃、杀软拦截),留下了残缺的 novoice.mp4

解决方案(按顺序操作)

  1. 规范文件名和路径:将原始视频重命名为纯英文数字下划线,例如 jiang.mp4,并放到浅层目录(如 D:/videos/jiang.mp4)。你当前文件名里的 '、空格是典型的高危字符。
  2. 清理临时缓存:关闭软件,进入 D:/win-pyvideotrans-v4.12/tmp/清空该文件夹内所有内容(残缺的 novoice.mp4 就在这里),然后重新启动软件。
  3. 确认目标盘剩余空间充足(建议 ≥ 原视频体积的 3~5 倍),特别是 D: 盘。
  4. 重新执行翻译任务,并勾选主界面的 清理已生成,强制重新生成所有中间文件。
  5. 若仍报错,可在 菜单 -> 工具 -> 高级选项 -> 视频输出控制 中勾选 强制软编码视频?,排除 NVENC 在本机的兼容性问题。

补充建议

你当前使用了 Index-TTS(本地API) + clone语速:-27%强制对齐字幕和声音,配音耗时可能较长,请确保全程不手动中断任务,否则会再次留下残缺的 novoice.mp4

请查阅相关文档:

#2 116.76**5 reply at 1 hour ago

novoice.mp4在那个路径下

#3 DeepSeek reply at 1 hour ago

novoice.mp4 位于该任务的临时文件夹内,即日志中显示的:

D:/win-pyvideotrans-v4.12/tmp/8228/6b9ddeeac4/novoice.mp4

该路径由「软件目录/tmp/{进程ID}/{任务ID}/」构成,其中 8228 是进程号、6b9ddeeac4 是本次任务的任务ID,每次运行都会变化。

操作建议:

  1. 关闭软件。
  2. 直接进入 D:/win-pyvideotrans-v4.12/tmp/ 文件夹,清空里面所有内容(不必只删 novoice.mp4,整个 tmp 目录可安全清空,软件会自动重建)。
  3. 重命名原视频为纯英文短名并放到浅层目录,重新执行任务。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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