2013-05-03, 10:20
Hi all,
I have all my media loaded onto my desktop machine. The paths to the media configured in XBMC are currently filesystem paths
Eg. /var/local/media -> nfs://server/srv/nfs4/media
The notebook I had connected to my TV launched XBMC with a wrapper script that mounted an NFS share from the server to the same path on the notebook as the workstation. The metadata is provided by a MySQL database on the desktop/server specified in advancedsettings.xml.
Now, as I no longer have the notebook that was connected to the TV and there is an Android version of XBMC and I have an Android device with HDMI out, my understanding is that to use NFS on Android, one needs to configure the sources as NFS sources with NFS:// URLs.
This seems all well and good (I export all the metadata for my media to separate files to allow for easy importing should I need to rebuild the DB), but... it seems a little inefficient (and potentially problematic) to have the machine on which the media resides access itself via NFS. Is there a way to share the same media database, but have the Android client access it via NFS and the Linux desktop/server on which the media resides access it direct via the filesystem?
I'm thinking that if I configure the media sources to use NFS URLs and then on the desktop/server machine, to advanced settings I use path substitution as documented here:
http://wiki.xbmc.org/index.php?title=Path_substitution
Eg.
Or would I need to explicitly match the specific source paths (is XBMC smart enough to see that the sources are subfolders of the specified substitution)?
... or am I thinking the wrong way about this?
I have all my media loaded onto my desktop machine. The paths to the media configured in XBMC are currently filesystem paths
- /var/local/media/video/TV Shows
- /var/local/media/video/Movies
- /var/local/media/audio/
Eg. /var/local/media -> nfs://server/srv/nfs4/media
The notebook I had connected to my TV launched XBMC with a wrapper script that mounted an NFS share from the server to the same path on the notebook as the workstation. The metadata is provided by a MySQL database on the desktop/server specified in advancedsettings.xml.
Now, as I no longer have the notebook that was connected to the TV and there is an Android version of XBMC and I have an Android device with HDMI out, my understanding is that to use NFS on Android, one needs to configure the sources as NFS sources with NFS:// URLs.
This seems all well and good (I export all the metadata for my media to separate files to allow for easy importing should I need to rebuild the DB), but... it seems a little inefficient (and potentially problematic) to have the machine on which the media resides access itself via NFS. Is there a way to share the same media database, but have the Android client access it via NFS and the Linux desktop/server on which the media resides access it direct via the filesystem?
I'm thinking that if I configure the media sources to use NFS URLs and then on the desktop/server machine, to advanced settings I use path substitution as documented here:
http://wiki.xbmc.org/index.php?title=Path_substitution
Eg.
Code:
<advancedsettings>
<pathsubstitution>
<substitute>
<from>nfs://192.168.x.y/srv/nfs4/media/</from>
<to>/var/local/media/</to>
</substitute>
</pathsubstitution>
</advancedsettings>
... or am I thinking the wrong way about this?