albumart

Android set Album Thumbnail

ε祈祈猫儿з 提交于 2019-12-12 07:40:38
问题 I have retrieved some cover art for an album (I have the id and a Bitmap) and now I want to set it into the MediaStore. I tried a bunch of stuff: private static final Uri ARTWORK_URI = Uri.parse("content://media/external/audio/albumart"); public static void writeArtwork(Context context, Bitmap bmp, int albumId) { ContentResolver res = context.getContentResolver(); Uri uri = ContentUris.withAppendedId(ARTWORK_URI, albumId); LogUtil.i(TAG, "uri= " + uri); if (uri != null) {

Android + get Artworks + Google Music Beta

让人想犯罪 __ 提交于 2019-12-12 01:52:50
问题 I'm trying to get the artworks on a device that syncs mp3s with Google Music Beta . So I try the standard approach using a cursor to get all the album IDS and than for each of them the correspondent artwork: public void getAlbumIDS(){ Cursor cur = mContentResolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String [] {MediaStore.Audio.Media.ALBUM_ID}, null, null, null); startManagingCursor(cur); if (cur.getCount() > 0) { while (cur.moveToNext()) { int albumId = cur.getInt(cur

Album art not showing when using AudioPlaybackAgent in WP7?

两盒软妹~` 提交于 2019-12-11 15:28:15
问题 when using the AudioPlaybackAgent in WP7 I create a track before playing it. Now when I create the track everything transfers: the file, the title, the artist, and the album, but for some reason when I navigate to the Music and Video Hub on the phone the AlbumArt never shows up. Here's my code: AudioTrack audioTrack = new AudioTrack(); audioTrack.BeginEdit(); audioTrack.Source = new Uri(track.Attribute("source").Value); audioTrack.Title = track.Attribute("title").Value; audioTrack.Artist =

Check if album art exists?

可紊 提交于 2019-12-11 00:25:12
问题 I'm building a music player app. I'm trying to populate a recyclerView with album arts of songs. I successfully did that with the code that is given below. But some of the songs do not have embedded album art not any album art in the folder. So, I'm trying to check if the album art is null or not before adding it to the recyclerView . If the album art is null, the app will automatically fetch it from the internet. I tried checking if the album art is null or not, but everytime it gives me a

ffmpeg : convert FLAC to mp3 and add album art in one step

这一生的挚爱 提交于 2019-12-08 13:02:07
问题 I convert FLAC to MP3 using ffmpeg -i x.flac -f mp3 -vn -b:a 64K x.mp3 and I add album art using ffmpeg -i x.mp3 -i x.jpg -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" xx.mp3 Is it possible to do it in one step? Because I want to do it during "live" transcoding. 回答1: You can use a pipe instead of using a temporary file. You just have to explicitly specify the format of input/output. Example: ffmpeg -i input.mp3 -f mp3 - |

How to show album art , song name ,duration, and the artist name in a ListView

倾然丶 夕夏残阳落幕 提交于 2019-12-08 03:51:28
问题 hello i wanna make an android music app for that i want my listView which shows all the songs to display album art of that song , artist name , duration and song name i have succeeded showing all the songs in the listview but unable to display album art etc so can anyone help me in this?? Thanks in advance 回答1: You can use content provider for this. Hope this code may help you to start up. final Cursor mCursor = getContentResolver().query( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new

Embedding album cover in MP4 file using Mutagen

倖福魔咒の 提交于 2019-12-07 09:28:20
问题 I'd like to be able to add album cover into the file using mutagen, however when I add it as a file it returns with: File "D:\Download\pandora\renamingMETAEFF.pyw", line 71, in <module> meta['covr'] = image File "C:\Users\AMD\AppData\Local\Programs\Python\Python35\lib\site-packages\mutagen\_file.py", line 67, in __setitem__ self.tags[key] = value File "C:\Users\AMD\AppData\Local\Programs\Python\Python35\lib\site-packages\mutagen\mp4\__init__.py", line 357, in __setitem__ self._render(key,

Get embedded mp3 file embedded art failed

天涯浪子 提交于 2019-12-07 06:04:36
问题 I'm trying to get the album art of a MP3 file. I thought the best and cleanest way to do this is use the MediaMetadataRetriever class. But for some reason calling the getEmbeddedPicture method doesn't work. The image isn't showing, LogCat shows an error: 04-29 18:36:19.520: E/MediaMetadataRetrieverJNI(25661): getEmbeddedPicture: Call to getEmbeddedPicture failed. This is the code that doesn't seem to work: @Override protected Void doInBackground(Void... params) { // TODO Auto-generated method

Could someone provide a C# example using itemsearch from Amazon Web Services

孤街浪徒 提交于 2019-12-07 05:04:37
问题 I am trying to use Amazon Web Services to query Artist and title information and receive album art back. Using C# I cannot find any examples that come even close to this. All of the examples online are outdated and do not work with AWS' newer version. 回答1: Here you go for what it's worth. This is code within an Asp.Net control to display book information. You can probably adapt it for your purposes easily enough. Or at least give you a starting-point. If you really want, I'd be happy to

Embedding album cover in MP4 file using Mutagen

风格不统一 提交于 2019-12-05 13:58:32
I'd like to be able to add album cover into the file using mutagen, however when I add it as a file it returns with: File "D:\Download\pandora\renamingMETAEFF.pyw", line 71, in <module> meta['covr'] = image File "C:\Users\AMD\AppData\Local\Programs\Python\Python35\lib\site-packages\mutagen\_file.py", line 67, in __setitem__ self.tags[key] = value File "C:\Users\AMD\AppData\Local\Programs\Python\Python35\lib\site-packages\mutagen\mp4\__init__.py", line 357, in __setitem__ self._render(key, value) File "C:\Users\AMD\AppData\Local\Programs\Python\Python35\lib\site-packages\mutagen\mp4\__init__.py