[FIXED] Album Art Issues

Forum to discuss iMonkey iPhone/iPod Touch client for MediaMonkey

[FIXED] Album Art Issues

Postby wdpaynter » Sun Jul 26, 2009 2:00 pm

First off, got to say, Heck of a job with this program. It is well worth the money and I've been repping it over at the MM forums (as has nohitter).

A few small issues I am experiencing are related to the handling of album art. I've seen the first touched on in other parts of this forum, but could not find a solid solution. ( I'm using latest iphone app version (OS 3.0 of iphone) and latest server for iMonkey, still using MM 3.0 on the PC (XP SP3) is use for iMonkey - I store jpg cover images in the tag of all my mp3s)

1.) Many songs' album art will not display (either displays last working album cover or none whatsoever). In the log I receive a "JPEG Error #53" for those that do not.
2.) MP3s that have more than (1) cover art often take a long time to play (25-40 seconds after changing track) and often even a little more time to display properly in "Now Playing"

Both these bugs are easily identifiable in the log file (Please let me know if you require a example of this behavior in a log).
I appreciate anyone's help in this matter, as it is a little frustrating.

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Sun Jul 26, 2009 5:04 pm

Bill this is great stuff debugging! I really appreciate the extra effort in debugging.

GOOD NEWS: This is a server side EXE problem so hopefully I can just fix it and publish a new EXE and not affect the iPhone code.

YOUR PART: The best way for me to debug the problem is to maybe get one of your MP3's that has this scenario so I can step through the code myself and see the problem. Is there any way for you to put it on RapidShare or some system and send me a link for me to download it? Each bug I slowly fix has a new scenario of MP3's that I don't have in my collection that is why help from the community like yourself is much appreciated!

Let me know....
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Sun Jul 26, 2009 9:36 pm

Mello

Glad to hear I can be of assistance. Ironically my Rapidshare account expired today. I will put some example files on Mediafire as soon as I get back home. Do you need a log file(s) or anything else?

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Mon Jul 27, 2009 6:02 am

wdpaynter wrote:Mello

Glad to hear I can be of assistance. Ironically my Rapidshare account expired today. I will put some example files on Mediafire as soon as I get back home. Do you need a log file(s) or anything else?

Thanks
Bill P


The imonkey.log next to the EXE showing the errors you are getting might help too!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Mon Jul 27, 2009 10:12 am

Mello

Below are the Mediafire links to example mp3s. The first (2) AC-DC mp3s are examples of issue #1 above. The Wu-Tang mp3 is an example of issue #2 above. I have also pasted a log of these files/errors in action. As you can see the Wu-Tang example has 3 covers and took 50 seconds to play. Please let me know if you have any questions.

Thanks

http://www.mediafire.com/?litc7ycn0my
http://www.mediafire.com/?mwtjvymzsif

http://www.mediafire.com/?2zv1xzmnzoa

[7/27/2009 10:58:37 AM] INIT >iMonkey [STARTING]
[7/27/2009 10:58:37 AM] INIT >--------------------------------------------------------------------------------------------------
[7/27/2009 10:58:37 AM] INIT >iMonkey Version: 1.3.0.112
[7/27/2009 10:58:37 AM] INIT >System : Windows XP Professional
[7/27/2009 10:58:37 AM] INIT >IP Address: 192.168.1.101
[7/27/2009 10:58:37 AM] INIT >Processor : Celeron
[7/27/2009 10:58:37 AM] INIT >Display : 1152x864 pixels, 24 bpp
[7/27/2009 10:58:37 AM] INIT >--------------------------------------------------------------------------------------------------
[7/27/2009 10:58:37 AM] INIT >Initialize Registry Settings
[7/27/2009 10:58:37 AM] INIT >Socket = 6001
[7/27/2009 10:58:37 AM] INIT >Max Connections = 1
[7/27/2009 10:58:37 AM] INIT >TimerIntervalInMilliseconds = 975
[7/27/2009 10:58:37 AM] INIT >Compression Enabled = -1
[7/27/2009 10:58:37 AM] INIT >Compression Percent = 75
[7/27/2009 10:58:37 AM] INIT >Smartlist Count Max = 200
[7/27/2009 10:58:37 AM] INIT >Playlist Count Max = 500
[7/27/2009 10:58:37 AM] INIT >Playlist Start Playing On Change = -1
[7/27/2009 10:59:08 AM] INIT >MediaMonkey Version: 3.0.3
[7/27/2009 10:59:08 AM] INIT >Caching Smartlists for performance...
[7/27/2009 10:59:08 AM] PLIST >Loading available playlists
[7/27/2009 10:59:15 AM] INIT >iMonkey [STARTED]
[7/27/2009 10:59:19 AM] SERVER>Socket Connect: 192.168.1.103
[7/27/2009 10:59:19 AM]COMMAND>version
[7/27/2009 10:59:19 AM]COMMAND>plist
[7/27/2009 10:59:19 AM]COMMAND>slist
[7/27/2009 10:59:39 AM]COMMAND>LISTBill's Playlists - Classic Rock
[7/27/2009 10:59:39 AM] PLIST >Setting Active Playlist = BILL'S PLAYLISTS - CLASSIC ROCK
[7/27/2009 10:59:46 AM] COVER >Covers Found = 1
[7/27/2009 10:59:46 AM] COVER >Tag:
[7/27/2009 10:59:57 AM]COMMAND>LISTBill's Playlists - Bon Scott
[7/27/2009 10:59:57 AM] PLIST >Setting Active Playlist = BILL'S PLAYLISTS - BON SCOTT
[7/27/2009 10:59:59 AM] COVER >Covers Found = 1
[7/27/2009 10:59:59 AM] COVER >Tag:
[7/27/2009 10:59:59 AM] ERROR >JPEG error #53
[7/27/2009 11:00:05 AM]COMMAND>LISTBill's Playlists - Brian Johnson
[7/27/2009 11:00:05 AM] PLIST >Setting Active Playlist = BILL'S PLAYLISTS - BRIAN JOHNSON
[7/27/2009 11:00:07 AM] COVER >Using default NoCover image because no cover image was found
[7/27/2009 11:00:10 AM] COVER >Covers Found = 1
[7/27/2009 11:00:10 AM] COVER >Tag:
[7/27/2009 11:00:10 AM] ERROR >JPEG error #53
[7/27/2009 11:01:13 AM]COMMAND>LISTBill's Playlists - Wu-Tang
[7/27/2009 11:01:13 AM] PLIST >Setting Active Playlist = BILL'S PLAYLISTS - WU-TANG
[7/27/2009 11:01:15 AM] COVER >Covers Found = 1
[7/27/2009 11:01:15 AM] COVER >Tag:
[7/27/2009 11:01:29 AM]COMMAND>NOW416904
[7/27/2009 11:02:19 AM] COVER >Covers Found = 3
[7/27/2009 11:02:19 AM] COVER >Tag:
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Mon Jul 27, 2009 1:49 pm

OK so it appears JPEG Error #53 looks like it because when I pull the file out of your ID3 tag to then stream it to the iPhone I need to save it to Temporary storage first. I save the file as a JPEG and try and stream it. Apparently MediaMonkey allows you when you add Album Art to add a JPG, PNG, BMP, or GIF. I have a feeling if inside the tag the image is anything but a JPG you will see this error. So my guess is whatever created that MP3 stored the album art as a PNG or GIF?

So what I did was I took your AC-DC - Jailbreak and I right clicked in MediaMonkey and did Properties and I did Save As to save the album cover to disk and it was about 43KB. I then saved that file using a converter to a JPG image and it was 11KB. I then in MediaMonkey removed the old album image and added the newly created JPG file and saved it back to the Tag. I think ran iMonkey and voila the cover showed up great. So what that proves is that for some reason the image inside your ID3 tag is not a JPEG. I will see if there is some way for me to not assume it's a JPG but the MediaMonkey API just gives me the raw bytes of the file which I then write to disk. There is nothing in the API that tells me what type of file it is.

Trixmoto's script for Album Art tagging may help make this process less tedious. http://trixmoto.net/mm/search.php?all=scripts

I am working on the second issue....
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Mon Jul 27, 2009 6:18 pm

Mello

I appreciate the response. Unfortunately I have close to 150,000 mp3s all with at least (1) image file, some with multiple files. So finding all of the images that are not JPEG will be pretty difficult. Do you think that it would be a good idea to fix the exe, to handle this? Because I am sure many people have similar art files, as I used MM to tag all my files.

Also, I have another problem or request (let me know if I should post it somewhere else):
I have all of my playlists nested and when they are displayed in iMonkey they only show that particular playlist's title which really makes things difficult and even some are duplicated b/c inside of different nested playlists I have some named the same. For example:

Bill"s Playlists
80's

&

Care's Playlists
80's

Currently in iMonkey I will have (2) playlists named 80's.

Is there a way to export the names of the playlists to iMonkey with the titles of the playlist(s) it is nested in? Or at least the next level up playlist for those that are nested multiple times. The export playlist script does this very well in MM. For example:

Bill's Playlists
Rock
Rush

Would be "Bill's Playlists - Rock - Rush"

This would be a huge thing for me and would eliminate me having to name them improperly or become disorganized within MM.

Even better than renaming the nested playlists in this way would be to have the Smartlist screen work like the nested lists in MM and/or the playlists in the ipod (click on top level, take to next level, then next, etc). This would also eliminate long scrolling for those that have many playlists (like me).

Is there anyway to change this behavior or at least the naming convention?
Let me know. I'd be willing to help in any way possible.

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Mon Jul 27, 2009 6:21 pm

OK I tried the WuTang song with the 3 albums covers on my setup..

iPhone OS 3.0
Windows XP SP3
MM 3.0.7 Gold
iMonkey 1.3

And it didn't have any delay in sending to the phone or playing the song? Could it be you need to upgrade your MM server version? I also tried it on MM 3.1 with same results.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby Melloware » Mon Jul 27, 2009 6:32 pm

wdpaynter wrote:I appreciate the response. Unfortunately I have close to 150,000 mp3s all with at least (1) image file, some with multiple files. So finding all of the images that are not JPEG will be pretty difficult. Do you think that it would be a good idea to fix the exe, to handle this? Because I am sure many people have similar art files, as I used MM to tag all my files.


I agree that is a pain. However the EXE has no way of knowing what type of File is coming out of the ID3 Tag. I always just assumed JPG because BMP and GIF are proprietary formats (Microsoft and Compuserve) respectively so if your ID3 Contains those I would need to on-the-fly convert them to JPG to then stream to the iPhone. Probably a pretty slow process. Even worse my code would have to look like the following pseudocode...

Code: Select all
try {
   ...load as JPG...
} catch Exception {
   try {
      ...load as GIF....
      ...convert to JPG....
   } catch Exception {
      try {
          ...load as BMP...
          ...convert to JPG....
      } catch Exception {
          try {
              ...load as PNG...
              ...convert to JPG....
          } catch Exception {
              //THIS WAS THE LAST CHANCE SO ERROR OUT
          }
      }
   }
}


As you can see that is pretty ugly and code intensive for every single cover loaded from an ID3 tag.

If the MM API's had which type of file the embedded cover tag is then it might be possible for the EXE to then decode that file type, then convert it to JPG and then stream it to the phone.

I originally though the ID3 Tag spec required JPG as the album cover format for embedded tags but apparently that is not the case.

I will have to look but I might be able to use this function...

http://www.mediamonkey.com/wiki/index.php/ISDBImage::ConvertFormat
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Mon Jul 27, 2009 6:43 pm

The multiple cover thing could just be my computer/network/ or something, not a big deal. And I guess I can try to figure out and convert those that are not .jpg. At least you figured out why this is likely happening (THANKS!)

Did you have a chance to look over my nested playlist naming issue? This one is really important to me.

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Tue Jul 28, 2009 7:34 am

wdpaynter wrote:The multiple cover thing could just be my computer/network/ or something, not a big deal. And I guess I can try to figure out and convert those that are not .jpg. At least you figured out why this is likely happening (THANKS!)

Did you have a chance to look over my nested playlist naming issue? This one is really important to me.

Thanks
Bill P


OK I think that Convert Format WORKED! Can you give this new Server EXE a try....

http://melloware.biz/download/warez/imonkey-server.zip

It should try and convert PNG, BMP, or GIF embedded images into a JPG and send it. Let me know how it goes!

As for the nested playlist issue, let me look at it some more but it could be a bit tricky.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Tue Jul 28, 2009 12:54 pm

Mello

Seems to be working great!! Thanks a bunch! The only thing I noticed was that on art with funky dimensions, it does not display with the correct aspect ratio like MM forces it to do (which my art is the culprit and I do not care about this anyways). I've only had a chance to test it a little bit, but will keep testing over the next few days.

Let me know if there is anything I can do to help with the nested playlist thing. I've noticed that if (2) playlists have the same name, they are both populated with the same mp3s from the first one to be sent to iMonkey, even though the song count is correct.

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: Album Art Issues

Postby Melloware » Tue Jul 28, 2009 12:59 pm

wdpaynter wrote:Mello

Seems to be working great!! Thanks a bunch! The only thing I noticed was that on art with funky dimensions, it does not display with the correct aspect ratio like MM forces it to do (which my art is the culprit and I do not care about this anyways). I've only had a chance to test it a little bit, but will keep testing over the next few days.


Great!!! Yeah since my album cover in the iPhone is 300x300 and that MM API allows me to grab it as a JPG but demands that I tell it the dimensions I am just forcing all covers inside tags to 300x300 which is why some of them may look funny. At least it doesn't give us JPEG #53 error anymore though!

wdpaynter wrote:Let me know if there is anything I can do to help with the nested playlist thing. I've noticed that if (2) playlists have the same name, they are both populated with the same mp3s from the first one to be sent to iMonkey, even though the song count is correct.


Right because i think when you click on a Playlist from iMonkey i send the Playlist name back and loop through the list doing a "GetPlaylistByTitle" that grabs the first playlist with that name. Playlists in MM API are identified by Name and not be a generic unqiue number. That is why i said this could be tricky :).
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11090
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Album Art Issues

Postby wdpaynter » Tue Jul 28, 2009 1:59 pm

I wonder how MM distinguishes between them when they have same name, but are nested under different playlists. If we could see how they handle it, maybe we could do an "If" statement to identify empty "holder" playlists to bring into the app.

I dont really know a whole lot, but have some programming experience. As I said before, let me know if there's anything I can do to help.

Thanks Again!
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Re: [FIXED] Album Art Issues

Postby wdpaynter » Tue Jul 28, 2009 4:53 pm

Should I start a new topic regarding the playlist thing??

Thanks
Bill P
wdpaynter
 
Posts: 84
Joined: Sun Jul 26, 2009 1:42 pm
Location: Charlotte, NC

Next

Return to iMonkey (closed)

Who is online

Users browsing this forum: No registered users and 2 guests

cron