Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Duplicate/skipped frames when re-encoding a GPUImageMovie via GPUImageMovieWriter #1501
Using the approach presented in the readme, I'm blending a
I verified this by creating an input video (H.264, 30 FPS, no audio) that numbers its frames in a repeating 1-10 pattern, e.g. 1, 2, 3, ... 9, 10, 1, 2, etc. When loading this video with
Looking at the code,
gilby, this something we've noticed about GPUImageMovieWriter. Have put a considerable amount of hours trying to figure out why there is a seemingly randomness to what frames are skipped or duplicated. I think this has less to do with a 1:1 relationship of what is being played and recorded, but more likely a build up of resources (memory) that requires time to clear which will result in what seems like duplicated frames. I think it is more like playback that is being recorded is stuttering and the recorder is recording that.
My assumption is that a lot of memory handling is going on, I'm sure there is away to optimize this, we just haven't had the time or resources to research this further. Please let me know if you have gotten any leads or ideas on how to fix the issue.