SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-26-2011, 03:16 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Corrupt poster images

I've been noticing quite a few corrupted poster images lately. Not sure if it is happening during transfer or rescaling and it only seems to affect posters. So far I haven't seen anything else pop up corrupt. Deleting the offending file, removing its entry from the ignore list, and issuing a rescan seems to correct the issue, but that's a lot of manual work Images attached for reference.

I poked around a bit and didn't see this mentioned in the known issues thread and don't see any other posts about it so maybe it's unique to my system? Any thoughts on where to look or logs I can capture for you? I don't think that the hard drive where these are stored is crapping out, it isn't showing any other symptoms of errors, but I've been wrong on these things before....
Reply With Quote
  #2  
Old 01-26-2011, 06:09 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Can't say I've seen this a lot but I have seen 3 or 4 of these. And if I go to tvdb and find the images manually I can download them with ho issues. So the problem is not in the original image.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #3  
Old 01-26-2011, 06:31 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Quote:
Originally Posted by gplasky View Post
Can't say I've seen this a lot but I have seen 3 or 4 of these. And if I go to tvdb and find the images manually I can download them with ho issues. So the problem is not in the original image.

Gerry
The 3 I posted are just in the past week or so and I've corrected ~ another 4 or 5 in the same time frame. And every time I've checked tvdb for the image, the source has been fine. It seems to be corruption either in transmission of the original image, or in the resize.

Have the ones you have noticed been posters or has it occurred in banners/backgrounds/etc?
Reply With Quote
  #4  
Old 01-26-2011, 07:31 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
In terms of downloading and scaling, bmt handles all image types the same. I would expect to see the same problem worth banners and backgrounds.

While I've never experienced this myself, any type of transmission d error may cause this.

Without specifics and a reproducible issue it's pretty hard to solve.
Reply With Quote
  #5  
Old 01-26-2011, 08:19 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Yeah I would lean more towards download/connection issues. TVDB and TMDB get overloaded and have issues quite often.
Reply With Quote
  #6  
Old 01-26-2011, 08:35 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Quote:
Originally Posted by stuckless View Post
In terms of downloading and scaling, bmt handles all image types the same. I would expect to see the same problem worth banners and backgrounds.

While I've never experienced this myself, any type of transmission d error may cause this.

Without specifics and a reproducible issue it's pretty hard to solve.
Understood.

Any idea if disabling poster and background scaling (banner is already disabled) would have horribly ill effects on performance for Phoenix/Diaimond? It would definitely rule out the rescaling question and just leave transmission and other negligible gremlins to watch for.

Quote:
Originally Posted by PLUCKYHD View Post
Yeah I would lean more towards download/connection issues. TVDB and TMDB get overloaded and have issues quite often.
Makes sense
Reply With Quote
  #7  
Old 01-26-2011, 09:09 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Spectrum View Post
Any idea if disabling poster and background scaling (banner is already disabled) would have horribly ill effects on performance for Phoenix/Diaimond? It would definitely rule out the rescaling question and just leave transmission and other negligible gremlins to watch for.
I'm actually considering removing the scaling from bmt anyways. Most fanart plugins already use the scaling features in the image apis, so, there really isn't a need for bmt to do it. This is carry over from the bmt 3.x and sage6 implemenation. I think you'll be fine if you disable them.

I suspect though, that if the scaling is the problem, then it will simply be moved to the scaling in the image apis (uses the same basic logic)
Reply With Quote
  #8  
Old 01-26-2011, 10:14 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by stuckless View Post
I'm actually considering removing the scaling from bmt anyways. Most fanart plugins already use the scaling features in the image apis, so, there really isn't a need for bmt to do it. This is carry over from the bmt 3.x and sage6 implemenation. I think you'll be fine if you disable them.

I suspect though, that if the scaling is the problem, then it will simply be moved to the scaling in the image apis (uses the same basic logic)
if the scaling was removed (or disabled) in bmt that would help narrow down if it was the download or the scaling (if done by the plugin using the image apis) that was causing the problem though because if it was a problem with the scaling the original image in the fanart folder would still be ok.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #9  
Old 01-26-2011, 11:44 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Quote:
Originally Posted by stuckless View Post
I'm actually considering removing the scaling from bmt anyways. Most fanart plugins already use the scaling features in the image apis, so, there really isn't a need for bmt to do it. This is carry over from the bmt 3.x and sage6 implemenation. I think you'll be fine if you disable them.

I suspect though, that if the scaling is the problem, then it will simply be moved to the scaling in the image apis (uses the same basic logic)
OK Scaling disabled. I'll keep an eye on things and may try deleting some fanart and re-scanning just to create some updates. I'll update as soon as I know something definitive or have let it run for awhile and not seen anything bad. Purely for your info at this point, I don't think it's something you should spend a lot of time chasing down. You got better things to do

Quote:
Originally Posted by razrsharpe View Post
if the scaling was removed (or disabled) in bmt that would help narrow down if it was the download or the scaling (if done by the plugin using the image apis) that was causing the problem though because if it was a problem with the scaling the original image in the fanart folder would still be ok.
This is true assuming that they rescale then cache the image. If that's the case then the image in the cache would be corrupted and the image in the fanart directory would still be good. Of course if they rescale then overwrite the original , all bets are off!
Reply With Quote
  #10  
Old 01-26-2011, 12:43 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Spectrum View Post
This is true assuming that they rescale then cache the image. If that's the case then the image in the cache would be corrupted and the image in the fanart directory would still be good. Of course if they rescale then overwrite the original , all bets are off!
I certainly wont speak for all plugins but i think most are doing the caching to decrease access time to the image.... so i dont think they they're replacing the original....
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #11  
Old 01-26-2011, 12:48 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by razrsharpe View Post
I certainly wont speak for all plugins but i think most are doing the caching to decrease access time to the image.... so i dont think they they're replacing the original....
I sure hope not that would be a horrible practice to replace people's original image.
Reply With Quote
  #12  
Old 01-26-2011, 12:50 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by PLUCKYHD View Post
I sure hope not that would be a horrible practice to replace people's original image.
oh ya agreed 100 times over
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #13  
Old 02-07-2011, 06:21 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
I noticed a corrupt image a few days ago and scanned through the cache/fanart directories and came up with the one I noticed and another one. In both cases the original image is fine and the cached image is corrupt. I've uploaded the cached images, the source images are both >750k so I'm not bothering with uploading them here. If you want them, let me know and I'll get them to you without eating up the forums storage space

Interestingly, these look more like color problems than the first ones I found did.
Attached Images
File Type: png 4f35236cbf7f6f0493f4906f8f437659.png (92.3 KB, 230 views)
File Type: png c11244c1585e8225779e634a946df6cd.png (100.8 KB, 229 views)
Reply With Quote
  #14  
Old 02-07-2011, 07:53 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
all of the corrupt images i have are color shifted like your examples... I just disabled the scaling that bmt does by default when an image is first downloaded. Now I'll be on the lookout for differences between the cache and central fanart folder...
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #15  
Old 02-07-2011, 08:05 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Quote:
Originally Posted by razrsharpe View Post
all of the corrupt images i have are color shifted like your examples... I just disabled the scaling that bmt does by default when an image is first downloaded. Now I'll be on the lookout for differences between the cache and central fanart folder...
These were the first 2 I caught that were bad in the cache but the originals were ok. Of course these are the first 2 I caught after I disabled scaling on any of the downloads

If this is a problem with the rescaling algorithm it might be tough for Stuckless and the (other?) Phoenix devs to track down; I bet they didn't actually write it. At this point it is more of a nuisance than anything, but I would like to help track it down if I can
Reply With Quote
  #16  
Old 02-07-2011, 08:31 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Spectrum View Post
I noticed a corrupt image a few days ago and scanned through the cache/fanart directories and came up with the one I noticed and another one. In both cases the original image is fine and the cached image is corrupt. I've uploaded the cached images, the source images are both >750k so I'm not bothering with uploading them here. If you want them, let me know and I'll get them to you without eating up the forums storage space

Interestingly, these look more like color problems than the first ones I found did.
I'd like to see the originals, since from those, i can can run the scaler and see what it produces.
Reply With Quote
  #17  
Old 02-07-2011, 09:30 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Quote:
Originally Posted by stuckless View Post
I'd like to see the originals, since from those, i can can run the scaler and see what it produces.
YGPM, let us know the results
Reply With Quote
  #18  
Old 02-10-2011, 04:20 AM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
More test images

These are just the originals. These seem to rescale improperly every time. I deleted the cached images and flicked back and forth until they got cached again and they show up with the color distortion just like before. I also tried having the ui at a diff resolution so they would scale to a different size and the distortion still occurred. Files md5 the same as the originals from tvdb so it's not like they got corrupted in transit. This is really bizarre!

Also, don't feel like I'm rushing you on this, I'm not. Just trying to provide enough info for you to track down whatever is causing it
Reply With Quote
  #19  
Old 02-10-2011, 07:24 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Spectrum View Post
These are just the originals. These seem to rescale improperly every time. I deleted the cached images and flicked back and forth until they got cached again and they show up with the color distortion just like before. I also tried having the ui at a diff resolution so they would scale to a different size and the distortion still occurred. Files md5 the same as the originals from tvdb so it's not like they got corrupted in transit. This is really bizarre!

Also, don't feel like I'm rushing you on this, I'm not. Just trying to provide enough info for you to track down whatever is causing it
Sorry for the delay... but I've been so busy with other projects that I haven't had time to look at these. I'm sure when I do get time... hopefully I can figure out what is happening based on the images that you've provided. In the meantime the scaling code is in Phoenix, is anyone wants to take a stab at it... I don't have an ETA on when I can get to it
Reply With Quote
  #20  
Old 02-14-2011, 07:27 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
After doing some research on this, the conclusions are not good. Apparently it's a known bug that the Java ImageIO library (which is what I use for reading/writing images) has issues with some jpeg files that use a different kind of color model.

http://stackoverflow.com/questions/1...ns-jpeg-colors
http://bugs.sun.com/bugdatabase/view...bug_id=4799903

I tried the solutions listed in those articles but it did not fix the problem. The only way I was able to get the file to convert correctly was by changing the source file. If I opened the source file with an image editor, and then just saved it, they the java image scaling would produce the correct file.

Just a note that the issue here is not the scaling. In my test, I would simply read the file and then write the same to another name using the build in java image apis (ImageIO.read, ImageIO.write) and the resulting file was corrupt every time.

Unfortuntely, java doesn't appear to to be resolving this issue, and I'm not sure there is much that I can as well
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Poster view crashing - Help please PhilH Sage My Movies 3 11-11-2010 11:53 AM
Default poster when there is no fanart Oats SageMC Custom Interface 0 10-21-2010 04:53 PM
Poster not showing up as Thumb technazz SageMC Custom Interface 0 09-24-2009 07:01 AM
Poster art not showing veger69 SageMC Custom Interface 5 07-20-2009 10:06 AM


All times are GMT -6. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.