Home

Awesome

mux2fs Build Status Coveralls Codacy Badge Join the chat at https://gitter.im/tfiskgul/mux2fs

Muxes subtitles into Matroska files as a FUSE filesystem

Usage

mux2fs source mountpoint -o tempdir=<tempdir>,[options]
mux2fs --source source --target mountpoint --tempdir tempdir [options]

About

mux2fs takes the source directory and mirrors it under mountpoint, with a few changes. Files ending in .mkv are matched against files ending in .srt, and if they match, they are muxed using mkvmerge in tempdir.

Example:

SourceMount point
NameSizeNameSize
file1.mkv700 KiBfile1.mkv712 KiB
file1.eng.srt12 KiB
file2.mkv600 KiBfile2.mkv607 KiB
file2.srt7 KiB
file2.txt2 KiBfile2.txt2 KiB

Requirements

Security implications

mux2fs should not be run as root. It should be mounted with the -o ro flag, as it will never support any write operations. It also should be mounted with the -o default_permissions flag, as it does no access or security checking.

Building

gradle build

or

./gradlew build

Installation

Pick a Debian or RPM package from releases and install it using the package manager of your distribution.

Alternate installation

WARNING This might be unsafe. It will require an exitsing sudo ticket (or just run sudo before).

sudo true && gradle deploy

Core dependencies

Performance

Do not expect stellar performance, as performance is neither a goal, nor a strong consideration, of this project. Expect reading somewhere between 500-700 MB/s from a file in RAM. The performance should be good enough to stream media files from disk.

Supported platforms

Supported platforms
Linuxx64x86