<I want to retrieve all frames of video (mp4)> I w...
# stackoverflow
r
I want to retrieve all frames of video (mp4) I want to extract all frames of video (mp4) that is in raw folder of my project. val videoUri = Uri.parse("android.resource://" + packageName + "/" + R.raw.video_h) captureVideoFrames(this@OutsideCamActivity, videoUri) I can able to get frames using the function given below, but which is slow and missing frames. private fun captureAndDisplayFrames(videoUri: Uri) { lifecycleScope.launch(Dispatchers.IO) { val retriever = MediaMetadataRetriever() try {...