wseemann / FFmpegMediaMetadataRetriever

FFmpegMediaMetadataRetriever provides a unified interface for retrieving frame and meta data from an input media file.
1.73k stars 387 forks source link

About using getFrameAtTime(long timeUs, int option) trigger OOM #210

Open wangyikai1234567 opened 5 years ago

wangyikai1234567 commented 5 years ago

When I get video thumbnails, I need to use [getFrameAtTime(long timeUs, int option);] But I found that when I used [B = BitmapFactory. decodeByteArray (picture, 0, picture. length, bitmap Options Cache); ]oom was triggered. I read a lot of information that [decodeByteArray] is very easy to trigger oom. When I wanted to inherit this class and rewrite this method, I found that the [_getFrameAtTime ()] method was private. I didn't know the logic in this method and I didn't know how to change it. I hope you can help me. I apologize. My English is not very good. Please forgive me. I'll wait for your news.