[Flac] metaflac

Dat Head dathead2 at gmail.com
Tue Jul 17 07:00:48 PDT 2007


i put this in a script and called it metaflac-showall since that was
more intuitive to me,
but here is how to dump all tags and then you can check the output for the
specific one you want:

    metaflac --export-tags-to=-

but i guess that returns more info than you want (the tag names and their
values)

On 7/16/07, Christopher Brown <c-b at asu.edu> wrote:

> I am writing an audio player that exclusively plays FLAC sound files,
> with CUE sheets. It is written in Python, so it is cross-platform, and
> it is working very well so far. The soundfile IO is handled by the
> Audiere library. For metadata (aside from the CUE sheet), I make system
> calls to metaflac to do things like extract album art for display, and I
> have a question concerning metaflac.
>
> Is there a way to check for the existence of a tag before retrieving it?
> When I try to get an image from a FLAC file, if it does not exist, FLAC
> returns an error. This is really not a big deal, because  my program
> runs fine through the error, but it does show up in my programs output,
> and anyway it seems like the more proper way to do it is to first check
> to see if the tag is present before retrieving it. Not really a big
> deal, I just wanted to know if I overlooked something, because I don't
> see how to do it.


More information about the Flac mailing list