AVMF: Difference between revisions
Jump to navigation
Jump to search
Epoximator (talk | contribs) (New page: ==Description== Format used by avdump/autocreq system to store audio/video meta data. ==DTD== <pre> <!DOCTYPE file[ <!--Many elements are optional. Default value (0 or '') should be assu...) |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
Format used by | Format used by Avdump/auto-creq system to store audio/video meta data. | ||
==DTD== | ==DTD== | ||
Line 15: | Line 15: | ||
<!ELEMENT subtitles (size?,title?,language?,private?,identifier?)> | <!ELEMENT subtitles (size?,title?,language?,private?,identifier?)> | ||
<!ELEMENT size (#PCDATA)><!--File/track size in bytes as decimal ( | <!ELEMENT size (#PCDATA)><!--File/track size in bytes as decimal (up to 64 bits).--> | ||
<!ELEMENT extra_size (#PCDATA)><!--Size of additional data (fonts, images, etc.), | <!ELEMENT extra_size (#PCDATA)><!--Size of additional data (fonts, images, etc.), i.e. not video/audio/subtitle data.--> | ||
<!ELEMENT crc (#PCDATA)><!--/^[0-9a-f]{8,8}$/--> | <!ELEMENT crc (#PCDATA)><!--/^[0-9a-f]{8,8}$/--> | ||
<!ELEMENT ed2k (#PCDATA)><!--/^[0-9a-f]{32,32}$/--> | <!ELEMENT ed2k (#PCDATA)><!--/^[0-9a-f]{32,32}$/--> | ||
Line 25: | Line 25: | ||
<!ELEMENT app (#PCDATA)><!--Writing application.--> | <!ELEMENT app (#PCDATA)><!--Writing application.--> | ||
<!ELEMENT lib (#PCDATA)><!--Muxing library/application.--> | <!ELEMENT lib (#PCDATA)><!--Muxing library/application.--> | ||
<!ELEMENT date (#PCDATA)><!--Production date, | <!ELEMENT date (#PCDATA)><!--Production date, Unix time, in hexadecimal.--> | ||
<!ELEMENT chapters (#PCDATA)><!--Number of chapters.--> | <!ELEMENT chapters (#PCDATA)><!--Number of chapters.--> | ||
<!ELEMENT duration (#PCDATA)><!--Duration of file/track in seconds as float.--> | <!ELEMENT duration (#PCDATA)><!--Duration of file/track in seconds as float.--> | ||
Line 32: | Line 32: | ||
<!ELEMENT language (#PCDATA)><!--Track language in no specific format.--> | <!ELEMENT language (#PCDATA)><!--Track language in no specific format.--> | ||
<!ELEMENT identifier (#PCDATA)><!--Codec/type identifier of the track in whatever format used by the container format.--> | <!ELEMENT identifier (#PCDATA)><!--Codec/type identifier of the track in whatever format used by the container format.--> | ||
<!ELEMENT fourcc (#PCDATA)><!--Video codec in | <!ELEMENT fourcc (#PCDATA)><!--Video codec in addition / instead of "identifier".--> | ||
<!ELEMENT twocc (#PCDATA)><!--Audio codec in | <!ELEMENT twocc (#PCDATA)><!--Audio codec in addition / instead of "identifier".--> | ||
<!ELEMENT encoder (#PCDATA)><!--Encoder library name.--> | <!ELEMENT encoder (#PCDATA)><!--Encoder library name.--> | ||
<!ELEMENT settings (#PCDATA)><!--Codec settings in no specific format. Only used for h264 settings | <!ELEMENT settings (#PCDATA)><!--Codec settings in no specific format. Only used for h264 settings ATM.--> | ||
<!ELEMENT private (#PCDATA)><!--Private data. Used for framerate stats for mkv.--> | <!ELEMENT private (#PCDATA)><!--Private data. Used for framerate stats for mkv.--> | ||
<!ELEMENT channels (#PCDATA)><!--Number of audio channels.--> | <!ELEMENT channels (#PCDATA)><!--Number of audio channels.--> | ||
Line 46: | Line 46: | ||
<!ELEMENT chroma (#PCDATA)> | <!ELEMENT chroma (#PCDATA)> | ||
<!ELEMENT structure (#PCDATA)> | <!ELEMENT structure (#PCDATA)> | ||
<!ELEMENT mode (#PCDATA)><!--Audio bitrate mode, | <!ELEMENT mode (#PCDATA)><!--Audio bitrate mode, i.e. CBR/VBR/ABR.--> | ||
<!ATTLIST avmf rcode CDATA #IMPLIED><!--Return code, "0" is implied and means OK.--> | <!ATTLIST avmf rcode CDATA #IMPLIED><!--Return code, "0" is implied and means OK.--> |
Latest revision as of 22:31, 12 May 2009
Description
Format used by Avdump/auto-creq system to store audio/video meta data.
DTD
<!DOCTYPE file[ <!--Many elements are optional. Default value (0 or '') should be assumed for undefined elements.--> <!ELEMENT file (size,crc,ed2k,md5,sha1,tth,avmf)> <!ELEMENT avmf (extra_size?,duration?,extension,date?,app?,lib?,chapters?,(audio|video|subtitles)*)> <!--Track order should follow the real order in the container.--> <!ELEMENT video (title?,size?,duration?,bitrate?,identifier?,fourcc?,fps?,encoder?,settings?,private?,sample_count?,chroma?,structure?,ar?,res_p?,res_d?)> <!ELEMENT audio (size?,duration?,bitrate?,title?,language?,private?,identifier?,twocc?,channels?,sampling_rate?,mode?,sample_count?)> <!ELEMENT subtitles (size?,title?,language?,private?,identifier?)> <!ELEMENT size (#PCDATA)><!--File/track size in bytes as decimal (up to 64 bits).--> <!ELEMENT extra_size (#PCDATA)><!--Size of additional data (fonts, images, etc.), i.e. not video/audio/subtitle data.--> <!ELEMENT crc (#PCDATA)><!--/^[0-9a-f]{8,8}$/--> <!ELEMENT ed2k (#PCDATA)><!--/^[0-9a-f]{32,32}$/--> <!ELEMENT md5 (#PCDATA)><!--/^[0-9a-f]{32,32}$/--> <!ELEMENT sha1 (#PCDATA)><!--/^[0-9a-f]{39,39}$/--> <!ELEMENT tth (#PCDATA)><!--Base64--> <!ELEMENT extension (#PCDATA)><!--Container format extension: avi/mkv/ogm/mp4/mpg/mov/rm/asf.--> <!ELEMENT app (#PCDATA)><!--Writing application.--> <!ELEMENT lib (#PCDATA)><!--Muxing library/application.--> <!ELEMENT date (#PCDATA)><!--Production date, Unix time, in hexadecimal.--> <!ELEMENT chapters (#PCDATA)><!--Number of chapters.--> <!ELEMENT duration (#PCDATA)><!--Duration of file/track in seconds as float.--> <!ELEMENT bitrate (#PCDATA)><!--Bitrate of track in bps. Only defined if track size is unavailable.--> <!ELEMENT title (#PCDATA)><!--Title of track.--> <!ELEMENT language (#PCDATA)><!--Track language in no specific format.--> <!ELEMENT identifier (#PCDATA)><!--Codec/type identifier of the track in whatever format used by the container format.--> <!ELEMENT fourcc (#PCDATA)><!--Video codec in addition / instead of "identifier".--> <!ELEMENT twocc (#PCDATA)><!--Audio codec in addition / instead of "identifier".--> <!ELEMENT encoder (#PCDATA)><!--Encoder library name.--> <!ELEMENT settings (#PCDATA)><!--Codec settings in no specific format. Only used for h264 settings ATM.--> <!ELEMENT private (#PCDATA)><!--Private data. Used for framerate stats for mkv.--> <!ELEMENT channels (#PCDATA)><!--Number of audio channels.--> <!ELEMENT sampling_rate (#PCDATA)><!--Audio sampling rate in Hz.--> <!ELEMENT sample_count (#PCDATA)><!--Sample (frames) count.--> <!ELEMENT fps (#PCDATA)><!--Video fps as float. -1 means vfr, -2 means hybrid.--> <!ELEMENT res_p EMPTY><!--Pixel resolution.--> <!ELEMENT res_d EMPTY><!--Display resolution. MKV only.--> <!ELEMENT ar (#PCDATA)><!--Aspect ratio.--> <!ELEMENT chroma (#PCDATA)> <!ELEMENT structure (#PCDATA)> <!ELEMENT mode (#PCDATA)><!--Audio bitrate mode, i.e. CBR/VBR/ABR.--> <!ATTLIST avmf rcode CDATA #IMPLIED><!--Return code, "0" is implied and means OK.--> <!ATTLIST res_p width CDATA #REQUIRED height CDATA #REQUIRED> <!ATTLIST res_d width CDATA #REQUIRED height CDATA #REQUIRED> <!ATTLIST audio default CDATA #IMPLIED><!--Default audio track.--> <!ATTLIST subtitles default CDATA #IMPLIED><!--Default subtitles.--> ]>