请输入您要查询的百科知识:

 

词条 Vorbis comment
释义

  1. Format

  2. See also

  3. References

  4. External links

{{Refimprove|date=February 2016}}

A Vorbis comment is a metadata container used in the Vorbis, FLAC, Theora, Speex and Opus file formats. It allows information such as the title, artist, album, track number or other information about the file to be added to the file itself. However, as the official Ogg Vorbis documentation notes, “[the comment header] is meant for short, text comments, not arbitrary metadata; arbitrary metadata belongs in a separate logical bitstream (usually an XML stream type) that provides greater structure and machine parseability.”[1]

Format

A Vorbis tag is a list of fields in the format FieldName=Data. The field name can be composed of printable ASCII characters, 0x20 (space) through 0x7D (‘}’), with 0x3D (‘=’) and 0x7E (‘~’) excluded. It is case insensitive, so artist and ARTIST are the same field. The number of fields and their length is restricted to 4,294,967,295 (the maximum value of an unsigned 32-bit integer), but most tag editing applications impose stricter limits.

The data is encoded in UTF-8, and so any conforming Unicode string may be used as a value.

Any tag name is allowed, and there is no format that the data values must be in. This is in contrast to the ID3 format used for MP3s, which is highly structured. Field names are also permitted to be used more than once. It is encouraged to use this feature to support multiple values, for example two ARTIST=... fields to list both artists of a single composition.

The specification gives several example tag names such as TITLE and TRACKNUMBER. Most applications also support common de facto standards, such as DISCNUMBER, RATING, and tags for ReplayGain information. Ratings are usually mapped as 1-5 stars with 20,40,60,80,100 as the actual string values.

There are no provisions for storing binary data in Vorbis comments. This is by design; they are intended to be used as part of a container format such as Ogg, and any additional binary data should be encoded into the container as a stream. The exception to this, by popular request, is a proposal to incorporate cover art into a Vorbis comment.[2]

See also

  • APEv2 tag
  • ID3
  • CD-Text

References

1. ^{{Cite web|title=Ogg Vorbis I format specification: comment field and header specification|URL=http://www.xiph.org/vorbis/doc/v-comment.html|website=xiph.org|publisher=Xiph.Org Foundation|year=2005|accessdate=18 February 2016}}
2. ^{{cite web|title=VorbisComment, cover art|url=https://wiki.xiph.org/index.php/VorbisComment#Cover_art|website=wiki.xiph.org|publisher=xiph.org|accessdate=1 October 2016}}

External links

  • Vorbis Comments specification at Xiph
  • Proposed field names at Xiph Wiki
  • Proposal for extensions (e.g.: cover art, chapter extension, date and time) at Xiph Wiki
  • Chapter mark extension at Xiph Wiki
  • {{cite web |url= http://reallylongword.org/vorbiscomment/ |title= Proposals for extending Ogg Vorbis comments |first= David |last= Shea |date= Sep 28, 2004 |archive-date= April 2014 |archive-url= https://web.archive.org/web/20120429102447/http://reallylongword.org/vorbiscomment/ }}
{{Xiph.org}}

2 : Metadata|Computer file formats

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 10:16:47