Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
Replied In
AVVideoCompositor Renders Live Changes Slow
Problem was with the videoComposition preparing frames ahead of time. To get the filters to update in real time, I need to reset the composition every time I make a change.
playItem.videoComposition = playerItem.videoComposition.mutableCopy() as? AVVideoComposition
The problem now is that the slider makes so many changes at a rate faster than the CPU can handle resulting in another lag. This time the filter intensity changes smoothly, but the video lags and skips frames. Any thoughts?