How do i add CIFilter to video file imported from gallery
<p>What is the best approach to add filters to video files?
Do i have to extract all frames from the video and then add filter to each frame? Or is there a better approach to this.</p>

<p>Came across this, but not sure how to use it</p>

<pre><code>    let vidComp = AVVideoComposition(asset: self.asset, applyingCIFiltersWithHandler: {
     request in
    })
</code></pre>

<p>Please help.</p>