Where tags are
Musepack uses the tags of MP3, which are described on those pages. The usual one is APEv2. Where they sit:
| Tag | Position | Description |
|---|---|---|
| APEv2 | After the stream end packet (SV8) or after the last frame (SV7), or at the very end | APEv2 tags: a header, items of key and value, and usually a footer |
| ID3v1 | The last 128 bytes | ID3v1 |
| Lyrics3 | Before an ID3v1 tag, at the end | Described with the other tags |
| ID3v2 | At the start of the file, before MPCK or MP+ | ID3v2; skipped to find the stream |
| APEv2 without preamble | Inside a CT chapter packet | A 24-byte header, the items and optionally a footer, with no APETAGEX preamble. See CT |
An SV8 stream ends at its SE packet, so everything after it is a tag. An SV7 stream has no end marker: it ends after the frames (padded to a whole 32-bit word) and tags are found from the end of the file backwards.
Common APEv2 items
Items such as Title, Artist, Album, Year, Track, Genre and Comment, and Cover Art (Front), which holds a file name, a zero byte and the picture. The viewer lists every item with its value, shows binary items as such, and shows any picture it finds as an image.
Divergence from the specification
- The APEv2 specification describes a tag with an APETAGEX header; the chapter packet of SV8 carries the tag without it, as the SV8 specification states.
Sources
- APEv2 specification (Hydrogenaudio wiki, saved in research/musepack/spec).
- Musepack SV8 specification (archived), the chapter packet.