Share thumbnails from smb share

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
wingzfan Offline
Junior Member
Posts: 15
Joined: Jan 2011
Reputation: 0
Post: #1
Ive got my xbmc's throughout the house synced and now Im looking to share one thumbnail folder that I want to host on the smb share. Can I just copy the thumbnail folder from one of the xbmc machines, place it on my smb server, share the folder and add the path exception pointing to the thumbnail folder share to advancedsettings.xml?

Will this then create a thumbnail fo reach item upon scraping and share it across my xbmc systems?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #2
Yes. Note that I do not recommend this as it will slow things down significantly. But there isn't really an elegant alternative as yet.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
DJVege Offline
Donor
Posts: 231
Joined: Jan 2009
Reputation: 2
Post: #3
I second this. I setup thumbnail sharing (and other userdata stuff) off my NAS just for kicks and it slows things down a hell-uv-a-lot.

...DJVege...
HTPC: G840 + GT430 + 2GB RAM + 30GB SSD
Remote: iPad/iPhone + iRule + USB-UIRT // FireFly RF Remote
Software: XBMC Eden + Eventghost + Win7
find quote
wingzfan Offline
Junior Member
Posts: 15
Joined: Jan 2011
Reputation: 0
Post: #4
Even over a gig network all hardwired?
Ok so i there another way to keep thumbnails updated on all machines by keeping them local?
(This post was last modified: 2012-04-03 00:38 by wingzfan.)
find quote
prae5 Offline
Team-XBMC Forum Moderator
Posts: 2,063
Joined: Jan 2009
Reputation: 34
Location: Cambridge, UK
Post: #5
I have mine over smb, its certainly not as quick as hosting them locally - but its not unacceptable.

Currently no easy / simple way of keeping cache's in sync on multiple machines. Shared thumbs folder is the best option currently available.
find quote
DJVege Offline
Donor
Posts: 231
Joined: Jan 2009
Reputation: 2
Post: #6
Yep, even over a gig network. It has to pull all your thumbnails (and fanart) from the network everytime. Much slower than from local disk. It isn't slow as in * takes 10 seconds to load each image *.... It is just nowhere near as snappy as from local disk. Very noticeable.

See here for how Thumbnail cache works: http://wiki.xbmc.org/index.php?title=ThumbnailCache

You can copy your current MAIN xbmc thumbnail cache to your other devices. Each xbmc device will keep its own local copy of the thumbnail cache (these will not be in sync, but it shouldn't matter as they will each update as required).

jmarshall or someone please correct me if I'm wrong.

...DJVege...
HTPC: G840 + GT430 + 2GB RAM + 30GB SSD
Remote: iPad/iPhone + iRule + USB-UIRT // FireFly RF Remote
Software: XBMC Eden + Eventghost + Win7
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #7
That page isn't completely accurate. In Eden, Music and Video thumbs do _not_ hit the texture cache (Textures*.db) at all.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
wingzfan Offline
Junior Member
Posts: 15
Joined: Jan 2011
Reputation: 0
Post: #8
Ok last question. If i leave the thumbnails on each pc when i update the library shared by the server on one pc wont i get a conflict when i update the others?
find quote
wingzfan Offline
Junior Member
Posts: 15
Joined: Jan 2011
Reputation: 0
Post: #9
Alright I went ahead and tested it both ways and where I notice a slight delay is opening the movie category it takes about 3 seconds to load my titles (Only about 700) so I can see where a larger library may become more delayed.

When running the shared library and keeping thumbs on the local machines I had a problem getting the artwork on more than one xbmc machine. If I updated machine a's library it got the artwork but machine b and c didnt and I couldnt just update their libraries to recover it. Only thing I could figure was to remove the title and readd it but that defeated the purpose of sharing a databases.

What I really wanted to achieve was multiple xbmc clients pulling videos from a windows server that when I update one they all update and keep the same movie set structures etc. Change one library and they all sync exactly the same. This way Im not doing triple the work to get them all the same.

For me the 3 second delay is totally worth not having to manage more than 1 library. Hopefully theres a better way in the future but if not I'll deal with the delay. If anyone has a way to sync the thumbs easily locally on each machine (like a "get missing thumbs" script) let me know please.
find quote
mason Offline
Senior Member
Posts: 296
Joined: Sep 2008
Reputation: 0
Location: Germany
Post: #10
I use a similar setup, sharing a massive library (3000 movies, 10.000 tv eps) over a NFS share on my linux server, the slowdown is defiantly noticeable but still acceptable.

An idea that spins my mind, is to sync the thumbnailcache to each client via rsync on startup, this way you would only sync diffs which should be finished in a second. just some bash script which you run on startup and shutdown. You might still have some gap with clients that you swich off and on inbetween updates but this depends on your setup.

will give it a shot next time I find some time. (excludes non linux clients of course)
(This post was last modified: 2012-04-03 18:29 by mason.)
find quote
wingzfan Offline
Junior Member
Posts: 15
Joined: Jan 2011
Reputation: 0
Post: #11
I think I have a solution to the speed and synching for my windows systems.

Theres a software called allway sync that I use to create backups of my hdd's and in there I could set all my xbmc machines set to sync the thiumbnail folders on each local machine upon changes. This essentially should keep them in line instantly when I add or update the library. Its a long shot but Im gonna set it up and find out.

Edit: works perfect. Not sure how much of a strain this will put on my server since its constantly monitoring the tumbnail folder but I guess Ill monitor it over time and see if its impacting it too much.
(This post was last modified: 2012-04-03 21:04 by wingzfan.)
find quote
DecK Offline
Senior Member
Posts: 135
Joined: Nov 2008
Reputation: 4
Location: Round Rock, TX
Post: #12
Hi all
I am trying to find a solution for this issue by utilizing an addon to sync the data. Here's the thread. It's not even close to working yet, but its a start. Any input would be appreciated.


Cheers
Declan
find quote
zosky Offline
Donor
Posts: 304
Joined: Dec 2008
Reputation: 1
Location: toronto. canada
Post: #13
(2012-04-03 18:29)mason Wrote:  I use a similar setup, sharing a massive library (3000 movies, 10.000 tv eps) over a NFS share on my linux server, the slowdown is defiantly noticeable but still acceptable.

An idea that spins my mind, is to sync the thumbnailcache to each client via rsync on startup, this way you would only sync diffs which should be finished in a second. just some bash script which you run on startup and shutdown. You might still have some gap with clients that you swich off and on inbetween updates but this depends on your setup.

will give it a shot next time I find some time. (excludes non linux clients of course)

my setup is almost identical... our home-server has the mySQL video/music db & a copy of the cache. first i collect all the new thumb onto the server ( rsync xbmc to homeNAS ) then propagate it back out to all the nodes ( homeNAS > xbmc )... all the nodes are ubuntu/xbmc-live/mint. there's rSync for iOS too, but i'll accept slowness pf substitution on my phone, rather then put 5gb of thumbs. rSync also works with smb shares. i don't (need to) know how Tongue

Code:
# livingRoom to homeNAS
rsync -avr  xbmc@xbmc1:/home/xbmc/.xbmc/userdata/Thumbnails ~/xbmc.DBs/
rsync -avr  xbmc@xbmc2:/home/xbmc/.xbmc/userdata/Thumbnails ~/xbmc.DBs/
# ...
# homeNAS to livingROOM
rsync -avr  ~/xbmc.DBs/Thumbnails xbmc@xbmc1:/home/xbmc/.xbmc/userdata/
rsync -avr  ~/xbmc.DBs/Thumbnails xbmc@xbmc2:/home/xbmc/.xbmc/userdata/
# ...

eight xbmc devices mostly openElec
atom/ion | iphone4 | hpTouchPad | raspberryPI ...
central mySQL db ( +20TB NAS ) +maraschino +IRtoy.v2 +yatse
[Image: widget]
(This post was last modified: 2012-04-15 01:23 by zosky.)
find quote
Mordred Offline
Junior Member
Posts: 34
Joined: May 2011
Reputation: 0
Post: #14
I just had a (hopefully) brilliant idea for this... but it will be dependent on the different sources you want to use, and probably isn't any good if you're trying to do this with a machine which isn't some flavor of PC. What about setting up your Thumbnail folder in a dropbox folder? Thumbnails would then autosync between machines, and act as if they were local at all times.
find quote
DJVege Offline
Donor
Posts: 231
Joined: Jan 2009
Reputation: 2
Post: #15
The issue with a dropbox approach is, as you already stated, it is limited to PCs, and maybe MACs ( I haven't used dropbox on a Mac). I'm not sure you can use Dropbox to sync to a particular path on, for example, an iPad or other device that isn't PC based.

What could have merit is the shared library (shared everything) + rsync approach. Every xbmc frontend points to a shared library, including thumbnails etc... On startup, xbmc (via addon), mirrors the thumbnails primary share, and perhaps even sources etc... To the frontend device. Only modified files are copied.

One small issue is that the first sync, or sync of a new large library, would take a long time. Though you could get around this by running the sync in the background, blocking access to library mode, but allowing access through File mode. Users would still have access to watch movies while the sync completes.

Just a thought (probably already mostly illustrated above)...

...DJVege...
HTPC: G840 + GT430 + 2GB RAM + 30GB SSD
Remote: iPad/iPhone + iRule + USB-UIRT // FireFly RF Remote
Software: XBMC Eden + Eventghost + Win7
find quote
Post Reply