I wish to add flac support to my Windows audio player so I wanted to ask a few questions. I rely on another lib for decoding/playing flac audio files so all I need to explicitly add support for is reading/writing flac metadata. 1st: I've downloaded libflac and have begun browsing. Is there a simple way to identify and carve out the pieces needed only for metadata i/o? Or will I have to figure that out myself? The point is I don't want to build in the entire flac lib when all I'm using is the metadata i/o pieces. 2nd: I've been looking for specs on flac metadata standards for "tag info" like Artist, Genre, title etc. I am unable to locate anything on this. I've dl'ed some sample .flac files and find little help there. Only thing I've found so far is I created flac "tags" with MediaMonkey on a .flac file and examine them. It appears MediaMonkey is writing the "tags" similiarly to the ogg/vorbis "standard", i.e. comment[0]: TITLE=title name comment[1]: ARTIST=Artist name flac 1 comment[2]: ENSEMBLE=Artist name flac 1 comment[3]: ALBUM ARTIST=Artist name flac 1 comment[4]: ALBUM=Album Name flac 1 comment[5]: GENRE=Genre name comment[6]: COMMENT=comment1 comment[7]: ENSEMBLE=Artist name flac 1 comment[8]: TRACKNUMBER=1 comment[9]: DATE comment[10]: DESCRIPTION=desc1 Is this "the standard"? Is "the standard" documented anywhere? Any advice is appreciated. Thanks, Mike
On Sat, Dec 23, 2006 at 05:59:59PM -0600, Mike M wrote:> 2nd: I've been looking for specs on flac metadata standards for "tag info" > [...] > MediaMonkey is writing the "tags" similiarly to the ogg/vorbis "standard",That's correct. FLAC uses the same tag set (and format, roughly) as the the vorbis set. The "official" set is documented here: http://xiph.org/vorbis/doc/v-comment.html if those don't do it for you (it's enough for pop, not classical) there are some more complete collections: http://reactor-core.ogg/ogg-tagging.html http://www.ghophernet.org/articles/vorbiscomment/ (for example) HTH, -r
One thing I would suggest is that in addition to supporting the proper flac metadata tags, you support id3 tags. This isn't explicitly legal but it works with many players and some of us have non-trivial numbers of such files (because we're silly). thanks danno On Sat, Dec 23, 2006 at 05:59:59PM -0600, Mike M wrote:> I wish to add flac support to my Windows audio player so > I wanted to ask a few questions. > > I rely on another lib for decoding/playing flac audio files so all I need to > > explicitly add support for is reading/writing flac metadata. > > 1st: I've downloaded libflac and have begun browsing. Is there a simple way > to > identify and carve out the pieces needed only for metadata i/o? Or will I > have to figure > that out myself? The point is I don't want to build in the entire flac lib > when all > I'm using is the metadata i/o pieces. > > 2nd: I've been looking for specs on flac metadata standards for "tag info" > like > Artist, Genre, title etc. I am unable to locate anything on this. I've dl'ed > some > sample .flac files and find little help there. Only thing I've found so far > is > I created flac "tags" with MediaMonkey on a .flac file and examine them. It > appears > MediaMonkey is writing the "tags" similiarly to the ogg/vorbis "standard", > i.e. > > comment[0]: TITLE=title name > comment[1]: ARTIST=Artist name flac 1 > comment[2]: ENSEMBLE=Artist name flac 1 > comment[3]: ALBUM ARTIST=Artist name flac 1 > comment[4]: ALBUM=Album Name flac 1 > comment[5]: GENRE=Genre name > comment[6]: COMMENT=comment1 > comment[7]: ENSEMBLE=Artist name flac 1 > comment[8]: TRACKNUMBER=1 > comment[9]: DATE> comment[10]: DESCRIPTION=desc1 > > Is this "the standard"? Is "the standard" documented anywhere? > > Any advice is appreciated. > > Thanks, > Mike > > _______________________________________________ > Flac-dev mailing list > Flac-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/flac-devdanno -- dan pritts danno@umich.edu 734-929-9770
--- Mike M <flacdev@makuch.org> wrote:> I wish to add flac support to my Windows audio player so > I wanted to ask a few questions. > > I rely on another lib for decoding/playing flac audio files so all I > need to explicitly add support for is reading/writing flac metadata. > > 1st: I've downloaded libflac and have begun browsing. Is there a > simple way to > identify and carve out the pieces needed only for metadata i/o? Or > will I have to figure > that out myself? The point is I don't want to build in the entire > flac lib when all I'm using is the metadata i/o pieces.is the decoding library using libflac itself? most do. if so, no need to carve up libflac. if not... libflac has 3 main modules, decoder, encoder, and metadata. metadata does not depend on the encoder at all. depending on which metadata interface you use, it may or may not need the decoder either. the level 0 interface needs the decoder and the level 2 interface needs it only for ogg flac, not native flac. see also http://flac.sourceforge.net/api/group__flac__metadata.html Josh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Seemingly Similar Threads
- Fixing ogg vorbis corruption caused by bad metadata
- quick and easy way to convert id3-tagged flac to flac-tagged flac?
- Fixing ogg vorbis corruption caused by bad metadata
- Fixing ogg vorbis corruption caused by bad metadata
- Fixing ogg vorbis corruption caused by bad metadata