>> reader = imagei-6ren">
gpt4 book ai didi

python imageio.get_reader() 返回格式错误

转载 作者:行者123 更新时间:2023-12-04 23:22:12 25 4
gpt4 key购买 nike

import imageio

reader = imageio.get_reader("./t.mp4")
如上所示,使用 python 3.6.10,它返回:
>>> reader = imageio.get_reader("../")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
return format.get_reader(request)
File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader
return self.Reader(self, request)
File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__
self._open(**self.request.kwargs.copy())
File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open
self._initialize()
File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize
shell=ISWIN)
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1'

我到处搜索,但没有看到任何类似的问题。脚本在Opensuse Leap 15.1上运行,和我使用的系统有关系吗?

最佳答案

我更新了 imageio(从 2.3.0 到 2.9.0)包以及 ffmpeg-python 包,它现在运行良好。

关于python imageio.get_reader() 返回格式错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63446748/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com