#9054 Traceback (most recent call last): File

206.14**3 Posted at: 9 minutes ago

Traceback (most recent call last):
File "I:\dy\dy\pyvideotrans\videotrans\mainwin\_actions_shot_match.py", line 173, in _run_shot_match

results = run_match_job(

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 3923, in run_match_job

results = match_shots(

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 3454, in match_shots

commentary_shots = _load_commentary_shots(

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 2942, in _load_commentary_shots

supplemental = hard_cuts.result() if hard_cuts is not None else None

File "I:\dy\dy\pyvideotrans.runtime\python\lib\concurrent\futures\_base.py", line 458, in result

return self.__get_result()

File "I:\dy\dy\pyvideotrans.runtime\python\lib\concurrent\futures\_base.py", line 403, in __get_result

raise self._exception

File "I:\dy\dy\pyvideotrans.runtime\python\lib\concurrent\futures\thread.py", line 58, in run

result = self.fn(*self.args, **self.kwargs)

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 126, in detect_shots_ffmpeg

proc = _run_scene_detection(cmd)

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 75, in _run_scene_detection

return run_scene_command(cmd, cpu_runner=_run_scene_detection_cpu)

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_scene_decoder.py", line 67, in run_scene_command

return cpu_runner(cmd)

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 96, in _run_scene_detection_cpu

raise RuntimeError(f'Scene detection failed: {(proc.stderr or "")[-1000:]}')

RuntimeError: Scene detection failed: 3333 duration: 1 duration_time:0.0333333 fmt:yuv420p cl:left sar:1/1 s:720x960 i:P iskey:0 type:P checksum:BFA3ACF1 plane_checksum:[AF3B1B4C 9B7BDC1D C27CB579] mean:[63 124 132] stdev:[53.4 10.2 10.3]
[Parsed_showinfo_1 @ 0000018927aced80] color_range:tv color_space:bt709 color_primaries:bt709 color_trc:bt709
[Parsed_metadata_2 @ 0000018927acf180] frame:303 pts:4636 pts_time:154.533333
[Parsed_metadata_2 @ 0000018927acf180] lavfi.scene_score=0.101354
[Parsed_showinfo_1 @ 0000018927aced80] n: 304 pts: 4670 pts_time:155.666667 duration: 1 duration_time:0.0333333 fmt:yuv420p cl:left sar:1/1 s:720x960 i:P iskey:0 type:P checksum:EF8789C5 plane_checksum:[66CB7133 8ABC007E C2331814] mean:[65 121 139] stdev:[58.0 9.1 13.5]
[Parsed_showinfo_1 @ 0000018927aced80] color_range:tv color_space:bt709 color_primaries:bt709 color_trc:bt709
[Parsed_metadata_2 @ 0000018927acf180] frame:304 pts:4670 pts_time:155.666667
[Parsed_metadata_2 @ 0000018927acf180] lavfi.scene_score=0.483340


=
system:Windows-10-10.0.26100-SP0
version:v4.15
frozen:False
language:zh_CN
root_dir:I:/dy/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 9 minutes ago

该报错来自“文稿匹配与打轴”内部的 FFmpeg 场景检测子模块(shot_matcher.py / shot_scene_decoder.py):场景检测子进程执行失败后,异常被包装成 RuntimeError: Scene detection failed。知识库中没有关于该功能的具体排查条目,因此暂无法确定根本原因。

可先做两项通用排查:

  1. 把待处理视频移到浅层纯英文数字目录(如 D:/work/1.mp4),文件名删掉表情符号和特殊字符,避免 FFmpeg 命令行解析失败或路径过长。
  2. 确认在软件根目录下 ffmpeg/ 内的 ffmpeg 可正常执行,并且软件未被安全软件拦截子进程调用。

若仍报错,请提供软件安装目录 logs/ 文件夹中最新日志的底部约 30 行报错信息(特别是 ffmpeg 实际执行的命令行与退出码),以便分析。

请查阅相关文档:

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