Problems with MediaExtractor
问题 I am trying to get specific frames at specific times as images from a movie using MediaExtractor and MediaCodec . I can do it successfully if: I use extractor.seekTo(time, MediaExtractor.SEEK_TO_PREVIOUS_SYNC); , however, this only gives the nearest sync frame not the target frame. I sequentially extract all frames using extractor.advance(); , but I need to get the target frame not all. So, I try the following: extractor.seekTo(time, MediaExtractor.SEEK_TO_PREVIOUS_SYNC); while(extractor