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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -