Commit ea29242c authored by Mike Melanson's avatar Mike Melanson

Ministry of English Composition treatment for the new metadata API

Originally committed as revision 16427 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 06a7bd9a
...@@ -48,19 +48,22 @@ unsigned avformat_version(void); ...@@ -48,19 +48,22 @@ unsigned avformat_version(void);
/* /*
* public Metadata API. * Public Metadata API.
* Important concepts, to keep in mind * The metadata API allows libavformat to export metadata tags to a client
* 1. keys are unique, there are never 2 tags with equal keys, this is also * application using a sequence of key/value pairs.
* meant semantically that is a demuxer should not knowingly produce * Important concepts to keep in mind:
* several keys that are litterally different but semantically identical, * 1. Keys are unique; there can never be 2 tags with the same key. This is
* like key=Author5, key=Author6. * also meant semantically, i.e., a demuxer should not knowingly produce
* All authors have to be placed in the same tag for the case of Authors. * several keys that are literally different but semantically identical.
* 2. Metadata is flat, there are no subtags, if you for whatever obscene * E.g., key=Author5, key=Author6. In this example, all authors must be
* reason want to store the email address of the child of producer alice * placed in the same tag.
* and actor bob, that could have key=alice_and_bobs_childs_email_address. * 2. Metadata is flat, not hierarchical; there are no subtags. If you
* 3. A tag whichs value is translated has the ISO 639 3-letter language code * want to store, e.g., the email address of the child of producer Alice
* with a '-' between appended. So for example Author-ger=Michael, Author-eng=Mike * and actor Bob, that could have key=alice_and_bobs_childs_email_address.
* the original/default language is in the unqualified "Author" * 3. A tag whose value is localized for a particular language is appended
* with a dash character ('-') and the ISO 639 3-letter language code.
* For example: Author-ger=Michael, Author-eng=Mike
* The original/default language is in the unqualified "Author" tag.
* A demuxer should set a default if it sets any translated tag. * A demuxer should set a default if it sets any translated tag.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment