mextractor can extract media metadata to YAML and read them
Project description
mextractor: media metadata extractor
Videos and images can be large.
Installation
Download and install from PyPi with pip
:
pip install mextractor
Usage
Extract and dump metadata
import mextractor
metadata = mextractor.extract_and_dump(path_to_dump, path_to_media)
Load media
Video
import mextractor
video_metadata = mextractor.parse_file(path_to_metadata)
print(video_metadata.fps)
print(video_metadata.frames)
print(video_metadata.resolution)
print(video_metadata.seconds)
print(video_metadata.path)
print(video_metadata.bytes)
Image
import mextractor
image_metadata = mextractor.parse_file(path_to_metadata)
print(image_metadata.resolution)
print(image_metadata.path)
print(image_metadata.bytes)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mextractor-1.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for mextractor-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60040eda5147ed88ab67acb1a1f8a8e2e2a19679ef00001734596f6a4367706a |
|
MD5 | 1d12331123fb44d2bc89e021806c2f6f |
|
BLAKE2b-256 | 117a330b3f76decdb864ae7dbb2ee9d74227dbacb5509e0661391c037772d9eb |