Skip to main content

A read-only FUSE filesystem that splits FLAC+CUE files into individual FLAC files per track

Project description

trackfs

The trackfs python package provides a read-only FUSE filesystem that splits FLAC+CUE files (FLAC files with cue sheet embedded as vorbis comment) into individual FLAC files per track.

The recommended way to use trackfs is with docker and image andresch/trackfs. Please refer to the trackfs homepage for further details.

Usage

Once you have installed trackfs [see section "Installation" below) you can simply run it from the command line:

trackfs /path/to/yourmusiclibrary /path/to/mountpoint

Replace /path/to/yourmusiclibrary with the root directory where trackfs scans for FLAC+CUE files and /path/to/yourmountpoint with the directory that you want to use as mount point for the trackfs-filesystem. The mount point should be an existing, empty directory.

Once started you will find all directories and files from your music library also in the trackfs-filesystem. Only FLAC+CUE files got replaced: Instead of a single FLAC+CUE file you will find individual FLAC files for each track found in the embedded cue sheet. The track-files will have the following names:

{basename(FLAC+CUE-file)}.#-#.{tracknumber}.{tracktitle}.{start}-{end}.flac

While the tracks can be used like regular files, they don't exist in the physical file system on your machine. Instead trackfs creates them on the fly whenever an application starts loading any of the track files. This usually takes (depending on your system) a few seconds.

Finetuning

You should NOT run trackfs as user root. Instead it is recommended to run it with a user account who has just the rights necessary to read the files in the music libary. If you accidentially launch trackfs as root, trackfs exit with an error messgage. If you know what you are doing and want to run track as root, you have to add the option --root-allowed.

In addition trackfs provides a bunch of options to fine-tune its behaviour. Call trackfs --help to learn about the options or visit the trackfs homepage

Installation

Precondition

If you want/have to run trackfs on some linux system without docker make sure that your system meet the following preconditions / has the following software installed:

  • python: use recent a python version (>=3.8) (trackfs is developped and tested with 3.8), including pip
  • fuse: make sure that you have FUSE support enabled in your kernal and the FUSE libraries installed
  • flac: make sure you have official flac binaries (flac and metaflac) installed and on your path

On most recent debian based system you should get all dependencies with

sudo apt-get install python3 python3-pip fuse libfuse-dev flac

On alpine linux (used for the dockerized version of trackfs) you would use

sudo apk add python3 py3-pip fuse fuse-dev flac 

Verify that you have the expected python version

trackfs has been developed and tested with python 3.8. So better check that your distribution supports at least 3.8.

python3 --version

If you have an older version, we can't guarantee that trackfs works as expected.

It is unfortunately beyond the scope of this document to describe how you might get version 3.8 on your machine if not supported by your distribution.

Verify that pip is avaialbe and up-to-date

  1. Make sure that pip is availalbe

    pip --version
    

    If this command exits with an error then your system doesn't have pip installed. On some systems python might be able to help you:

    sudo python3 -m ensurepip --default-pip
    

    On some systems, this might fail; just proceed with the next one

  2. Make sure you have the latest pip version

    sudo python3 -m pip install --upgrade pip
    

If you fail installing pip on your system, then you might want to consult the python package documentation

Installing trackfs

Now we can use pip to install trackfs

``´
pip install --user trackfs
```

This command installs trackfs only for the current user (--user). Systemwide installation of trackfs is not recommended as you might run into dependency conflicts with package that come with your distribution. So don't execute without --user / as root, unless you know what you are doing. Please refer to pip's documentation for virtual environments, if you want to make trackfs available for more users.

Acknowledgments

trackfs began its live as a clone of FLACCue. While FLACCue is designed for the usage with the Plex media server, the underlying idea of both projects is the same. Although there is little unmodified code of FLACCue left in trackfs, the project would most likely not have been started without the ideas in this groundwork. Kudos go to acenkos!

License

trackfs is licensed under the terms of the GNU Lesser General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trackfs-0.2.6.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

trackfs-0.2.6-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file trackfs-0.2.6.tar.gz.

File metadata

  • Download URL: trackfs-0.2.6.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for trackfs-0.2.6.tar.gz
Algorithm Hash digest
SHA256 5cde72a736af20c1496a7d1192bc572a24de3b7ca1c60d62f865acd8f8a34be1
MD5 1ed3a9cbabc8dd24e9e5bfed518d91e6
BLAKE2b-256 e743bc9c66f441009c217c72fa243f0d2903542c882e7104c00aa6e9e0beb813

See more details on using hashes here.

File details

Details for the file trackfs-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: trackfs-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for trackfs-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a4361dfa88067a9d9af7ab4bfc732afd4a6871165ca21d8a2c529585a0109e
MD5 d2d3909d5be9d2322205654cae016717
BLAKE2b-256 72837289a6d1c64110aaf4529cdbe2eed99bd0337c3c9c0e3d06e1965eae12c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page