#8042 Traceback (most recent call last): File

206.14**3 Posted at: 2 hours ago

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

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', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-ss', '170.060', '-i', 'D:/电影/10.4/恐怖大师/7684921460535659807.mp4', '-map', '0:v:0', '-an', '-sn', '-dn', '-frames:v', '1', '-q:v', '2', 'D:/电影/10.4/恐怖大师/shot_match_20261013_133634/_shot_match_temp/frames/commentary/shot_00110_00_170060.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\pyvideotrans\videotrans\mainwin\_actions_shot_match.py", line 119, in _run_shot_match

results = run_match_job(

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

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

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\concurrent\futures\_base.py", line 621, in result_iterator

yield _result_or_cancel(fs.pop())

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\concurrent\futures\_base.py", line 319, in _result_or_cancel

return fut.result(timeout)

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\concurrent\futures\_base.py", line 458, in result

return self.__get_result()

File "C:\Users\Administrator\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\concurrent\futures\_base.py", line 403, in __get_result

raise self._exception

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

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

File "I:\dy\pyvideotrans\videotrans\task\shot_matcher.py", line 378, in extract_one

runffmpeg([

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

raise FFmpegError(err) from e

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


=
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

该错误源于 ffmpeg 从视频中提取帧时失败(返回码 -22 Invalid argument),通常与视频文件路径含中文/特殊字符、或视频流参数异常有关。

解决步骤

  1. 将视频文件移动到纯英文路径(如 D:/Movies/),并重命名为简单英文数字组合(如 test.mp4),避免中文、空格及特殊符号。
  2. 确认视频文件完整可正常播放;若可能,先用其他工具转码为标准 H.264/MP4 后再测试。
  3. 确保你已升级到最新 v4.15 补丁包(若为源码部署,拉取最新代码覆盖)。
  4. 若问题仍存在,请打开软件目录 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