recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:outputFileURL:)
Returns a dictionary of recommended output settings for writing the specified code, file type, and output URL.
Declaration
func recommendedVideoSettings(forVideoCodecType videoCodecType: AVVideoCodecType, assetWriterOutputFileType outputFileType: AVFileType, outputFileURL: URL?) -> [String : Any]?Parameters
- videoCodecType:
The type of video codec to use.
- outputFileType:
The type of output file to write.
- outputFileURL:
The URL of the output file to write.
Return Value
A fully populated output settings dictionary suitable for configuring an asset writer input.
See Also
Configuring video capture
videoSettingsVideo settingsalwaysDiscardsLateVideoFramesautomaticallyConfiguresOutputBufferDimensionsdeliversPreviewSizedOutputBufferspreparesCellularRadioForNetworkConnectionpreservesDynamicHDRMetadatarecommendedMediaTimeScaleForAssetWriterrecommendedMovieMetadata(forVideoCodecType:assetWriterOutputFileType:)recommendedVideoSettings(forVideoCodecType:assetWriterOutputFileType:)recommendedVideoSettingsForAssetWriter(writingTo:)