|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#141
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#142
|
|||
|
|||
ahhhh... i see now... yes i only get that error once per image.... now im stumped though... before i upgraded the phoenix api (from 1.7.something to 2.3.something (today)) tve on my client here was reasonably fast with fanart and all... after upgrading its slow... i cant browse up the list fast like i could before... so i must be doing something not quite right because if i disable displaying the banner (short circuiting all that code) things go super fast again... needless to say I'm gonna have to dig into it more to figure out exactly whats happening...
Skirge - to make tve usable again until i can figure what's going on... disable the banner display... TVE Options -> Browser -> Group Style -> choose one of the "No Banner" options... after i did this (leaving all the "fanart" options enabled) TVE sped up for me again.
__________________
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 |
#143
|
||||
|
||||
Thanks for the correction. I again fixed the brackets, after deleting the folders you mentioned. Then, I scrolled through for a good 5 minutes, up and down. It started out around 6 seconds per page up/down, then dropped down to 4 seconds, which is where it was before. I did the math and it could potentially need to create up to 610 banners (61 shows times 10 max banners for BMT to download). It's currently at 545, but it's slow even when no banners are being created (I'm watching the folder).
One other thing I noticed is that the background posters only appear when scrolling UP. When scrolling down, they never appear. If I arrow down, they do, though. Also, if I do just a single arrow down, followed by all page downs, they show up. Probably unrelated, but thought I'd mention it. EDIT: Looks like I was sitting on this post for far too long. I see the new info now. Glad to know it's not my setup, at least. EDIT #2: Thanks again guys!
__________________
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; 01-05-2011 at 09:14 PM. |
#144
|
|||
|
|||
Quote:
Quote:
__________________
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 |
#145
|
||||
|
||||
Disabling the banners, as you suggested, absolutely puts it at ludicrous speed. I can deal without banners... for now.
__________________
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 |
#146
|
||||
|
||||
Was just playing around with my test/dev setup with my malore tweaks(which doens't use any caching yet), and noticed it was VERY slow when the fanart folder was remote (just using the fanart from my production server). As soon as I pointed my fanart folder to a local C: drive copy, it was speedy again. I'm not sure why it would somehow be so much slower over the network than before, but something is slowing down the image grabbing over the network...
Of course, that shouldn't matter with your cached files.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#147
|
|||
|
|||
all my fanart is on a unc path (and always has been)... perhaps that is the problem though... even with caching... maybe something weird is going on with just the banner code in phoenix... or because i am displaying several banners at the same time (granted all are cached though) that is making something slow... I'll move my fanart to a local resource and see what happens... My gut though is that it is something in the phoenix core... because before i upgraded the phoenix api last evening things were running fine on my dev setup. I use my dev setup for occasional TV watching in the bedroom so would have definitely noticed if it was taking forever to scroll around tve. I was running phoenix 1.7.something before upgrading to 2.3.something yesterday.
__________________
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 |
#148
|
||||
|
||||
The last time I recall it being fast for me was in SageTV V6, which I was still running up until V7's beta 18, I believe. According to Opus' post about beta 18, that was on September 30th. So, if the issue is in Phoenix, then it was probably somewhere around that time that something changed. I figured I'd point that out, just in case it helps to track changes down.
__________________
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 |
#149
|
|||
|
|||
just did some digging to determine which phoenix build i was running... it was phoenix 1.73.1 or 1.73.0 from April 2010 (yes i know suuuuuper ancient )
__________________
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 |
#150
|
||||
|
||||
Quote:
This is further compounded by the fact that if you do this for tv shows, then it will first do all work for the current season, and then if nothing is found, it will do it again, for the series. Quote:
Some versions of phoenix toyed with the idea of using memory caching for the images, but I was finding that it was causing way too much memory overhead, and there was no way (easily) to update the cache without restart sagetv. ie, if you added a new poster it would not be seen until the next sagetv restart. Sure, it could have been fixed in code and still cached, but given that I currently manage over 50,000+ lines of code... its simply too much for one developer, so caching was removed instead of being fixed
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#151
|
||||
|
||||
So, part of the problem with these being slow might be the HasFanartBanner call. The problem being, that even if a image is cached locally, it still has to reference the UNC path to get the directory listing. I'm not sure how much overhead this is adding, but it's gotta be something. I've found that SyncToy to put the fanart folder on each client speeds things up nicely.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#152
|
||||
|
||||
Quote:
Maybe I'll spend some time on the weekend trying to put in a better caching model for the fanart calls.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#153
|
||||
|
||||
Well, I'm now thinking there may be a better way to cache these types of displays (my malore, and TVE). If the local cached file is ID'd for the show title, instead of the original file path, it could save on having to do the network lookup (after the first grab, of course). So, instead of a HasFanart to determine if an image is to be shown, it runs a GetImage(ShowTitle, "Banners"). This would be a local call to the cache folder. Then, if it fails (returns a null), that's when the createimage from the getfanart is called. If that also fails, you're then at using a text object. It would end up being the same (slower) speed from the failed createimage(getfanart) on missing banners as the current hasfanart call, but populated cached images would be MUCH faster. without needing to worry about maintaining some sort of localized list of fanart availability.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#154
|
|||
|
|||
ahhhh... a little light bulb just went off in my head ... when stuckless started posting about caching and there not being a local cache i was confused because i was thinking about the image cache that is created... then fuzzy cleared me all up with "maintaining some sort of localized list of fanart availability" so then it dawned on me that the caching stuckless was referring to was that list of what (if any) fanart is available....
Does a "default" poster or banner get set automatically? or is that something the user needs to do interactively? Would using the series poster or banner be faster from an io perspective or not? I still find it curious that it used to work with UNC paths.... that's the interesting part to me... Sean, I just want to say thank you. I know you do way too much the way it is and your contributions to this community are huge, so just want to say thank you for helping to understand this problem and to try to come up with a solution
__________________
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 |
#155
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#156
|
||||
|
||||
So i did some tweaking this morning with implementing some form of banner caching in my malore tweaks. It seems to be working well (well, after first time a banner is displayed). Attached is what I've got going right now.
I fought for a while with this, and I think i found a bug Sean (or at least, I need to verify an intended use). CreateImage was failing if there was no transform (as I don't really want one in my implementation). I tried every iteration of "", null, or even "{}".. all three of which caused the reflection to fail. Is there a transform that will pass through the source untouched? All I'm really looking to do is copy the original file over, unmodified, but was unable to get that going (hence the tiny rounding done in this example code).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#157
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
Code:
{name:scale, width: -1, height: -1} {name:opacity, opacity: 1} {name:rounded, arcSize:0}
__________________
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 |
#158
|
||||
|
||||
There is nothing that you need to do use the default poster. When you call get poster it will first check if there is a default and if not it will go ahead and fetch a random one from the directory.
To set a default poster from the stv calll SetDefaultPoster with a filename path. Calling get image without a transform is kind of abusing the api for caching I'll see if I support a null transform.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#159
|
||||
|
||||
Quote:
As for the non-bannered items, yes, it does have to go through a failed call each time a banner is NOT available. I'm still working out the best approach to get around that limitation. either one would have to store a map of non-bannered items, or create transparent dummy images for those shows. Again, haven't gotten to that one yet. Honestly, i haven't noticed a significant slowdown, though I've only got about 15-20% of my shows missing fanart.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#160
|
|||||
|
|||||
Quote:
Quote:
Quote:
Quote:
Quote:
RE: Caching (or getting around file system access slowdowns): thinking out loud here... what about storing a list of fanart in the metadata for an item (similar to the defaultfanart but just a complete list)? Then calls to GetFanart would read that list or create it if it doesn't exist. I guess the problem then is how/when do you update that cache? That could be done with a scan in bmt.
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
STV Import: Comskip Playback for Default STV (v1.5.4 30/August/2008 for SageTV 5/6) | JREkiwi | SageTV Customizations | 600 | 11-23-2011 07:58 AM |
STV Import: TVExplorer for SageMC | razrsharpe | SageMC Custom Interface | 704 | 01-23-2011 01:36 PM |
STV Import: Auto Compress for version 6 Default STV (V1.4.5 1/October/2008) | JREkiwi | SageTV Customizations | 325 | 10-15-2010 03:06 PM |
STV Import: TVExplorer for the Default STV | tmiranda | Customization Announcements | 0 | 02-15-2010 06:14 AM |
STV Import: Fan Art for Default STV by TiKi (v2.2 Feb 22, 2009) | Tiki | SageTV Customizations | 102 | 01-05-2010 05:16 PM |