I created a scrubber in my application that allows the user to reset forward / backward through the video through [AVPlayer seekToTime: toleranceBefore: toleranceAfter].
The video that is being cleaned is captured using AVCaptureSession, which uses AVCaptureMovieFileOutput. I got ffprobed the resulting .MOV result, and the results are expected (for example, on my iPhone 5s, which I record at 120 frames per second at about 23000 kb / s with about 1 keyframe per second).
Since there is only about 1 keyframe per second, it is difficult to twist back through the video with any accuracy and without any delay (since this was supposed to return to the nearest keyframe and calculate the frame at my current clearing position).
So I'm wondering if there is a better strategy for smooth cleaning? There are applications that do this very well there (for example, I studied the Coach Eye application and it records video in the same way as I do, and yet its cleaning performance is not bad).
I will be very grateful for any suggestions.
source
share