rust-mp4ameta
A library for reading and writing iTunes style MPEG-4 audio metadata.
Examples
The easy way
let mut tag = read_from_path.unwrap;
println!;
tag.set_artist;
tag.write_to_path.unwrap;
The hard way
use ;
let mut tag = read_from_path.unwrap;
let artist_ident = FourCC;
let artist = tag.string.next.unwrap;
println!;
tag.set_data;
tag.write_to_path.unwrap;
Using freeform identifiers
use ;
let mut tag = read_from_path.unwrap;
let isrc_ident = new;
let isrc = tag.string.next.unwrap;
println!;
tag.set_data;
tag.write_to_path.unwrap;
Supported Filetypes
- M4A
- M4B
- M4P
- M4V
Useful Links
- AtomicParsley docs
- Mutagen docs
- QuickTime spec
- QuickTime container
- MusicBrainz Picard tag mapping
- Filetype list
Testing
Run all tests:
cargo test
Test this library on your collection:
cargo test -- --nocapture collection <path>