#8866 [in#0 @ 0000021bfd2191c0] Error opening input: No such file or directory Error opening input file target_timeline.wav. E

198.65**9 Posted at: 4 hours ago

[in#0 @ 0000021bfd2191c0] Error opening input: No such file or directory Error opening input file target_timeline.wav. Error opening input files: No such file or directory (returncode=4294967294)
Traceback (most recent call last):
File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\util\_ffmpeg_runner.py", line 94, in runffmpeg

subprocess.run(

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse.runtime\python\lib\subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '1', '-filter_threads', '1', '-y', '-i', 'target_timeline.wav', '-ac', '2', '-b:a', '128k', '-c:a', 'aac', '-threads', '1', 'D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse/tmp/17024/7d6ca17d5c/will_embed.partial.m4a']' returned non-zero exit status 4294967294.

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

Traceback (most recent call last):
File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\task\only_one.py", line 301, in run

trk.assembling()

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\task\_stage_assemble.py", line 139, in assembling

self._join_video_audio_srt()

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\task\_stage_assemble.py", line 338, in _join_video_audio_srt

_run_audio_encode_with_retry(_cmd, target_m4a, attempts=2, cmd_dir=self.cfg.cache_folder,

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\task\_stage_assemble.py", line 121, in _run_audio_encode_with_retry

raise last_exc

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\task\_stage_assemble.py", line 106, in _run_audio_encode_with_retry

runffmpeg(encode_cmd, cmd_dir=cmd_dir)

File "D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\videotrans\util\_ffmpeg_runner.py", line 139, in runffmpeg

raise FFmpegError(err) from e

videotrans.configure.excepts.FFmpegError: [in#0 @ 0000021bfd2191c0] Error opening input: No such file or directory Error opening input file target_timeline.wav. Error opening input files: No such file or directory (returncode=4294967294)

trk=[TransCreate]: uuid='7d6ca17d5c', proxy_str='http://127.0.0.1:10809', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:\1.电影\261121\少年斯派维的奇异旅行 The Young and Prodigious T.S. Spivet (2013)\西语\shot_match_20261121_002833\matched_source.mp4,
输出结果保存到文件夹: D:/1.电影/261121/少年斯派维的奇异旅行 The Young and Prodigious T.S. Spivet (2013)/西语/matched_source-mp4,
临时文件夹: D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse/tmp/17024/7d6ca17d5c
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:西班牙语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Jorge(Male/MX), 配音语言:西班牙语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10809, precent=90, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, 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
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:\1.电影\261121\少年斯派维的奇异旅行 The Young and Prodigious T.S. Spivet (2013)\西语\shot_match_20261121_002833\matched_source.mp4,
输出结果保存到文件夹: D:/1.电影/261121/少年斯派维的奇异旅行 The Young and Prodigious T.S. Spivet (2013)/西语/matched_source-mp4,
临时文件夹: D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse/tmp/17024/7d6ca17d5c
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:西班牙语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Jorge(Male/MX), 配音语言:西班牙语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:10809
video_duration_ms=325366


=
system:Windows-10-10.0.19045-SP0
version:v4.15
frozen:False
language:zh_CN
root_dir:D:/镜头分析软件2/pyVideoTrans-portable-20261120-shot-index-reuse
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

#1 DeepSeek reply at 4 hours ago

核心原因:这是最终合成阶段(assembling)去读取中间产物 target_timeline.wav 时该文件不存在。该文件由前一步“音画对齐(align)”生成,报错点只是“下游找不到上游产物”,并非 ffmpeg 参数本身有误。你当前的组合是“未选音频加速 + 已选视频慢速 + 嵌入硬字幕 + 移除每条字幕配音开头结尾静音缓冲”,属于对齐阶段重编码最复杂的一条路径,中间文件最容易生成失败或生成空文件。

请按顺序排查:

  1. 先确认中间文件是否真的不存在
    打开日志里的临时目录:D:\镜头分析软件2\pyVideoTrans-portable-20261120-shot-index-reuse\tmp\17024\7d6ca17d5c,查看里面是否有 target_timeline.wav、will_embed.partial.m4a,以及各条配音切片(如 1.wav、2.wav)。

    • 若没有 target_timeline.wav:说明对齐阶段中途失败或产出了空文件,问题在“视频慢速”这条链路。
    • 若有但为 0 字节:说明拼接时所有片段时间轴为空(常见于配音切片全部丢失或时长被算成 0)。
  2. 先绕开“视频慢速”重试一次
    取消 视频慢速,改为勾选 配音加速;或两者都不选、改勾 对齐字幕声音。这能判断是否是慢速切片路径导致中间文件未生成。
  3. 取消 移除每条字幕配音开头和结尾静音缓冲 再试
    该选项在某些行配音本身极短时,可能把整段静音移除到接近空,建议先取消,确认能否跑通后再开。
  4. 规范路径(高概率相关)
    当前输入路径含中文、空格、括号与点号:...少年斯派维的奇异旅行 The Young and Prodigious T.S. Spivet (2013)\西语\...,软件根目录也含中文 镜头分析软件2。请把待翻译视频复制到浅层纯英文数字目录(如 D:\vt\v1.mp4)后重试,软件本体也建议放在 D:\pyVideoTrans 这类路径下。
  5. 升级版本
    你使用的是 v4.15(且为源码/portable runtime,非预打包版),对齐与合成阶段后续版本有多次修正,建议升级到 v4.19 后重试。升级时注意补丁包要完整覆盖(包括 videotrans 文件夹等)。
  6. 重试时保持勾选 清理已生成,避免复用上次残缺的临时产物。

若以上执行后仍报同一错误,请提供:

  • 软件目录/logs/ 下当天日志文件底部约 30 行;
  • 上述临时目录内的文件列表(含文件大小);
  • 第 2、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