MediaMetadataRetriever.getFrameAtTime() returns only first frame

前端 未结 7 1570
不思量自难忘°
不思量自难忘° 2020-12-01 12:12

I have extracted frames from a video using MetadataRetriever, and have stored all images in an ArrayList. I want to store all of them on an SD car

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 12:39

    MediaMetadataRetriever's getFrameAt method takes in microseconds (1/1000000th of a second) instead of milliseconds, so in your case it is always rounding down to the 1st frame.

提交回复
热议问题