libavformat.so找不到

2024-10-01 07:35:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我在运行pyfmpeg时遇到问题,当我尝试导入下面的代码时,会出现错误:

libavformat.so can not found

我怎样才能解决这个我找不到足够信息的问题它。谢谢.. 在

操作系统:Ubuntu 12.04 Python版本:2.7

import pyffmpeg

stream = pyffmpeg.VideoStream()
stream.open('test.mp4')
image = stream.GetFrameNo(0)
image.save('firstframe.png')

问题解决: 我从这里http://rpmfind.net/linux/rpm2html/search.php?query=libavformats52下载libs并复制到/usr/lib/

但现在又出现了一个新的问题,它给出了错误:

wrong ELF class: ELFCLASS32


Tags: 代码imageimport版本信息streamsoubuntu
1条回答
网友
1楼 · 发布于 2024-10-01 07:35:42

在安装所有依赖库之前,这可能无法工作,因此 使用apt-get安装ffmpeg库:

sudo apt-get install ffmpeg

这将安装“ffmpeg编码/解码”的所有依赖项,可能需要pyffmpeg库。在

相关问题 更多 >