Python native library to read metadata from videos?

ε祈祈猫儿з 提交于 2019-11-27 15:51:52

I have used hachoir-metadata succesfully: http://pypi.python.org/pypi/hachoir-metadata

I have used PyExifTool, a wrapper for the command line program, exif tool. You can get the library here (I think this is the result of the related question in Sven's comment).

The neat thing about PyExifTool is that it also parses the metadata into a dictionary for you.

I used it on a list of file names from os.walk.

import exiftool 
exif_Executable="<path to exif executable>"    

with exiftool.ExifTool(executable_=exif_Executable) as et:
        metadata = et.get_metadata_batch(fileList)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!