cocoa - Implementing fast-forward with AVAssetReaderOutput -
i’m trying add fast-forward functionality in app, heavily uses gpuimage, running memory issues.
at top of -[gpuimagemovie readnextvideoframefromoutput:]
, replace this:
cmsamplebufferref samplebufferref = [videotrackoutput copynextsamplebuffer];
with this:
cmsamplebufferref samplebufferref = [videotrackoutput copynextsamplebuffer]; if(gpuimagespeedmodefast == self.speedmode) { samplebufferref = [videotrackoutput copynextsamplebuffer]; }
this seems work few glorious seconds, app killed due memory issues. assume it’s high rate of allocations, because there don’t appear leaks. have experience this? thoughts?
actually, seems if best route (for gpuimagemovie) instantiate avplayeritem, rather trying allow use avasset path!
Comments
Post a Comment