使用python的视频元数据

问题描述:

您好,请按照说明使用Python提取视频元标签. 在 stackoverflow 上,我发现了Windows不支持的kaa模块. 谁能建议我可以在所有平台上运行的python库?

Hi want to extract video meta tags using Python as described. On stackoverflow, I found kaa module which is not supported in Windows. Can anyone suggest me python library that can work on across the platforms?

您是否看到过霍乔尔(Hachoir)?它从多媒体文件中提取元数据".

Have you seen Hachoir? It 'extracts metadata from multimedia files'.

不同的文件格式解析器会提供不同级别的详细信息,但这可能正是您所需要的.这是从AVI文件中提取元数据的示例:

The different file format parsers give differing levels of detail, but it might be what you are looking for. Here's an example of metatdata extraction from an AVI file:

$ hachoir-metadata pacte_des_gnous.avi
Common:
- Duration: 4 min 25 sec
- Comment: Has audio/video index (248.9 KB)
- MIME type: video/x-msvideo
- Endian: Little endian
Video stream:
- Image width: 600
- Image height: 480
- Bits/pixel: 24
- Compression: DivX v4 (fourcc:"divx")
- Frame rate: 30.0
Audio stream:
- Channel: stereo
- Sample rate: 22.1 KHz
- Compression: MPEG Layer 3