简体   繁体   中英

How to manage video frames in memory

My app is grabbing all the frames of a video with FFMPEG.
My problem is, where do i save all the frames?
I already tried to convert the frames to bitmap and save to an arraylist, but the app says out of Memory.
Also, when i save the IplImages to an arraylist(it runs) but takes more than 500 MB.
I used a video with low quality. Those with high quality doesn't run neither with the IplImages.

You just can't load all of these frames in memory becouse there is a memory limit. To check the limit you can google Android heap size, it's different for each device but it's not that much. You'll have to process it frame by frame and save it on a storage device like the sdcard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM