A library for reading and writing iTunes style MPEG-4 audio metadata.
```rust let mut tag = mp4ameta::Tag::readfrompath("music.m4a").unwrap();
println!("{}", tag.artist().unwrap());
tag.set_artist("artist");
tag.writetopath("music.m4a").unwrap(); ```
```rust use mp4ameta::{atom, Data, FourCC, Tag};
let mut tag = Tag::readfrompath("music.m4a").unwrap(); let artist_ident = FourCC(*b"\xa9ART");
let artist = tag.string(&artist_ident).next().unwrap(); println!("{}", artist);
tag.setdata(artistident, Data::Utf8("artist".to_owned()));
tag.writetopath("music.m4a").unwrap(); ```
```rust use mp4ameta::{Data, FreeformIdent, Tag};
let mut tag = Tag::readfrompath("music.m4a").unwrap(); let isrc_ident = FreeformIdent::new("com.apple.iTunes", "ISRC");
let isrc = tag.string(&isrc_ident).next().unwrap(); println!("{}", isrc);
tag.setdata(isrcident, Data::Utf8("isrc".to_owned()));
tag.writetopath("music.m4a").unwrap(); ```
Run all tests:
cargo test
Test this library on your collection:
cargo test -- --show-output collection <path>