Closed Prateek1105 closed 6 years ago
Try this
FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever();
mmr.setDataSource((String) path.get(i));
Bitmap bm = mmr.getFrameAtTime(2000000, FFmpegMediaMetadataRetriever.OPTION_CLOSEST);
iv.setImageBitmap(bm);
mmr.release();
Please, see https://github.com/wseemann/FFmpegMediaMetadataRetriever/issues/59 That helped me.
@Prateek1105 The exception is self explanatory. It means the data source you passed is invalid. Perhaps it has contains an unsupported protocol, the path is incorrect, etc.
I am getting error : java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA on code :
@Override public View getView(int i, View view, ViewGroup viewGroup) {