Instance Property

sourceAudioFormat

The format of the audio data when determining the audio settings to use.

Declaration

var sourceAudioFormat: CMAudioFormatDescription? { get set }

Discussion

Setting this property will allow the output settings assistant to make a more informed recommendation for the audio settings that should be used. After setting this property, you should re-query the audioSettings property to get the new recommendation. The default value is NULL, which means that the output settings assistant does not know anything about the format of the audio data.

When setting a non-NULL value for this property and using the output settings assistant to initialize an AVAssetWriterInput instance, the same format description should be used to initialize the AVAssetWriterInput, along with the dictionary from the audioSettings property.

See Also

Configuring Output Settings

var outputFileType: AVFileType

A UTI indicating the type of file to write.

var audioSettings: [String : Any]?

A dictionary containing the values to use when creating an asset writer input.

var sourceVideoAverageFrameDuration: CMTime

A time describing the average frame duration of the video data.

var sourceVideoFormat: CMVideoFormatDescription?

A core media video format description object that defines the video format.

var videoSettings: [String : Any]?

A dictionary containing the values to use when creating an asset writer input.

var sourceVideoMinFrameDuration: CMTime

A time describing the minimum frame duration of the video data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software