Difference between revisions of "AVMF"

From AniDB
Jump to navigation Jump to search
(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...)
(No difference)

Revision as of 14:52, 20 February 2008

Description

Format used by avdump/autocreq 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 (upto 64 bits).-->
<!ELEMENT extra_size (#PCDATA)><!--Size of additional data (fonts, images, etc.), ie. 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 addtion / instead of "identifier".-->
<!ELEMENT twocc (#PCDATA)><!--Audio codec in addtion / 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, ie. 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.-->
]>