开发者

Reading writing WAV/RIFF Tags

开发者 https://www.devze.com 2022-12-24 21:14 出处:网络
I\'m writing a simple audio recording utility which I want also to be able to tag the resulting files with meta data. It\'s pretty easy to find libraries to tag MP3 files with ID3 tags, but I\'m more

I'm writing a simple audio recording utility which I want also to be able to tag the resulting files with meta data. It's pretty easy to find libraries to tag MP3 files with ID3 tags, but I'm more interested in lossless codecs like WAV and possibly FLAC.

As I understand it WAVE files are really a subset of the RIFF file type which can contain both waveform "chunks" and metadata "chunks".

Can anyone point me in the direction of libraries, specifications, or sample projects that would help me figure out how 开发者_开发问答to read and write these RIFF tags to and from WAVE files?

Also does anyone know if similar tags exist for FLAC, and of any good resources for writing metadata to FLAC files?


For RIFF-WAV.

Yes, metadata is stored in special chunk. It should be noted, that you will not be able to map ID3 (or other tags) to RIFF-WAV metadata in a standard manner. Some common tag fields have appropriate standard RIFF-WAV fields, for another you should make your private inventions. Also the majority of software does not recognize RIFF-WAV tags.

For FLAC.

You can work with FLAC tags according to FLAC specifications.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号