| Crates.io | remeta |
| lib.rs | remeta |
| version | 1.2.0 |
| created_at | 2025-11-19 20:50:26.009606+00 |
| updated_at | 2025-11-23 20:09:06.642027+00 |
| description | A Rust crate for extracting metadata from various audio, video, and image formats. |
| homepage | https://github.com/RoseBlume/Remeta |
| repository | https://github.com/RoseBlume/Remeta |
| max_upload_size | |
| id | 1940771 |
| size | 3,644,741 |
This crate provides metadata extraction for audio, video, bitmap, and vector image formats. It supports reading artist/title info, durations, resolutions, and more.
use std::fs::File;
use std::io::Result;
use remeta::{VideoMetadata, ImageMetadata, SongMetadata};
// Audio
let song = SongMetadata::from_file("song.mp3")?;
println!("{:?}", song);
// Video
let video = VideoMetadata::from_file("movie.mp4")?;
println!("{:?}", video);
// Images (bitmap or vector)
let video = ImageMetadata::from_file("movie.mp4")?;
println!("{:?}", video);
This crate uses optional Cargo features to enable parsing only the formats you need.
flac
id3v1
id3v2
m4a
wav
flac-duration
mp3-duration
m4a-duration
wav-duration
mp4
mkv
avi
mp4-duration
mkv-duration
avi-duration
Enable only the formats you need to reduce compile time and binary size. Example:
[dependencies.remeta]
version = "0.1"
features = ["mp3v2", "wav", "jpg", "png", "svg"]
You can also enable all features for convenience:
[dependencies.remeta]
version = "0.1"
features = ["audio-all", "video-all", "images-all", "vector-all"]
-duration feature is enabled.heic, avif, etc.).