SageTV Community  

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

Notices

Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-10-2012, 06:54 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
New Phoenix build (2.3.59)

This build changes the fanart/image caching to use jpg format rather than the png format. The image quality should still be the same, but, the file sizes are drastically smaller. For example many of my cached images were over a 1mb and the same file as a jpg is around 50k.

Because of this change, the cached fanart that exists right now, will never be accessed again. Before or shortly after updating to the new phoenix api, you should delete your existing cache directory, in SAGE_HOME/userdata/Phoenix/cache/, and then allow it to be rebuilt.

I think Phoenix and Gemstone both provide options to pre-scale the fanart, which can take some time, but the option is there if you don't want to do it on demand.

If you don't prescale the fanart, then for the next few times that you use Phoenix/Gemstone then you'll notice some pauses as you navigate, since it will be rescaling and caching the fanart on the fly.
Reply With Quote
  #2  
Old 12-10-2012, 12:12 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
stuckless, thanks for the change, it certainly makes a huge difference to the size of the files.

The "Phoenix Fanart for SageTV" plugin also has an option to pre-scale the fanart, which like Gemstone should be run from the predominantly used UI as the scaling is based on UI width.

John
Reply With Quote
  #3  
Old 12-10-2012, 12:58 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by JREkiwi View Post
stuckless, thanks for the change, it certainly makes a huge difference to the size of the files.

The "Phoenix Fanart for SageTV" plugin also has an option to pre-scale the fanart, which like Gemstone should be run from the predominantly used UI as the scaling is based on UI width.

John
Yeah, I didn't realize just how much of a difference that jpg/png formats would be. I hoping there are no other side effects of switching to jpg.

There is also a new property in the Phoenix Fanart section for image compression. The default is set to 0.82, but for those that want to tweak this... you can search for the setting in the bmt configuration, "compression", and set it to a value between 0 and 1.0 where 1.0 mean no compression, and 0 mean compress ALOT. I think the default settings should suffice for most people, but, I know there are "tweakers" out there
Reply With Quote
  #4  
Old 12-10-2012, 01:51 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by stuckless View Post
This build changes the fanart/image caching to use jpg format rather than the png format. The image quality should still be the same, but, the file sizes are drastically smaller. For example many of my cached images were over a 1mb and the same file as a jpg is around 50k.

Because of this change, the cached fanart that exists right now, will never be accessed again. Before or shortly after updating to the new phoenix api, you should delete your existing cache directory, in SAGE_HOME/userdata/Phoenix/cache/, and then allow it to be rebuilt.

I think Phoenix and Gemstone both provide options to pre-scale the fanart, which can take some time, but the option is there if you don't want to do it on demand.

If you don't prescale the fanart, then for the next few times that you use Phoenix/Gemstone then you'll notice some pauses as you navigate, since it will be rescaling and caching the fanart on the fly.
there are several dirs within the 'cache' dir on my system. "Imagetrans" and "url". Which one is related to Phoenix?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #5  
Old 12-10-2012, 02:36 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by tvmaster2 View Post
there are several dirs within the 'cache' dir on my system. "Imagetrans" and "url". Which one is related to Phoenix?
Well, since they are all in the userdata/Phoenix/cache dir, they are all related to Phoenix

But the imagetrans is related to fanart, and the url, is related to metadata fetching, and there may be lots of other sub directories, depending on whether or not Gemstone is installed, or if you are using the bmt web ui, or the android client.
Reply With Quote
  #6  
Old 12-10-2012, 02:48 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by stuckless View Post
Well, since they are all in the userdata/Phoenix/cache dir, they are all related to Phoenix

But the imagetrans is related to fanart, and the url, is related to metadata fetching, and there may be lots of other sub directories, depending on whether or not Gemstone is installed, or if you are using the bmt web ui, or the android client.
yes, I am using BMT, or I did when I rebuilt my system and lost some info. SO the imagetrans dir seems to contain all the png files - so trash that dir?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #7  
Old 12-10-2012, 02:52 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by tvmaster2 View Post
yes, I am using BMT, or I did when I rebuilt my system and lost some info. SO the imagetrans dir seems to contain all the png files - so trash that dir?
Yeah, there's never any harm in trashing the entire cache dir... the worse thing that happens is that it gets rebuilt again over time.

But, specifically, the userdata/Phoenix/cache/imagetrans/ dir contains all the image transformations (ie, scaled images) for Phoenix fanart API, so deleting that just deletes the cached scaled fanart. And since png files are not used any longer, you can be picky and just delete the .png files if you want, or to be sure, blow it all away.
Reply With Quote
  #8  
Old 12-10-2012, 06:25 PM
PhilH's Avatar
PhilH PhilH is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Edinburg, TX (Deep South Texas)
Posts: 95
Thank you very much for this change.

I am running SageTV on WHS v1.. I was running out of free space on C: drive..

I moved the fanart directory off of the C: drive & that freed up a good bit of space, but the cache was eating me up. I had 12.4 gig free space without the cache & only 7.8 free after the cache was built.

Now I have 11.9 GB free.. The cache size now is only 494 Meg.. With 6608 items.

Us WHS users wish to thank you..

Phil

P.S. My Fanart dir currently sits at 4.61 gig.. Great compression on the .jpg's.. The look as good as the png's...
__________________
SageTV v7.1.9 Gemstone WHS + 3 HD200's, 1 Client & 1 Placeshifter
WHS - Dual Xeon 2.8ghz - 3gig ECC Ram - 25 Drives - 30 Terabytes
Blu-ray Titles 498
HD-DVD Titles 166
DVD Titles - Too Many To Count..
Reply With Quote
  #9  
Old 12-10-2012, 07:41 PM
appelm appelm is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Chappaqua, NY
Posts: 323
I think I updated as explained but now my posters are low quality with jagged edges. Much faster! But not too pretty. What can I do to fix it? I'm specifically looking at center flow and to less degree list flow.
Reply With Quote
  #10  
Old 12-10-2012, 07:45 PM
HokiePerogi HokiePerogi is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 187
TVExplorer missing banners

Ever since installing this update earlier today, I am missing all of the banner artwork in my TV submenu which is run by TVExplorer.

I know this isn't a TVExplorer thread, but I'm just wondering the latest update might have affect the API's which some older pluggin's were using. Backgrounds still work in TVExplorer, and if I disable TVExplorer, the banners show up in the Malore menus. Restarts of SageTV and my server don't seem to fix the issue. Neither did a complete delete of my cache and userData folders.

Any suggestions?

Thanks.
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable)
Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only)
Tuning: OpenDCT v0.5.20-RC2
Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111
Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter
Reply With Quote
  #11  
Old 12-10-2012, 07:47 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by appelm View Post
I think I updated as explained but now my posters are low quality with jagged edges. Much faster! But not too pretty. What can I do to fix it? I'm specifically looking at center flow and to less degree list flow.
Are you using Phoenix or Gemstone... if Gemstone then this should be posted in the Gemstone forum.

If using Gemstone (you mentioned Center and List Flows)... then check out the UI Width setting as described in the Gemstone post regarding this change.

If using Phoenix UI then I am not certain if there is such a setting... so hopefully someone else can respond that does use the Phoenix UI.

k
Reply With Quote
  #12  
Old 12-10-2012, 08:31 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by HokiePerogi View Post
Ever since installing this update earlier today, I am missing all of the banner artwork in my TV submenu which is run by TVExplorer.

I know this isn't a TVExplorer thread, but I'm just wondering the latest update might have affect the API's which some older pluggin's were using. Backgrounds still work in TVExplorer, and if I disable TVExplorer, the banners show up in the Malore menus. Restarts of SageTV and my server don't seem to fix the issue. Neither did a complete delete of my cache and userData folders.

Any suggestions?

Thanks.
I just posted the same thing over in the TVE thread. At least I know it's not just me now.

EDIT: Also, I just looked at the image cache for TVE and all the new JPG banners and posters have the red hue to them. I recall this happening once before quite some time ago and someone had to fix something, but I can't remember who or what.

EDIT #2: I suspect they're actually being "displayed" because the text "banner" which should show when there's no image is NOT showing up either. However, for shows which did not have banners (e.g. American Horror Story), the text is there.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7

Last edited by Skirge01; 12-10-2012 at 08:55 PM.
Reply With Quote
  #13  
Old 12-10-2012, 09:07 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Rather than adding edit #3, I'll reply so it doesn't get lost. I just manually copied an original JPG poster from the server (no red hue) and renamed it on the client PC in the cache folder to its matching, red-hued JPG. That one now shows up as expected. So, I do believe the issue is caused by the red mask.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #14  
Old 12-11-2012, 05:05 AM
routerunner's Avatar
routerunner routerunner is offline
Sage Icon
 
Join Date: May 2008
Location: Wiltshire, UK
Posts: 1,384
Quote:
Originally Posted by JREkiwi View Post
stuckless, thanks for the change, it certainly makes a huge difference to the size of the files.

The "Phoenix Fanart for SageTV" plugin also has an option to pre-scale the fanart, which like Gemstone should be run from the predominantly used UI as the scaling is based on UI width.

John
Well, the huge file size was the main reason why I begged you to implement the "Don't Scale" option, remember? So, I do hope that this change will maintain the current "Phoenix Fanart for SageTV" plugin's behaviour as is, correct?

Also, you never commented my proposal to copy the original fanart file from the repository to the cache "as-is" when "Don't Scale" option is selected for easy relocation to RamDisk...unless the new Phoenix Fanart property set to 1.0 and enabling the cache on your plugin will now produce the "as-is" copy? Please comment

thanks
Eddy
__________________

Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll


Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard

Last edited by routerunner; 12-11-2012 at 05:34 AM.
Reply With Quote
  #15  
Old 12-11-2012, 06:55 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by routerunner View Post
Well, the huge file size was the main reason why I begged you to implement the "Don't Scale" option, remember? So, I do hope that this change will maintain the current "Phoenix Fanart for SageTV" plugin's behaviour as is, correct?

Also, you never commented my proposal to copy the original fanart file from the repository to the cache "as-is" when "Don't Scale" option is selected for easy relocation to RamDisk...unless the new Phoenix Fanart property set to 1.0 and enabling the cache on your plugin will now produce the "as-is" copy? Please comment

thanks
Eddy
The "compression" setting of 1.0 has nothing to do with scaling. ie, In the fanart caching, the images will still be scaled, but if 1.0 is used they will not be compressed. (Chances are your current originals are already compressed as well). Any ways, I just wanted to comment on the compression setting, since it has nothing to do with scaling.
Reply With Quote
  #16  
Old 12-11-2012, 07:35 AM
routerunner's Avatar
routerunner routerunner is offline
Sage Icon
 
Join Date: May 2008
Location: Wiltshire, UK
Posts: 1,384
Quote:
Originally Posted by stuckless View Post
The "compression" setting of 1.0 has nothing to do with scaling. ie, In the fanart caching, the images will still be scaled, but if 1.0 is used they will not be compressed. (Chances are your current originals are already compressed as well). Any ways, I just wanted to comment on the compression setting, since it has nothing to do with scaling.
OK, I understand, many thanks.

A very minor thing, but if by "compression" you did mean JPEG quality, then I would personally prefer to use 0-100 instead which is the standard way JPEG images normally gets specified.

Eddy
__________________

Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll


Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard
Reply With Quote
  #17  
Old 12-11-2012, 09:19 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by routerunner View Post
OK, I understand, many thanks.

A very minor thing, but if by "compression" you did mean JPEG quality, then I would personally prefer to use 0-100 instead which is the standard way JPEG images normally gets specified.

Eddy
I opted to use the same datatype the java api uses... because, well, this isn't my day job, and so I tend to want to get through it as quickly as possible. Using a float mean I just pass the value as is.
Reply With Quote
  #18  
Old 12-11-2012, 11:12 AM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
Quote:
Originally Posted by routerunner View Post
Well, the huge file size was the main reason why I begged you to implement the "Don't Scale" option, remember? So, I do hope that this change will maintain the current "Phoenix Fanart for SageTV" plugin's behaviour as is, correct?
This doesn't change how the "Don't Scale" option works. It is still not scaling or caching.

Quote:
Originally Posted by routerunner View Post
Also, you never commented my proposal to copy the original fanart file from the repository to the cache "as-is" when "Don't Scale" option is selected for easy relocation to RamDisk...unless the new Phoenix Fanart property set to 1.0 and enabling the cache on your plugin will now produce the "as-is" copy? Please comment
If I recall, your issue with setting the scaling size to "Full" was that the file sizes were larger than the originals. With this API change with scaling set to Full and a compression setting of 1.0, it will result in a "copy" (not sure how "as-is" it will be) in the cache. It might get the results you are looking for.

John
Reply With Quote
  #19  
Old 12-11-2012, 01:58 PM
routerunner's Avatar
routerunner routerunner is offline
Sage Icon
 
Join Date: May 2008
Location: Wiltshire, UK
Posts: 1,384
Quote:
Originally Posted by JREkiwi View Post
If I recall, your issue with setting the scaling size to "Full" was that the file sizes were larger than the originals. With this API change with scaling set to Full and a compression setting of 1.0, it will result in a "copy" (not sure how "as-is" it will be) in the cache. It might get the results you are looking for.
Hi John,

thanks for you reply, it looks like it might work, basically from what you're saying the Phoenix API should look for the compression value and if 1.0 then it should provide the unmodified file to you ("as-is") and the "Full" option in your plugin should save the unmodified file into the cache and using it thereafter. It would make more sense with the "Don't scale" option, but that is the special case you are using to read directly from the repository...

A good binary file comparison should give a definitive answer

Eddy
__________________

Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll


Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard
Reply With Quote
  #20  
Old 12-11-2012, 03:04 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by routerunner View Post
Hi John,

thanks for you reply, it looks like it might work, basically from what you're saying the Phoenix API should look for the compression value and if 1.0 then it should provide the unmodified file to you ("as-is") and the "Full" option in your plugin should save the unmodified file into the cache and using it thereafter. It would make more sense with the "Don't scale" option, but that is the special case you are using to read directly from the repository...

A good binary file comparison should give a definitive answer

Eddy
I think the files will not be the same at a bit level. Since the headers may have changed. But the "image" might be the same.
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
Phoenix Build 406 stuckless Phoenix 12 09-22-2011 08:36 AM
Phoenix Build 404 stuckless Phoenix 19 08-27-2011 11:01 PM
Phoenix Build 401 stuckless Phoenix 29 07-11-2011 06:15 AM
Phoenix Build 312 stuckless Phoenix 16 05-10-2011 10:32 AM


All times are GMT -6. The time now is 07:43 PM.


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