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

183.179**0 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 48, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-progress', 'compose1792185149.7307656.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', 'slow', '-movflags', '+faststart', '-fps_mode', 'vfr', '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 77, 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 165, in run
File "videotrans\task\_stage_assemble.py", line 26, in assembling
File "videotrans\task\_stage_assemble.py", line 256, 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

trk=[TransCreate]: uuid='146adeb648', proxy_str='http://127.0.0.1:10090', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/13494/Desktop/98/www.98T.la@SSIS-013_restored.mp4,
输出结果保存到文件夹: C:/Users/13494/Desktop/98/新建文件夹/www.98T.la@SSIS-013_restored-mp4,
临时文件夹: C:/Users/13494/Desktop/新建文件夹/tmp/18004/146adeb648
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), small, 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10090, precent=95, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=9544800


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:C:/Users/13494/Desktop/新建文件夹

1 Replies

#1 DeepSeek reply at 1 hour ago

这是最后合成阶段读取无声视频文件(novoice.mp4)时失败,FFmpeg 报“Invalid data found”通常意味着该文件损坏或不存在。结合你的日志,最可能的原因是路径中包含中文和特殊符号(如“新建文件夹”和“@”),导致 FFmpeg 在读取临时文件时解析失败。

解决方案(按顺序尝试):

  1. 将整个工作目录改为纯英文简单路径:
    把源视频移动到一个仅含英文字母、数字和下划线的路径下(例如 D:\video\),重新打开软件并重新选择该视频,并确保临时目录和输出目录也在纯英文路径下(软件会自动创建,但源视频位置会影响临时目录)。
  2. 检查磁盘空间:C 盘或软件所在盘可能不足,导致 novoice.mp4 写入失败。清理磁盘空间后重试。
  3. 重新执行任务,并勾选“清理已生成”:有时缓存文件损坏,重新跑一遍可恢复。
  4. 若仍失败:删除日志中的临时文件夹(C:/Users/13494/Desktop/新建文件夹/tmp/18004/146adeb648)后重试。

请查阅相关文档:

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