---
title: "init(applyingFiltersTo:applier:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avvideocomposition/init(applyingfiltersto:applier:)"
---

# init(applyingFiltersTo:applier:)

Creates a video composition configured to apply Core Image filters to each video frame of the specified asset.

## Declaration

```swift
nonisolated(nonsending) convenience init(applyingFiltersTo asset: AVAsset, applier: @escaping @Sendable (AVCIImageFilteringParameters) async throws -> AVCIImageFilteringResult) async throws
```

## Parameters

- `asset`: The asset whose configuration matches the intended use of the video composition.
- `applier`: A closure that AVFoundation calls when processing each video frame.

## Return Value

Return Value A new AVVideoComposition instance configured for Core Image filtering.

## See Also

### Creating a video composition

- [init(configuration:)](avfoundation/avvideocomposition/init(configuration:).md)
- [AVVideoComposition.Configuration](avfoundation/avvideocomposition/configuration.md)
- [videoComposition(with:applyingCIFiltersWithHandler:completionHandler:)](avfoundation/avvideocomposition/videocomposition(with:applyingcifilterswithhandler:completionhandler:).md)
- [AVAsynchronousCIImageFilteringRequest](avfoundation/avasynchronousciimagefilteringrequest.md)
- [AVCIImageFilteringParameters](avfoundation/avciimagefilteringparameters.md)
- [AVCIImageFilteringResult](avfoundation/avciimagefilteringresult.md)
- [videoComposition(withPropertiesOf:completionHandler:)](avfoundation/avvideocomposition/videocomposition(withpropertiesof:completionhandler:).md)
- [init(propertiesOf:)](avfoundation/avvideocomposition/init(propertiesof:).md)
- [init(asset:applyingCIFiltersWithHandler:)](avfoundation/avvideocomposition/init(asset:applyingcifilterswithhandler:).md)
