FLV 的第一個 tag 應該是名為 onMetaData 的 ScriptData。內容則是 ECMA Array,包含很多 properties。

NameTypeComment
audiocodecidNumberAudio codec ID
audiodatarateNumberAudio bit rate in kilobits per second
audiodelayNumberDelay introduced by the audio codec in seconds
*audiosamplerateNumberFrequency at which the audio stream is replayed
audiosamplesizeNumberResolution of a single audio sample
canSeekToEndBooleanIndicating the last video frame is a key frame
creationdateStringCreation date and time
*durationNumberTotal duration of the file in seconds
filesizeNumberTotal size of the file in bytes
*framerateNumberNumber of frames per second
*heightNumberHeight of the video in pixels
stereoBooleanIndicating stereo audio
videocodecidNumberVideo codec ID
videodatarateNumberVideo bit rate in kilobits per second
*widthNumberWidth of the video in pixels


不在規格書內的 properties

NameTypeComment
audiosizeNumberTotal size of audio tags in the file in bytes.
datasizeNumberTotal size of data tags in the file in bytes.
hasKeyframesBoolean有 key frames
hasVideoBoolean有 video
hasAudioBoolean有 audio
hasMetadataBoolean有 metadata
keyframesObject標記 keyframe 的位置陣列
lasttimestampNumberTimeStamp of the last tag
lastkeyframetimestampNumberTimeStamp of the last video tag which is a key frame.
metadatacreatorStringmetadata creator
metadatadateDateDate and time metadata added
videosizeNumberTotal size of video tags in the file in bytes.
xtradataStringAdditional string data


keyframes 的 properties

NameTypeComment
filepositionsStrict arraythe fileposition of the nth key frame,單位為 byte。
timesStrict arraythe timestamp of the n'th key frame,單位為 second。


台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()