I've got file name of mp3 file. How can I extract metadata like artist, album, album image,... from this mp3 file?
There are a number of programs you can use to track down missing metadata. We recommend looking at programs like Media Monkey, Audacity and JRiver which allow you to search their database for the correct info and simply drag and drop in the album artwork you're missing.
ExifTool is a powerful tool used to extract metadata of a file. It is used not only on images but some other formats of files like PDF and mp4 etc. It enables us to update and remove metadata of files and gives a lot of information about files.
ID3 is a metadata container most often used in conjunction with the MP3 audio file format. It allows information such as the title, artist, album, track number, and other information about the file to be stored in the file itself.
try this for API level 10 or greater
MediaMetadataRetriever mmr = new MediaMetadataRetriever();
mmr.setDataSource(filePath);
String albumName = mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_ALBUM));
and so on...
for more help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With