SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 04-17-2009, 10:30 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by ace007 View Post
I want to ru nthe latest pre-release of SageMC (http://forums.sagetv.com/forums/show...237#post353237) which says it requires the latest build of Phoenix API which I downloaded. I see I have some references to Phoenix already in my Sage directory structure but I want to check with those of you more knowledable than me where I should put all of these new Phoenix API files.

Thanks
Place the new Pheonix api's in C:\Program Files\SageTV\SageTV\JARs overwriting the existing ones when prompted to do so.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #62  
Old 04-17-2009, 10:45 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Just unzip the file into your SageTV directory. The main thing is that the new jar files end up in the JARs directory. You might need to exit sage first in order to overwrite any existing files. Either way, sage has to be restarted after the install to pickup the new files.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #63  
Old 04-29-2009, 02:14 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Guys sorry If I am beating a dead horse but where are we at on the caching issue of fanart not refreshing changes until sage is shut down and restarted?
Reply With Quote
  #64  
Old 04-29-2009, 08:59 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by PLUCKYHD View Post
Guys sorry If I am beating a dead horse but where are we at on the caching issue of fanart not refreshing changes until sage is shut down and restarted?
Unfortunately nowhere. It's not a huge priority, and I have a bunch of other things on my plate at the moment. Sorry.
Reply With Quote
  #65  
Old 04-30-2009, 06:05 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by stuckless View Post
Unfortunately nowhere. It's not a huge priority, and I have a bunch of other things on my plate at the moment. Sorry.
No need to apologize I appreciate all your work. Just wanted to ask I have tried about everything I can to clear the cache to no avail so I figured I would ask.
Reply With Quote
  #66  
Old 04-30-2009, 06:51 AM
cslatt's Avatar
cslatt cslatt is offline
Sage Advanced User
 
Join Date: Nov 2005
Posts: 239
THANKS THANKS THANKS

Not sure the best place to post this so everyone responsible will see it, but I'm thinking probably here:

THANK YOU, THANK YOU, THANK YOU!

Just got all of this fan art stuff up and running yesterday and it looks great! Got BMT auto-downloading the metadata and fan art, SageMC and AMIS displaying it, and the Phoenix API in the background making it all possible.

Thank you to everyone involved for all of your hard work - programming, beta testing, writing documentation - this stuff looks fantastic!
Reply With Quote
  #67  
Old 04-30-2009, 04:44 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Excuse the newb question but is there a difference in

phoenix_api_GetMetadataDescription(String key)

and

GetShowDescription

I am currently using getshowdescription but notice I have to do a imdb search after a fanart search to get any description should I be using the phoenix call?
Reply With Quote
  #68  
Old 04-30-2009, 06:43 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by PLUCKYHD View Post
Excuse the newb question but is there a difference in

phoenix_api_GetMetadataDescription(String key)

and

GetShowDescription

I am currently using getshowdescription but notice I have to do a imdb search after a fanart search to get any description should I be using the phoenix call?
GetMetadataDescription(key) returns a configured description for a given metadata key, and has nothing to do with metadata of a mediafile.

ie, GetMetadataDescription("UserRating") may return something like, "User Rating is the average user rating for a movie out of 10", provided that a metadata label file has been created.
Reply With Quote
  #69  
Old 04-30-2009, 07:15 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by stuckless View Post
GetMetadataDescription(key) returns a configured description for a given metadata key, and has nothing to do with metadata of a mediafile.

ie, GetMetadataDescription("UserRating") may return something like, "User Rating is the average user rating for a movie out of 10", provided that a metadata label file has been created.
Okay that makes sense where does one find the list of keys available?
Reply With Quote
  #70  
Old 04-30-2009, 07:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
The list of keys are the known sage keys, which are documented in a sticky in the customizations forum and the custom_metadata_fields. (i'll let you search for those )

Or, you can edit .properties file for a media item, and it will be the keys listed in there. Don't use the "x-Key" ones, since they are "extended" keys and are not supported by sage, but rather used by other applications like bmt.
Reply With Quote
  #71  
Old 05-02-2009, 08:37 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
I am still having some issues trying out the new scaling feature

I am not understanding the difference in getscale and and createscaled

In codeing it seems like you would want to call getscale but I notice Maui calls createscaled in the layoutstarted hook.

My app was working good but these scaling calls haved started to kill it on the extenders on the pc it runs fine.
Reply With Quote
  #72  
Old 05-02-2009, 09:28 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I assume you mean the difference between the native SageTV GetScaledImage and the Phoenix CreateScaledImage.

CreateScaledImage will scale an image and then cache it on the filesystem. Repeat calls to CreateScaledImage will simply return the cached version of that image. So you would use it when your source source image is potentially very large, and you want to create a scaled copy of the that image that will consume less physical memory. The first time you make a call to CreateScaledImage, you will take a performance hit, since it will have to load the original image, and then created a scaled version and save it on the fly.

A standard image scaling function would take a source image and scale it every time. GetScaledImage attempts to only scale an image once.

It might be best, if CreateScaledImage is causing you problems, to just drop its use for now. That part of the api is still under construction.
Reply With Quote
  #73  
Old 05-02-2009, 10:41 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
No I don't think it is casuing me problems now that I increased my java heap (only needed for extender)

Will the createscaled image work with any image or only a phoenix call after it?

I am trying to figure a way to cache my reflected images
Reply With Quote
  #74  
Old 05-02-2009, 11:13 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
CreateScaledImage will work for any image filename. ie, if you passin "images/YouImage.png", then it will create a scaled imae for that filename.

FYI.... Although CreateScaledImage will also work with a Sage MetaImage object (ie, image created from LoadImage), i don't recommend calling CreateScaledImage with a Sage image, since it cannot create a cached image for it, and as a result, it will perform the scaling every time.
Reply With Quote
  #75  
Old 05-02-2009, 01:13 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
THANK YOU!!! THANK YOU!!!


This scaling is absolutely fabalous now that I finally figured it out. Being able scale the images to different sizes for different screens/views is awesome and totally great!!!!

Can't thank you enough.
Reply With Quote
  #76  
Old 05-04-2009, 12:16 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Stuckless I see the new reflection API calls Is there a way to cache these reflections with your api versus having to rotate and reflect them every time?

http://forums.sagetv.com/forums/show...797#post356797
Reply With Quote
  #77  
Old 05-04-2009, 12:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
All of the phoenix_api_CreateXXXXX image functions will apply the transformation and cache to the filesystem. For caching to work, the input must be a filename. They will work if you pass in a buffered image or a sage metaimage, but they will not cache. Does that answer your question?
Reply With Quote
  #78  
Old 05-04-2009, 12:29 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by stuckless View Post
All of the phoenix_api_CreateXXXXX image functions will apply the transformation and cache to the filesystem. For caching to work, the input must be a filename. They will work if you pass in a buffered image or a sage metaimage, but they will not cache. Does that answer your question?
Kind of So it will not cache the image already transformed you must perform the transformation everytime even if you set the transformation to an attribute and then pass that attribute to the creatscaledimage ?
Reply With Quote
  #79  
Old 05-04-2009, 01:36 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by PLUCKYHD View Post
Kind of So it will not cache the image already transformed you must perform the transformation everytime even if you set the transformation to an attribute and then pass that attribute to the creatscaledimage ?
Okay I am not getting this calls to work do I need to create a buffered image before transforming

phoenix_api_CreateReflection(image)

am I missing something?
Reply With Quote
  #80  
Old 05-04-2009, 01:53 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
the Create apis take a filepath as the first parameter... ie phoenix_api_CreateReflection("images/myimage.png") and the output is a sage metaimage which is consumed by the sage Image node in the stv.
The sage Image component will use an image loaded in the previous call to the image node, if you leave the image name blank for the image control. (See the tutorials if that doesn't make sense )

---- Action: phoenix_api_CreateReflection("myimage.png")
------- Image: (no properties set)
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 card reader gravis12 Hardware Support 0 03-30-2008 01:38 PM
Missing API? GKusnick SageTV Studio 0 01-16-2007 08:48 PM
API Changes in 5.0 ? dflachbart SageTV Studio 11 05-09-2006 03:21 PM


All times are GMT -6. The time now is 02:23 AM.


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