我正在尝试安装 MediaInfo Python 3.13(Ubuntu),但安装过程并未按预期进行。
https://pymediainfo.readthedocs.io/en/stable/
from pymediainfo import MediaInfo
media_info = MediaInfo.parse('/video.mp4')
for track in media_info.tracks:
print(media_info)
按照说明进行操作,OC Ubuntu。
当尝试执行代码时,给出命令。返回错误。
Traceback (most recent call last):
File "/var/www/user/data/www/c.py", line 11, in <module>
media_info = MediaInfo.parse(file)
File "/usr/local/lib/python3.13/dist-packages/pymediainfo/__init__.py", line 434, in parse
lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dist-packages/pymediainfo/__init__.py", line 329, in _get_library
raise OSError(
...<3 lines>...
)
OSError: Failed to load library from libmediainfo.so.0 - libmediainfo.so.0: cannot open shared object file: No such file or directory
请告诉我我做错了什么以及如何解决?