Questions tagged [mediametadataretriever]
96 questions
2
votes
0 answers
Java.Lang.RuntimeException: setDataSource failed: status = 0x80000000 in xamarin.forms with android 8 only
Lot of questions raised in stackoverflow itself for this error and none of them really solves the issue. setDataSource failed: status = 0x80000000 for MediaMetadataRetriever. Android 7,9,10 are working perfectly. I'm having issue with android 8…

Dev
- 315
- 2
- 16
2
votes
0 answers
FFMPEGmediametadataretriever not getting all frames from video
I am developing an application that takes a local video file and extracts its frames and write on disk. I am using ffmpegmediametadataretriever to extract frames from videos. I have done the following code
retriever.setDataSource(activity,…

Zain Aftab
- 703
- 7
- 21
2
votes
0 answers
MP4 Video Last frame
I'm trying to get last frame of mp4 video using MediaMetadataRetriever but it always return first Frame for short videos (like 3s long videos), it work fine for long videos. FFmpegMediaMetadataRetriever also give same result.
…

Salah Hammouda
- 303
- 2
- 19
2
votes
0 answers
Correctly getting a frame as bitmap from a video in good quality
I am trying to get the last frame from a video as a bitmap in good quality. I am now using MediaMetadataRetriever with the method getFrameAtTime, but the picture quality is very poor - see a similar post here.
I tried to use this method…

Andrei F
- 4,205
- 9
- 35
- 66
2
votes
0 answers
Use .setDataSource to get mediaMetadata from currently playing music app
I want to get MediaMetadata (song title / artist) from the current playing android audio source for any app (spotify, google play, soundcloud, YouTube, blackplayer, etc) and am trying to use MediaMetadataRetriever.setDatSource
Currently I have a…

Martin
- 1,336
- 4
- 32
- 69
2
votes
0 answers
Is there a way to get a video frame from CipherInputStream?
In my android app, I have a video file which was encrypted by Cipher, now I want to retrieve a video frame as thumbnail.
MediaMetadataRetriever could do this job in normally, the method void setDataSource (MediaDataSource dataSource) maybe the key…

Riki
- 2,774
- 1
- 24
- 38
2
votes
1 answer
Android: MediaMetadataRetriever caused "java.lang.RuntimeException: setDataSource failed: status = 0x80000000"
I am trying to pick video file through intent and extract meta data from the video.
However, I got some error reports from users and reporting following exception:
Exception java.lang.RuntimeException: Failure delivering result ResultInfo{who=null,…

Season
- 1,178
- 2
- 22
- 42
2
votes
1 answer
How to use FFmpegMediaMetadataRetriever in Android Studio?
I have used FFmpegMediaMetadataRetriever in "Eclipse" with fmmr.jar file it's working fine but right now I have migrated my project in "Android Studio". I used following dependencies in my build.gradle file.
dependencies {
compile…

Maroti
- 501
- 2
- 9
- 25
2
votes
1 answer
Got java.lang.RuntimeException: setDataSource failed: status = 0x80000000 In Android 6.0 only
There is too many question in StackOverflow about this question but Can't get any solution about Android 6.0.
I got this Exception only in Android 6.0,
I tested application in Moto X Play.
In all other Android my app works completely.
I got this…

Chirag Savsani
- 6,020
- 4
- 38
- 74
2
votes
1 answer
Android: Bitmap.compress poor quality with PNG format
My application captures video footage and saves it as .mp4 file. I would like to extract one frame from this video and also save it to file. Since I haven't found nothing better, I've decided to use MediaMetadataRetriever.getFrameAtTime() for that.…

Krzysztof Kansy
- 305
- 2
- 13
2
votes
1 answer
MediaMetadataRetriever getFrameAtTime return first frame only
The below code returns(test.gif) only the first frame and makes a gif with the 5 same frames (video first frame).
I read most questions in StackOverflow but I can't figure out what cause this problem.
Also, per some suggestions, I tried to use…

hosein
- 519
- 5
- 25
1
vote
2 answers
Get all frames from video using MediaMetadataRetriever
I'm trying to get all frames from a video using MediaMetadataRetriever and getFrameAt() method.
Using FFMPEG, I've got the following information :
Video frame counts : 234 frames
Video duration in milliseconds : 90000
int counter = 0;
long…

Mouaad Abdelghafour AITALI
- 4,007
- 7
- 27
- 54
1
vote
0 answers
Why MediaMetaDataRetriever is taking so much time to retrieve Album Art?
I have a function from which I retrieve Album Art of all audio files. The problem is, though that it takes atleast a minute to retrieve the album art of 100-200 audio files. How can I make it take less time for retrieving album art??
private Bitmap…

KODE
- 25
- 6
1
vote
0 answers
Get video duration from FileDescriptor or ParcelFileDescriptor
I've been using this type of code to get the duration of videos on my Android device:
int dataColumn = cursor
.getColumnIndex(MediaStore.Files.FileColumns.DATA);
String path =…

Uche Ozoemena
- 816
- 2
- 10
- 25
1
vote
0 answers
MediaMetadataRetriever transposed width and height of video in presence of rotation metadata
I'm capturing video frames as bitmaps using MediaMetadataRetriever.
MediaMetadataRetriever mmr;
double fps;
double duration;
long counter = 0;
long incrementer;
String fpsString;
int width;
int height;
int bitrate;
int rotation;
public…

Majid Amini
- 15
- 4