FLV files can contain a SCRIPTDATA tag named onMetadata, documented in section E.5 of the FLV and F4V specification. Beginning in Flash version 10, FLV files can also contain XMP metadata. Refer to the above XMP metadata format mapping table for more details. Technical metadata should be taken from the onMetadata tag according to the table below.
MAWG | Relation | Flash (FLV) | How to do the mapping | Datatype | XPath |
---|---|---|---|---|---|
Descriptive Properties (Core Set) | |||||
Identification | |||||
identifier | N/A | ||||
Content description | |||||
description | 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 | ||
compression | Not directly represented. Implicit in the audiocodecid and videocodecid fields from the onMetadata tag. | ||||
duration | exact | The duration field from the onMetadata tag. The unit is always seconds. | DOUBLE, 64-bit IEEE float | ||
format | exact | video/x-flv | static | MIME type | |
samplingRate | exact | The audiosamplerate field from the onMetadata tag. The unit is always samples per second. | DOUBLE, 64-bit IEEE float | ||
frameRate | exact | The framerate field from the onMetadata tag. The unit is always frames per second. | DOUBLE, 64-bit IEEE float | ||
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 | ||
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. |