Jump to content
Sign in to follow this  
dinfinity

Caching of embedded album art

Recommended Posts

The caching mechanism doesn't seem to process embedded album art. I have a few albums in which the mp3s contain relatively very large (~640kb) embedded album art.

Whenever a song of one of these albums is played, the player only responds to 'next' or other commands after it is done loading and resizing the embedded image (which sometimes takes several seconds).

I could, of course, reduce the sizes of the embedded images, but I'm lazy :-)

Also, perhaps a more compelling reason: it seems more efficient to use the (effective) caching mechanism for embedded album art instead of using cpu cycles for resizing the image every time a song with embedded art is played.

Share this post


Link to post
Share on other sites

Thanks for the report. Caching works only for downloaded album art, embed album art is always extracted. Though, 640kb album art shouldn't take more than 100ms to decode (which is slow of course, but this is phone, not pc). PowerAMP uses special algorithm which ensures the decoded image won't be larger thant 1000x1000px (even if it's originally larger than that), so the top time should be constant. "Several seconds" is somewhat unusual. It can be something with the image format as well.

PowerAMP album art resolver/downloader is currently runs in the separate thread and album art download requests are serialized, though, it won't affect the playback functionality - this runs in isolated specific threads independently of other parts.

Please send that (one) track to poweramp.maxmpz gmail.com for some tests. PowerAMP v2.0 now processes multiple album art images (up to 5) in advance and I want to be sure that all types of embed art is processed fast.

Also, what is your phone model/Android os version?

Share this post


Link to post
Share on other sites

Phone is (Dutch) HTC Desire Z (Virtuous 1.0.1 Custom ROM (Android 2.2.1) (and many more customizations).

Side note: the tracks (with large embedded album art) do start playing, it's just that most controls are dysfunctional while the image is decoded.

Sample track will be emailed asap!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...