#6794 合并阶段出错 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening inpu

183.226.**3 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\util\_ffmpeg_runner.py", line 49, in runffmpeg

File "subprocess.py", line 526, in run

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1787340711.7350438.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-i', 'end.srt', '-map', '0:v', '-map', '1:a', '-map', '2:s', '-c:v', 'copy', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=zho', '-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 242, 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\job.py", line 35, in run

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

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
[TransCreate]翻译视频: self.is_copy_video=False,self.video_codec_num=264,self.is_audio_trans=False,self.video_info={'video_fps': 23.976023976023978, 'r_frame_rate': 23.976023976023978, 'video_codec_name': 'hevc', 'audio_codec_name': 'flac', 'width': 3840, 'height': 2160, 'time': 1532035, 'streams_len': 51, 'streams_audio': 2, 'video_streams': 1, 'color': 'yuv420p10le'}
[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/下载/辉夜大小姐想让我告白:初吻不会结束/Season 1/辉夜大小姐想让我告白:初吻不会结束(剧集版) - S01E01 - 白银御行想谈谈.mkv,
输出结果保存到文件夹: D:/下载/辉夜大小姐想让我告白:初吻不会结束/Season 1/_video_out/辉夜大小姐想让我告白:初吻不会结束(剧集版) - S01E01 - 白银御行想谈谈-mkv,
临时文件夹: D:/win-pyvideotrans-v4.10/tmp/9280/fd57abe775
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕


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

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是:合成阶段需要读取预处理时生成的无声视频文件 novoice.mp4,但该文件无效或损坏(可能是 0 字节或未完整写入),导致 ffmpeg 报 Invalid data found when processing input

可尝试以下步骤排查:

  1. 检查临时文件:打开文件夹 D:/win-pyvideotrans-v4.10/tmp/9280/fd57abe775,查看 novoice.mp4 是否存在及其大小。若大小为 0 或极小,说明提取失败。
  2. 重新处理并清理缓存:在主界面勾选「清理已生成」,然后再次点击「开始执行」,让软件强制重新生成所有中间文件。
  3. 简化源视频路径与文件名:当前源视频路径和文件名包含中文、冒号、括号和空格,易引发底层工具异常。请将源视频复制到纯英文目录并重命名为简单名称(例如 D:/test/video.mkv),再导入处理。
  4. 检查磁盘剩余空间:4K HEVC 视频提取中间文件较大,磁盘空间不足可能导致写入不完整。请确保目标磁盘至少有数 GB 可用空间。
  5. 强制软编码:若仍失败,可进入 菜单 → 工具 → 高级选项 → 视频输出控制,勾选「强制软编码视频?」后重试,排除硬件解码兼容性问题。

若上述方法均无效,请提供:

  • 软件左上角的版本号(已知为 v4.10);
  • logs/ 文件夹中最新日志(底部约 30 行);
  • 上述临时文件夹中 novoice.mp4 的文件大小信息。

请查阅相关文档:

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