我在运行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
在安装所有依赖库之前,这可能无法工作,因此 使用
apt-get
安装ffmpeg库:这将安装“ffmpeg编码/解码”的所有依赖项,可能需要pyffmpeg库。在
相关问题 更多 >
编程相关推荐