Adobe Flash Media Server

KeyFrameInterval

This element defines how often to generate and save keyframes in an FLV file.

The initial value is 60000, which is the recommended value. However, if this tag is unspecified or set to a value out of range, the server uses a default value of 1000. Setting this element to a higher value than the initial value reduces the number of keyframes added to the FLV file and thus reduces the file size. Setting a higher value for the interval, however, reduces the seeking accuracy. The value of this element is defined in milliseconds.

For example, a 15-second video with a file size of 76 KB is increased only to 89 KB when the KeyFrameInterval element is set to 5000, which is an increase of 13 KB, or 17%. The same video has a size of 109 KB with the KeyFrameInterval element set to 1000, which is an increase of 33 KB, or 43%.

Note: Be aware of the correlation between file size and accuracy of seeking when you set this value.

Example

<KeyFrameInterval>1000</KeyFrameInterval>

See also

StorageDir, DuplicateDir, CacheUpdateInterval

 

Send me an e-mail when comments are added to this page | Comment Report