Skip to content

Using repositories as media libraries

mmcc edited this page Jan 9, 2012 · 2 revisions

If you're trying to use SparkleShare to store media files, you might want to use those stored media files with a package like Subsonic to stream them to clients that don't need a copy of the entire share.

To do this, you could certainly create an instance of the share on the server, but if the data is already on the server in the repository, it would be nice to not have to duplicate all that information.

The answer I found is git-fs, which allows you to mount a git repository as a read-only filesystem.

https://github.com/g2p/git-fs

I'm running it on a debian unstable system, and it seems to be working just fine to serve up MP3s via Subsonic (http://www.subsonic.org/pages/index.jsp). Check out the closed issues in case you run into an error when you attempt to mount.