MediaMetadataRetrieverJNI(14060): getFrameAtTime: videoFrame is a NULL pointer(Android)
I am creating thumbnails by videos frame using MediaMetadataRetriever but I am getting this message in Logcat : E/MediaMetadataRetrieverJNI(14060): getFrameAtTime: videoFrame is a NULL pointer Here is my code: MediaMetadataRetriever retriever = new MediaMetadataRetriever(); try { Uri videoURI = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.video_one); retriever = new MediaMetadataRetriever(); retriever.setDataSource(mContext, videoURI); Bitmap bitmap = retriever.getFrameAtTime(100000,MediaMetadataRetriever.OPTION_CLOSEST_SYNC ); Drawable drawable = new BitmapDrawable(getResources(