Instance Property

mediaTimeScale

Specifies the media time scale to be used.

Declaration

@property(nonatomic) CMTimeScale mediaTimeScale;

Discussion

For file types that support media time scales, such as QuickTime Movie files, specifies the media time scale to be used. The default value of this property is 0, which indicates that the writer input object should choose an appropriate value.

It is an error to assign a value other than 0 to this property if the object’s mediaType property is set to to AVMediaTypeAudio.

You cannot set this property after writing has started.

In order to avoid inconsistencies between the track's media time scale and the result's media time scale (see AVAssetWriter property movieTimeScale ) both should be set to equal or compatible values.

See Also

Configuring a Writer Input

metadata

The collection of track-level metadata to associate with the asset and for carriage in the output file.

transform

The transform specified in the output file as the preferred transformation of the visual media data for display purposes.

expectsMediaDataInRealTime

A Boolean value that indicates whether the input should tailor its processing of media data for real-time sources.

marksOutputTrackAsEnabled

Returns whether the receiver’s track is enabled.

naturalSize

Size specified in the output file as the natural dimensions of the visual media data for display.

preferredVolume

The preferred volume level for storing in the output file.