使用python的视频元数据 [英] Video meta data using python

查看:103
本文介绍了使用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

这篇关于使用python的视频元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆