FLV files can contain a SCRIPTDATA tag named onMetadata, documented in section E.5 of the FLV and F4V specification [
MAWG | Relation | Flash (FLV) | How to do the mapping | Datatype | XPath | Tested |
---|---|---|---|---|---|---|
Descriptive Properties (Core Set) | ||||||
Identification | ||||||
identifier | N/A | N/A | ||||
Content description | ||||||
description | N/A | N/A | ||||
Technical Properties | ||||||
frameSize | exact | The width and height fields from the onMetadata tag. The units are always pixels. | DOUBLE, 64-bit IEEE float | N/A | ||
compression | Not directly represented. Implicit in the audiocodecid and videocodecid fields from the onMetadata tag. | N/A | ||||
duration | exact | The duration field from the onMetadata tag. The unit is always seconds. | DOUBLE, 64-bit IEEE float | N/A | ||
format | exact | video/x-flv | static | MIME type | N/A | |
samplingRate | exact | The audiosamplerate field from the onMetadata tag. The unit is always samples per second. | DOUBLE, 64-bit IEEE float | N/A | ||
frameRate | exact | The framerate field from the onMetadata tag. The unit is always frames per second. | DOUBLE, 64-bit IEEE float | N/A | ||
averageBitRate | exact | The sum of the audiodatarate and videodatarate fields from the onMetadata tag. The units are always kilobits per second. | DOUBLE, 64-bit IEEE float | N/A | ||
numTracks | exact | FLV files contain at most 1 audio track and at most 1 video track. There are 1-bit flags in the FLV header telling if audio or video are present. | N/A |