Difference between revisions of "Use my own pictures in the Screen Saver"

From LinuxMCE
Jump to: navigation, search
(Associate the attribute)
Line 43: Line 43:
  
 
Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.
 
Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.
 +
 +
You will need to get to the command prompt of your CORE machine and from the command prompt (your default user should be fine) run:
  
 
mysql -u root -D pluto_media -N -e "INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)"
 
mysql -u root -D pluto_media -N -e "INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)"
 +
 +
Do a quick reload router and then the attribute should show up in the dropdown box under add attributes
  
 
=== Setting an attribute from the command line ===
 
=== Setting an attribute from the command line ===

Revision as of 12:41, 4 October 2007

The photo screen saver does a great job and ensures that media is displayed all the time, even if you just happen to be listening to music. By default, the photos come from flickr and are downloaded regularly to your local drives.

But it would be nice to use your own photos in this screen saver, perhaps alongside the flickr ones or perhaps as a replacement.

This is a guide to do just that...


Background

All media on your linuxMCE system is catalogued and stored in a database. The database allows for attributes to be stored for each media file. One such attribute is "Screen Saver For MD". By setting this attribute this picture will be used as one of the pictures for the Media Director Screen Saver. Photos are selected by random from all the photos that exist with the "Screen Saver For MD" attribute set.

There are a number of ways to set this attribute for individual files. They are;

  • Setting an attribute from the web admin screens
  • Setting an attribute from the command line
  • Assigning a picture to the screen saver from the Orbiter


Setting an attribute from the web admin screens

There is a section on the web admin screens that allow the setting of attributes for media. It is available under Files & Media -> Media Files Sync

The left hand window frame gives a tree view into the directory structure of home/public/data. Typically photos will be stored under the pictures sub-directory. The right hand window frame gives a view of the files found and their status with relation to linuxMCE's database.

Firstly determine the pictures you wish to use, and locate them using the directory browser. Then ensure that the files are ticked to indicate existing in both the database and on disk. If not then choose the type as 'LinuxMCE Pictures' and press the 'Add to database' button.

Once they are added to the database you should be able to select them and see the details (metadata) associated with them.

Part of the details include any currently set attributes for the file, which you can choose to Edit or Remove. There is also a section to Add Attributes. Only attribute that have been associated with the particular file types can be selected from the drop down box. Note: If you do not see 'Screen Saver For MD' in this box then you will need to Associate the attribute.

Select the attribute 'Screen Saver For MD' and enter or select the Attribute name value of '*'. Then press the Add button next to the box and your done.

A quick reload router should be enough to ensure that files are refreshed from the database and you should start to see your selected picture as one of the screen saver files.

Associate the attribute

Unfortunately by default this attribute has not been associated with the picture media type. Perhaps a bug, who knows. Anyway, to associate it you will need to run the following piece of SQL to put the required association into the database.

You will need to get to the command prompt of your CORE machine and from the command prompt (your default user should be fine) run:

mysql -u root -D pluto_media -N -e "INSERT into MediaType_AttributeType(EK_MediaType, FK_AttributeType, Identifier, CombineAsOne) values(7,30,0,1)"

Do a quick reload router and then the attribute should show up in the dropdown box under add attributes

Setting an attribute from the command line

Assigning a picture to the screen saver from the Orbiter