Questions tagged [mediametadataretriever]

96 questions
0
votes
1 answer

MediaMetadataRetriver.setDataSource crash in release while trying to load resource (status = 0x80000000)

I'm trying to read metadata from a resource using MediaMetadataRetriver, it works in debug variant, but crash in release variant. java.lang.RuntimeException: setDataSource failed: status = 0x80000000 what should it do??
Roi Amiel
  • 353
  • 1
  • 3
  • 18
0
votes
1 answer

Android - how to get frames from video file?

I want to extract frames from video file stored on the device. Every solution i found is to use FFmpegMediaMetadataRetriever or MediaMetadaraRetriever, but as I wrote here it's not working for me. Is there any other way to extract frames from video?
AndroideuszPL
  • 385
  • 1
  • 2
  • 13
0
votes
1 answer

Extracting frame from video from storage device using MediaMetadataRetriever - IllegalArgumentException at setDataSource()

I want to extract one frame from video in my app. The video is chosen from my storage device. After trying to call setDataSource I'm getting an IllegalArgumentException. Here is the part of my code: MediaMetadataRetriever med = new…
0
votes
2 answers

Getting the aspect ratio of any video

I want to get the aspect ratio of nay video in android like (1:1, 9:16 etc). Currently i get the height and width of a video but i want the aspect ratio. Is this task is possible with Ffmpeg or MediaMetadataRetriever? If yes, then please give me…
Addy
  • 75
  • 2
  • 10
0
votes
1 answer

FFmpegMediaMetadataRetriever from External Storage? Android Studio/Kotlin

So I'm making my first Android app and I'm trying to get it to allow the user to pick a video from their gallery before seeing the video and the video's current details in the next activity. My problem is that when I use FFmpegMediaMetadataRetriever…
Cal Courtney
  • 1,279
  • 2
  • 10
  • 22
0
votes
0 answers

Parsing logcat output on android phone

I want my app to get the MediaMetaData (song title/artist/album) of the currently playing audio. I can see this info being printed to logcat on my computer under updateMediaMetadata, so I'm trying to extract that info somehow. EDIT: So logcat…
Martin
  • 1,336
  • 4
  • 32
  • 69
0
votes
1 answer

MediaMetadataRetriever giving RunTimeException

In my public void onActivityResult(int requestCode, int resultCode, Intent data) {... there is a portion like this: if (requestCode == 1) { // Make sure the request was successful final Uri videoUri =…
Zubayr
  • 457
  • 4
  • 18
0
votes
2 answers

Getting individual image of mp3 file is too slow

I am trying to get the image of mp3 file on my phone. I've been struggling a few days and now I know; Firstly, I use a content provider with this code ` Uri allSongsUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; String…
0
votes
2 answers

MediaMetadataRetriever : app crashes when trying to retrieve album art from mp3 using url

What I want to accomplish here is that when I call this method: public void setAlbumArt(int index) { android.media.MediaMetadataRetriever mmr = new MediaMetadataRetriever(); mmr.setDataSource(this, Uri.parse(fullsongpath.get(index).Path)); …
0
votes
1 answer

How to get album art from MP3 file having spaces in its name using SetDataSource

Whenever I run code it works fine for a song which has no space in it's name Check this line of code : metaRetriver.setDataSource("/storage/emulated/0/song.mp3"); Here their is a MP3 file with no space (song.mp3) But whenever I change the song which…
0
votes
1 answer

How to use MediaMetadataRetriever SetDataSource for file in external storage

I'm trying to extract Album art from MP3 file But I not able to give proper location of song, which I can give it to SetDataSource method. I tried everything but still it gives me error IllegalArgumentException. It all happens when this line…
0
votes
2 answers

How to retrieve Album Art from .mp3 file using MediaMetadataRetriever()

I'm trying to retrieve Album Art from MP3 file but the following code isn't working. Whenever the application starts it shows me Gray color box (check code in try/catch block). public class MainActivity extends AppCompatActivity { …
0
votes
1 answer

RuntimeException: setDataSource failed: status = 0x80000000 using MediaMetaDataRetreiver

I am trying to make a gif app on android. The gifs are made and saved in ExternalStoragePublicDirectory. Now I am trying to get those files and show it in a recyclerview using MediaMetadataReteiver by passing the files to the adapter. Below is the…
Tsar
  • 63
  • 2
  • 10
0
votes
2 answers

MediaMetaDataRetriever.setDataSource return null

I'm trying to develop an application (Radio Stream) app, I want to get the details of the song that is playing on the radio for that MediaMetadataRetriever API but when i set my URL i get this error : java.lang.IllegalArgumentException …
0
votes
1 answer

MediaMetadataRetriever.setDataSource(Native Method) causes RuntimeException: status = 0xFFFFFFEA

I'm building a media player using ReactNative. In order to accomplish such app I had to export a module I built for retrieving music metadata like album, artist, etc as well as file path. The code above was working perfectly using jdk1.8.0_112, but…
Facundo La Rocca
  • 3,786
  • 2
  • 25
  • 47