setJobSourceAttributes(_:)
Sets the source media attributes based on the given values.
Declaration
func setJobSourceAttributes(_ sourceProperties: [AnyHashable : Any]!)Parameters
- sourceProperties:
A dictionary of key-value pairs that provide information about the source media, such as size and frame rate. The dictionary has same keys as defined in Encoder Attribute Keys.
Discussion
The Compressor app calls this method when users update the source media attributes for an encoding job. Use the source media attributes to compute encoding values for the encoder settings, such as height, width, and frame rate, that have values set to automatic. See kCEAutoHeightKey, kCEAutoWidthKey, and kCEAutoRateKey.