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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -