Hello,
I am using Erel's VideoRecordApp to record a short video and save it to a file. I would like to extract a single frame from the video to show as a thumbnail.
I found a similar post from two years ago – the reply was "probably not possible without decoding the entire video".
In searching the Internet I found the Android function MediaMetadataRetriever at: MediaMetadataRetriever | Android Developers
The functions getFrameAtTime() and setDataSource(String path) look like possibilities.
I also found a related question on Stack Overflow which uses this function: Extract bitmap from video in android - Stack Overflow.
Would it be possible, maybe using the Reflector or by creating a small library, to use these functions? Would they accomplish what I am thinking? – Extract a frame from a video that could be used as a thumbnail.
Is there a better way to do this?
Thanks,
Barry.
I am using Erel's VideoRecordApp to record a short video and save it to a file. I would like to extract a single frame from the video to show as a thumbnail.
I found a similar post from two years ago – the reply was "probably not possible without decoding the entire video".
In searching the Internet I found the Android function MediaMetadataRetriever at: MediaMetadataRetriever | Android Developers
The functions getFrameAtTime() and setDataSource(String path) look like possibilities.
I also found a related question on Stack Overflow which uses this function: Extract bitmap from video in android - Stack Overflow.
Would it be possible, maybe using the Reflector or by creating a small library, to use these functions? Would they accomplish what I am thinking? – Extract a frame from a video that could be used as a thumbnail.
Is there a better way to do this?
Thanks,
Barry.