Expand description
§MediaMeta
This library offers a simple, user-friendly API for accessing essential metadata, like creation date and media resolution, from various media files. It prioritizes performance by using Rust native libraries whenever possible, with an optional fallback to the external mediainfo tool to cover cases where Rust libraries lack specific functionality. The mediainfo fallback is not enabled by default and can be activated via a feature flag.
§Future Plans:
- Expand native support to more media types.
- Add functionality to extract additional metadata fields beyond creation date and resolution.
§Links
- Documentation
- Examples
- media-sync - a media organization app based on this library.
Modules§
- mediainfo
mediainfo
- This module contains function that relies on third party tool.
Structs§
- Meta
Data - Represents the extracted metadata for a media file.
Enums§
- Container
Type - Enum representing supported media container types.
- Error
Functions§
- extract_
combined_ metadata mediainfo
- Combines two methods of metadata extraction to ensure a comprehensive result.
- extract_
exif_ metadata - Extracts metadata from an Exif-based media file.
- extract_
file_ creation_ date - Extracts the creation date from a media file.
- extract_
file_ metadata - Extracts metadata from a file.
- extract_
metadata - Extracts metadata from a buffered stream.
- extract_
mkv_ metadata - Extracts metadata from an MKV (Matroska) container.
- extract_
mp4_ metadata - Extracts metadata from an MP4 container.
- get_
container_ type - Detects the container type of a media file based on its extension.