---
title: "setJobSourceAttributes(_:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [provideo encoder extensions 1.0+]
path: "professional_video_applications/compressorextensionsettingsoptional/setjobsourceattributes(_:)"
---

# setJobSourceAttributes(_:)

Sets the source media attributes based on the given values.

## Declaration

```swift
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

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.
