#5239 TaskCfgVTT(uuid='c14c1143ab', name='D:/XHP/拉扯2Blacked.26.05.13.Hope.Heaven.And.Melanie.Marie.Pull.Chapter.2.Pairing.XXX.

39.75* Posted at: 22 hours ago

最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input[faster-whisper(本地内置), Google(免费), Edge-TTS(免费)]
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 59, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1781610748.0760403.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', 'libx264', '-c:a', 'copy', '-crf', '23', '-preset', 'medium', '-movflags', '+faststart', '-t', '0.000000', '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\trans_create.py", line 1444, in _join_video_audio_srt
File "videotrans\util\help_ffmpeg.py", line 88, 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 128, in run
File "videotrans\task\trans_create.py", line 745, in assembling
File "videotrans\task\trans_create.py", line 1458, 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
TaskCfgVTT(uuid='c14c1143ab', name='D:/XHP/拉扯2Blacked.26.05.13.Hope.Heaven.And.Melanie.Marie.Pull.Chapter.2.Pairing.XXX.1080p.HEVC.x265.PRT/1080p.HEVC.x265.PRT.mp4', dirname='D:/XHP/拉扯2Blacked.26.05.13.Hope.Heaven.And.Melanie.Marie.Pull.Chapter.2.Pairing.XXX.1080p.HEVC.x265.PRT', noextname='1080p.HEVC.x265.PRT', basename='1080p.HEVC.x265.PRT.mp4', ext='mp4', target_dir='1080p.HEVC.x265.PRT-mp4', cache_folder='D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612/tmp/368/c14c1143ab', is_cuda=False, source_language='英语', source_language_code='en', source_sub='1080p.HEVC.x265.PRT-mp4/en.srt', source_wav='D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612/tmp/368/c14c1143ab/en.wav', source_wav_output='1080p.HEVC.x265.PRT-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='1080p.HEVC.x265.PRT-mp4/zh-cn.srt', target_wav='D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612/tmp/368/c14c1143ab/target.wav', target_wav_output='1080p.HEVC.x265.PRT-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='base.en', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='1080p.HEVC.x265.PRT-mp4/1080p.HEVC.x265.PRT.mp4', novoice_mp4='D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612/tmp/368/c14c1143ab/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612/tmp/368/c14c1143ab/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.02
frozen:True
language:zh
root_dir:D:/软件/英文翻译播放器/win-pyvideotrans-v4.02-0612

1 Replies

错误核心原因是 FFmpeg 在合成时无法读取预处理生成的无声视频文件 novoice.mp4,通常由以下两个因素导致:

  1. 视频文件路径包含中文、空格或特殊符号(如 拉扯2Blacked...XHP),导致 FFmpeg 命令行解析中断。
  2. 原始视频为 HEVC (x265) 编码,在提取无声视频时未正确转码,生成的文件损坏。

解决方案:

  1. 将视频移动到纯英文路径
    将原始视频 1080p.HEVC.x265.PRT.mp4 直接放到磁盘根目录(例如 D:\video.mp4),路径中不要有汉字、空格、点号、括号等特殊字符。
  2. 启用强制软编码(避免硬件解码兼容问题)
    打开软件菜单 → 工具高级选项视频输出控制,勾选 “强制软编码视频”,然后重新执行任务。
  3. 调整视频编码为 libx264
    在相同页面下,将 “264/265编码” 设置为 264(libx264 兼容性更好),然后重试。
  4. 检查磁盘空间
    确保 tmp 目录所在盘(此处为 D:/软件/英文翻译播放器/...)有足够剩余空间(至少 5GB)。

若以上操作后仍报错,请提供 logs/ 目录下最新的日志文件(底部 30 行左右),以便进一步分析。

请查阅相关文档:

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: ko-fi.com/jianchang512

Related resource