Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

AVAsset.RequestImageTimePrecision

Requests to use high precision for timing of images.

Component Version macOS Windows Linux Server iOS SDK
AVAsset 6.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "AVAsset.RequestImageTimePrecision"; Asset { ; toleranceBefore; toleranceAfter } )   More

Parameters

Parameter Description Example Flags
Asset The reference number of the asset. Please use AVAsset.OpenContainer, AVAsset.OpenFile or AVAsset.OpenURL function to get asset reference. $asset
toleranceBefore Time tolerance in seconds before requested time. 0 Optional
toleranceAfter Time tolerance in seconds after requested time. 0 Optional

Result

Returns OK or error.

Description

Requests to use high precision for timing of images.
The actual time of the generated images will be within the range [requestedTime-toleranceBefore, requestedTime+toleranceAfter] and may differ from the requested time for efficiency.
Pass 0 for both toleranceBefore and toleranceAfter to request frame-accurate image generation; this may incur additional decoding delay. Default is infinity.

Examples

Request exact timing:

MBS("AVAsset.RequestImageTimePrecision"; $asset; 0; 0)

Request ± 0.5 seconds

MBS("AVAsset.RequestImageTimePrecision"; $asset; 0.5; 0.5)

See also

Blog Entries

This function checks for a license.

Created 20th October 2016, last changed 14th July 2022


AVAsset.ReleaseAll - AVAsset.TimeCodes