#7909 最后一步字幕配音嵌入时出错[in#0 @ 0000022c66f11d80] Error opening input: No such file or directory Error opening input file matched_s

206.14**3 Posted at: 2 hours ago

最后一步字幕配音嵌入时出错[in#0 @ 0000022c66f11d80] Error opening input: No such file or directory Error opening input file matched_source.mp4. Error opening input files: No such file or directory (returncode=4294967294)
最终合成失败现场已保存: D:/电影/10.6/不速之客/matched_source-mp4/final_assemble_failed_20261010_123307
Traceback (most recent call last):
File "I:\dy\pyvideotrans\videotrans\task\_stage_assemble.py", line 564, in _subprocess

subprocess.run(

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-nostdin', '-y', '-progress', 'compose1791606787.1594672.txt', '-i', 'matched_source.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', '-fps_mode', '
......
excepts.VideoTransError: 最后一步字幕配音嵌入时出错[in#0 @ 0000022c66f11d80] Error opening input: No such file or directory Error opening input file matched_source.mp4. Error opening input files: No such file or directory (returncode=4294967294)
最终合成失败现场已保存: D:/电影/10.6/不速之客/matched_source-mp4/final_assemble_failed_20261010_123307

trk=[TransCreate]: uuid='3df04e5540', proxy_str='http://127.0.0.1:10808', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/电影/10.6/不速之客/shot_match_20261010_122829/matched_source.mp4,
输出结果保存到文件夹: D:/电影/10.6/不速之客/matched_source-mp4,
临时文件夹: I:/dy/pyvideotrans/tmp/14264/3df04e5540
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), tiny, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:葡萄牙语(巴西), 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Antonio(Male/BR), 配音语言:葡萄牙语(巴西), 未选 二次语音识别
音量:+0%, 语速:+30%, 未选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
已选 分离人声与背景声,存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址: http://127.0.0.1:10808, precent=95, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='I:/dy/pyvideotrans/tmp/14264/3df04e5540/vocal.wav', should_recogn2=False, do_diarize=True
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/电影/10.6/不速之客/shot_match_20261010_122829/matched_source.mp4,
输出结果保存到文件夹: D:/电影/10.6/不速之客/matched_source-mp4,
临时文件夹: I:/dy/pyvideotrans/tmp/14264/3df04e5540
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), tiny, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:葡萄牙语(巴西), 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Antonio(Male/BR), 配音语言:葡萄牙语(巴西), 未选 二次语音识别
音量:+0%, 语速:+30%, 未选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
已选 分离人声与背景声,存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址: http://127.0.0.1:10808
video_duration_ms=170670


=
system:Windows-10-10.0.19041-SP0
version:v4.15
frozen:False
language:zh_CN
root_dir:I:/dy/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:临时工作目录中缺少 matched_source.mp4 文件,导致 FFmpeg 找不到输入文件。

从日志可见:

  • 原始输入路径:D:/电影/10.6/不速之客/shot_match_20261010_122829/matched_source.mp4
  • 临时目录:I:/dy/pyvideotrans/tmp/14264/3df04e5540
  • FFmpeg 报错:Error opening input file matched_source.mp4

FFmpeg 是在临时目录下以相对路径 matched_source.mp4 调用的,说明该文件应被复制/链接到临时目录,但实际不存在。

可能原因:

  1. 原始视频路径中含有中文、空格及超长目录(D:/电影/10.6/不速之客/...),在复制到临时目录或调用 FFmpeg 时路径解析失败;
  2. 原始文件在任务执行期间被移动/删除/重命名;
  3. 杀毒软件(如 360、火绒、Defender)隔离或拦截了该 mp4 文件的写入。

解决方法:

  1. 缩短并纯英文路径:将视频移动到浅层且纯英文数字的目录,例如 D:/videos/test.mp4,重新执行任务。这是此类报错最常见有效的解决办法。
  2. 确认原始文件 matched_source.mp4 在执行期间未被移动、删除或占用。
  3. 检查杀毒软件是否将软件目录(I:/dy/pyvideotrans)和输出盘加入白名单,避免拦截临时文件复制。
  4. 勾选"清理已生成",重新完整执行一次任务。

如果按以上操作后仍报同样错误,请提供 I:/dy/pyvideotrans/logs/ 下最新的日志文件(含报错前后约 30 行),以便进一步分析。

请查阅相关文档:

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