Hi,

Mario Lenz wrote:
> includes these information, use a tag CUESHEET with a cue sheet

That's what i'm doing at the moment.
The cuesheet parser is done and it can parse strings as well.
There's also the code for tagging the flac-sub-tracks after the cuesheet
info.

> including these information or use tags. I think the latter is the best
> option and is already used by other projects.

Embedding track infos as vorbis comments would look like the example
below. I'm taking here the metaflac program as a reference since it gets
shipped with libflac. There is no standard defined and we will get lost
in adding every possible way of tagging this stuff.

Examples:

(This is a completely untagged flac file)
$ metaflac --list some.flac
METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4608 samples
  maximum blocksize: 4608 samples
  minimum framesize: 16 bytes
  maximum framesize: 15750 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 71210916
  MD5 signature: 46314ee64963fed05b57c73c846b244b
METADATA block #1
  type: 1 (PADDING)
  is last: true
  length: 57035


(Now i'm using the import-tags-from feature of metaflac)
$ cat sometags.txt
GENRE=somegenre
DATE=1992
PERFORMER="someperformer"
TITLE="sometitle"
TRACK01=title1
TRACK02=title2
SOMELOVELYTAG=yeahrightheregoesinwhateveryouwant

$ metaflac --import-tags-from=sometags.txt some.flac
$ metaflac --list some.flac
METADATA block #0
[..]
METADATA block #1
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 210
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 7
    comment[0]: GENRE=somegenre
    comment[1]: DATE=1992
    comment[2]: PERFORMER="someperformer"
    comment[3]: TITLE="sometitle"
    comment[4]: TRACK01=title1
    comment[5]: TRACK02=title2
    comment[6]: SOMELOVELYTAG=yeahrightheregoesinwhateveryouwant
METADATA block #2
[..]


So i'd say let's got for the cuesheet option as it is at least "defined"
(though there is no real standard too).

If you want do it like Max proposed, i'd recommend writing a parser
using lex/yacc. That's what i had in mind on the long run.
What will be there the next few days though is support for embedded
cuesheets with cdtext info.

metaflac --import-cuesheet-from=file will not only import the seekpoints
but also add the the whole cuesheet with cdtext infos as CUESHEET=file
vorbis comment.

Regards,

Jochen

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to