Questions tagged [mediametadataretriever]

96 questions
0
votes
1 answer

Faster gesture feedback for onScroll

I have a video file and would like to let the user play it back and forth with swipe right and left gestures. The user experience should be smooth in the sense that if the video file contains a static scene from left to right the user should have…
0
votes
0 answers

Retrieve information in a file

Good morning. I have downloaded the Yahoo Flickr Creative Commons 100M (14G) Dataset from the official website. When i extracted it i got a 48 GB file wiithout extension. I also have a file .txt where it explains how the dataset is composed and it…
0
votes
0 answers

java.lang.OutOfMemoryError: on getEmbeddedPicture at MediaMetadataRetriever

I want to get cover image from mp3 file, but OutOfMemoryError occurs MediaMetadataRetriever mmr = new MediaMetadataRetriever(); mmr.setDataSource(filePath); byte[] data = mmr.getEmbeddedPicture();//here OutOfMemory …
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
0
votes
1 answer

I want to create thumbnail from video url of server in android

My code, public static Bitmap retriveVideoFrameFromVideo(String videoPath) throws Throwable { Bitmap bitmap = null; MediaMetadataRetriever mediaMetadataRetriever = null; try { mediaMetadataRetriever = new…
0
votes
1 answer

how can get album art of song from url

want get album art of song from url and this is my try so far : SongPath = "www.asd.com/music.mp3"; android.media.MediaMetadataRetriever mmr = new MediaMetadataRetriever(); try{ mmr.setDataSource(SongPath); …
Erf
  • 343
  • 1
  • 3
  • 11
0
votes
4 answers

Get exact frame from a video in Android

So I have an app where users can take videos, and I want to grab specific frames from the file. When I use the method MediaMetaDataRetriever.getFrameAtTime(), it can only extract one frame for every second, but I want to grab frames between the…
hermt2
  • 844
  • 3
  • 14
  • 33
0
votes
2 answers

Android MediaStore field for "position-in-album"?

I am revising an Android music-player app and have been forced to embrace using MediaStore and ContentResolver to access music file data as a result of the gradual closing-off of access to the external-storage filesystem. So, I am populating my…
ejoftheweb
  • 301
  • 1
  • 2
  • 10
0
votes
2 answers

Android: String null pointer exception when android error string == null is always false

I am scanning the users phone and getting a list of all device music uri. I then use those these Uris to find the music metadata for setting in a RecyclerView. I have found that some of the songs don't have the artist,album or image metadata in the…
0
votes
1 answer

Drupal module to retrieve external website content and populate form for a user to review

First question here so hi Guys. I've spent ages looking for a module to retrieve data from any website and add the content to a form. I was convinced allot of people whould have used something similar but cannot find anything. Basically we have a…
0
votes
1 answer

MediaMetadataRetriever/MediaPlayer fails with .m4b files on LG device

I have an app that downloads m4b files. When I try to read the metadata of the file using MediaMetadataRetriever, I get null values. This only happens on LG devices. It doesn't matter if it is Android 4, 5, or 6. I can get around the problem by…
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
0
votes
1 answer

Getting the Title of an MP3 throws "java.lang.IllegalArgumentException"

Why does this code throw a IllegalArgumentException? I want to show the Title of an MP3-File which is located at the "raw" folder mediaPlayer = MediaPlayer.create(getActivity(), R.raw.willy_william_ego); MediaMetadataRetriever mmr = new…
0
votes
1 answer

NullPointerException when threading MediaMetadataRetriever [Android]

I have once again run out of ideas for an error and returned to the helpful Stack Overflow community for guidance. I understand that this is a very long post to wade through, but I believe that it could be helpful to others in the community, and…
0
votes
1 answer

java.io.IOException:setdatasource failed status = 0xFFF

I am trying to get duration of .amr file by using MediaMetadataRetriever.Bur Every time I use, It give me the Error. Following Is the code to calculate the Duration. But it gives Error at SETDATASOURCE.newfile is the file i have created at…
Vikram
  • 85
  • 1
  • 11
0
votes
2 answers

android video show total duration without using media controller

I am trying to get duration of video being played as i am creating my custom media controller.When I use default mediacontroller there seem no problem as it shows all the details.I want to create my own mediacontroller only to add some graphics in…
0
votes
0 answers

Getting Thumbnail from video which is not Youtube, Dailymotion?

I am developping an Android application and I encouter problem to get thumbnail of video. My question is simple. I know how to get thumbnail for Youtube or Dailymotion but is there a way to do the same for a video like this one :…
Androzr
  • 65
  • 1
  • 10