File format conversion as a FUSE filesystem
convertfs is a FUSE filesystem that converts files on the fly using a variety of libraries.
The idea if you copy a file into a directory that convertfs is mounted on, and then can move out a converted file. The converted file will be generated on the fly when you read it.
uv run convertfs --helpto see usage instructions for the CLIuv run convertfs --mount <mountpoint>to start the filesystem, and then you can copy files into the mountpoint to convert them.
You can install with the following command:
pip install git+https://github.com/ThatOtherAndrew/convertfsOr, if using uv:
pip install git+https://github.com/ThatOtherAndrew/convertfsMount convertfs over a directory:
convertfs my_dirThen, mv or drag files into the directory to be magically converted!
- Video
- Remux MP4, AVI and MKV files
- Compress MP4 files using H.264, automatically selecting the best encoder available on the system (NVENC, QSV or x264), and providing a variety of presets.
- Images
- Convert between a variety of formats, including JPEG, PNG, TIFF and WebP.
- Text files
- Convert PDF and Office files to markdown via Microsoft's
markitdownlibrary.
- Convert PDF and Office files to markdown via Microsoft's
nix developto setup a development environmentuv syncto isntall dependencies