HOW-TO synchronize your XBMC Media Center between every room in the house: Lifehacker - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: HOW-TO synchronize your XBMC Media Center between every room in the house: Lifehacker (/showthread.php?tid=80829)
- sbentin - 2011-06-26 20:49
This is the same exact thing I've been experiencing. After hours of testing and checking I discovered that the problem is the '\' character which is the windows File separator. For some reason MySql is not handling it very well and is not able to locate fields that have this field. Here is what I did that solved it for me:
All my media is on a shared disk. I removed the drive mapping I had to that share so it won't exist. Instead I replaced in my exported xml of the library (step 1) all my path which was 'M:\' to 'smb://[server_name_or_ip]/. I dropped the tables (xbmc_video and xbmc_music) and recreated them. Restarted xbmc, which populated these databases again and then imported the file. From that point and on everything works fine.
Be aware though that since you change the path to the files the fanart and thumbs don't match anymore. You will have to localize the thumbnail dir in one machine and you have to refresh your library (sometimes file by file) to get the images back. Afterwhich you can move the new thumbs dir to your share and recreate the links.
- Jete246 - 2011-06-26 21:14
Thank you so much, that indeed solved the problem!!! But I don't get it, how does that even make sense?!? I had tried adding a NFS share in the conventional Windows manner, i.e: \\192.168.1.5\test....but that didn't work, so I figured I'd start at the basic bottom with regular (non-shared) folders, thinking that would be the safest way to rule out any sharing/permissions issues.
Just to clarify, instead of adding a shared Windows folder as \\192.168.1.5\test, you need to add it as followed:
Adding a regular Windows folder as c:\test doesn't seem to work. Why in hell you need to use the Samba sharing format is beyond me, but oh well...atleast I got it working now.
One thing though: The library now populates nicely to my other PC's, but the source folders do not. Is this normal behaviour? Do they need to be added manually, and won't that screw things up again as it'll rescrape the contents?
- sbentin - 2011-06-26 21:19
You don't need the source folders the library is enough. The only thing is that you need to make sure you update when you put something new. And if you add a new share you only need to add it on one machine (as long as it is with '/' and not '\') onee it's populated to the db it will show up on all other machines.
- Jete246 - 2011-06-26 22:28
Yeah, that makes sense.
Pretty sweet, I've got the mysql backend up and running and am syncing my thumbnails using symlinks. I didn't even know Windows supports symlinks now!
Again, thank you for saving me of further headaches!
- mrdally204 - 2011-06-27 00:56
Can anyone voice an opinion on the lag I am seeing in my implementation? See post 176 (:
EDIT: It appears to be the thumbnails sharing that is causing the slowdown, and a terrible one at that. My set up again:
XBMC main player/media and thumb server (hooked to my main TV)
Zotac ion build with 500gb laptop drive, Win 7
Videos are on external 1TB drive, loads quickly.
Thumbnails are in the default location for XBMC and set to share (appdata/roaming/...)
Windows 7, libraries are being fed to it via MySQL set up in this thread.
Thumbnails are symlinked to main XBMC player. ( I disabled symlink and went back to original thumbs and the speed was as fast as before MySQL was set up, so it is not MySQL causing the slow downs)
Anything you can think of that I can try to get these to load up faster. As I said its nearly 20 seconds before I can actually select a movie to play
- Jete246 - 2011-06-27 09:22
mrdally204 Wrote:Can anyone voice an opinion on the lag I am seeing in my implementation? See post 176 (:Could it be a name resolving issue? Have you set the symlink based on netbiosname or the host's ipaddress?
If you have already set the symlink based on ipaddress, perhaps, just for giggles, you could try using the hostname instead and see what happens. You could also try to set the primary dns to the ipaddress of the host which is hosting the thumbnails and see what that does.
- mrdally204 - 2011-06-28 09:20
I have tried all the suggestions you presented without any improvement. At first it was symlinked via ip address, I then switched to netbios name, saw no improvement. I then followed up with the primary DNS set to the ip of the server, again with nothing to show for it. I appreciate the suggestions and would love to hear a few more if you have some thoughts?
- hitman - 2011-06-28 10:27
I also experience this type of delay, but this is on an Ubuntu Linux (XBMC Live) install with a nfs mount point for the shared thumbnails.
Seems like this is related to the number of files in the thumbnails folder and the impact on performance this has on the underlying mount point.
- Jete246 - 2011-06-28 10:31
mrdally204 Wrote:I have tried all the suggestions you presented without any improvement. At first it was symlinked via ip address, I then switched to netbios name, saw no improvement. I then followed up with the primary DNS set to the ip of the server, again with nothing to show for it. I appreciate the suggestions and would love to hear a few more if you have some thoughts?
What happens if you follow the next scenario?
1. You start XBMC on the remote client and you experience the delay as you described.
2. You close XBMC
3. You start XBMC again.
Do you experience the same delay again?
When you disabled the symlink for your thumbs, did you manually copy over the thumbs to the remote client, or did you use the empty thumbs directory of the remote client? Otherwise I'd suggest copying over the thumbs from your main server and putting them on the local client and test again. Then we might be able to narrow it down a bit more.
Furthermore, what is the size and amount of files of the thumb directory?
Another thing you could try is using a fresh Windows profile on the remote client.
- mrdally204 - 2011-06-28 20:16
Scenario listed above, the speed stays the same after restarting xbmc.
When I disabled symlink, I simply renamed it to thumbs, and re-renamed my Thumbnails-old back. I had most/all my media scanned on both machines before I read about the server set up, so changing back the name used local dir instead of the symlink.
As far as the size of the Thumbnails folder
Seems like a large directory, but I really do not know what to compare the size to. How large should it be? I got ~200 movies, and more tv shows (: