#8966 Traceback (most recent call last): File

206.14**3 Posted at: 2 hours ago

Traceback (most recent call last):
File "I:\dy\dy\pyvideotrans\videotrans\util\_ffmpeg_runner.py", line 94, in runffmpeg

subprocess.run(

File "I:\dy\dy\pyvideotrans.runtime\python\lib\subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-ss', '90.904', '-i', 'D:/电影/11.25/搬运/去字幕/3/7663099076371696926.mp4', '-map', '0:v:0', '-an', '-sn', '-dn', '-frames:v', '1', '-q:v', '2', 'D:/电影/11.25/搬运/去字幕/3/shot_match_20261125_195921/_shot_match_temp/frames/commentary_aspect_reference/shot_00128_00_90904.jpg']' returned non-zero exit status 4294967274.

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

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 3863, in run_match_job

results = match_shots(

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

commentary_samples, aspect_samples = extract_commentary_samples(

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 1403, in extract_commentary_samples

extract_samples(video_path, reference_shots, work_dir, 'commentary_aspect_reference'),

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 1249, in extract_samples

pyav_samples = _extract_samples_with_pyav(video_path, requested, frame_dir)

File "I:\dy\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 1200, in _extract_samples_with_pyav

for item, final_path in pool.map(extract_one, missing):

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

yield _result_or_cancel(fs.pop())

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

return fut.result(timeout)

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 1181, in extract_one

runffmpeg([

File "I:\dy\dy\pyvideotrans\videotrans\util\_ffmpeg_runner.py", line 139, in runffmpeg

raise FFmpegError(err) from e

videotrans.configure.excepts.FFmpegError: [vf#0:0 @ 000002bd9154bfc0] Error sending frames to consumers: Invalid argument [vf#0:0 @ 000002bd9154bfc0] Task finished with error code: -22 (Invalid argument) [vf#0:0 @ 000002bd9154bfc0] Terminating thread with return code -22 (Invalid argument) [vost#0:0/mjpeg @ 000002bd91514bc0] Task finished with error code: -22 (Invalid argument) [vost#0:0/mjpeg @ 000002bd91514bc0] Terminating thread with return code -22 (Invalid argument) Conversion failed! (returncode=4294967274)


=
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 2 hours ago

该报错并非翻译主流程的错误,而是"镜头匹配"功能在用 FFmpeg 抽取单帧并编码为 JPG 时,编码管线被底层拒绝(return code -22 = Invalid argument,4294967274 即 -22 的无符号表示)。这类 -22 错误通常由下面几种情况触发:视频路径/文件名含中文、空格或特殊符号;该帧分辨率异常(如奇数宽高)导致 mjpeg 编码器拒收;或该时间点画面为损坏帧/无有效视频帧。

处理建议:

  1. 把源视频复制到浅层纯英文数字目录,并重命名为简短英文名(例如 D:/vid/1.mp4),不要放在 D:/电影/11.25/搬运/去字幕/3/ 这类含中文与多层目录的路径下,然后重新执行镜头匹配。
  2. 打开 菜单 → 工具/选项 → 高级选项 → 视频输出控制,勾选 强制软编码视频? 后再试(绕过硬件编码/解码路径)。
  3. 你当前版本为 v4.15,镜头匹配模块后续版本有多次修复,建议升级到最新 v4.19 完整包后复测。
  4. 若以上均无效,说明是特定视频帧或特定时间点(90.904 秒处)触发的编码失败,需要日志定位。

请提供软件安装目录下 logs/ 文件夹中对应日期日志文件底部约 30 行内容(含该 FFmpeg 完整命令行与 runner 相关输出),以便进一步判断是路径问题还是编码参数问题。

补充说明:你贴出的 videotrans/task/shot_matcher.py、_actions_shot_match.py 属于镜头匹配相关逻辑,现有知识库未覆盖该功能的报错条目,因此上述判断基于通用 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