Mirror Fractal Codec
Lossless compression for neuromorphic event-camera data (DVS/ATIS).
1.51 bits/event · 47.6x compression · 0.55 ms per N-MNIST sample.
Patent Pending — US Provisional #64/034,974
Install
pip install mfc-codec
Pre-built wheels for CPython 3.11 on Linux (manylinux_2_34 x86_64), macOS (arm64), and Windows (amd64).
Quick start
import mfc
events = mfc.load_nmnist("sample.bin")
compressed, stats = mfc.compress(events, width=34, height=34, t_bits=16, xy_bits=8)
print(f"{stats.compression_ratio:.1f}x, {stats.bits_per_event:.2f} bpe")
decoded = mfc.decompress(compressed)
assert events == decoded # bit-exact, lossless
Results
N-MNIST (60,000 real samples, 34×34 sensor)
| Digit | Samples | Avg events | Ratio | bpe | Encode |
|---|---|---|---|---|---|
| Total | 60,000 | 4,172 | 47.6× | 1.51 | 0.55 ms |
High-resolution synthetic
| Config | Events | Raw | Compressed | Ratio | Encode |
|---|---|---|---|---|---|
| DVS128 500K | 500K | 4,395 KB | 3.9 KB | 1,117× | 4.9 ms |
| VGA 2M | 2M | 17,578 KB | 20.0 KB | 878× | 36.9 ms |
| HD 1M | 1M | 8,789 KB | 8.5 KB | 1,040× | 58.2 ms |
Supported dataset formats
N-MNIST .bin · AEDAT 2.0 .aedat · DSEC HDF5 (Blosc/LZ4/zstd) · .npy · .evb · CSV · .dat/.raw
Links
- Live demo — https://codec.mirrorfractal.com
- Public repository (docs, examples, issues) — https://github.com/MirrorFractal/codec
- Paper / Zenodo deposit — DOI: 10.5281/zenodo.19704064
Citation
@software{mfc_codec_2026,
author = {Solonskii, Aleksei},
title = {Mirror Fractal Codec: Lossless Compression for Neuromorphic Event Camera Streams},
year = {2026},
doi = {10.5281/zenodo.19704064},
url = {https://codec.mirrorfractal.com}
}
License
Proprietary — all rights reserved. Patent Pending US 64/034,974.
Contact: info@mirrorfractal.com
Metadata
Release files for mfc-codec 0.3.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mfc_codec-0.3.29-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details for mfc_codec-0.3.29-cp311-cp311-win_amd64.whl |
| mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details for mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl |
| mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 11.0+ ARM64 | Details for mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl |
Total release size: 533.8 kB
Release files / mfc_codec-0.3.29-cp311-cp311-win_amd64.whl
| Download URL | mfc_codec-0.3.29-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 127.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f15961dccdf324a229b55018a516925bd0e25aa05d3dde45be116fbe8c7895ca
|
|
BLAKE2b-256 checksum How to use checksums |
1a172e3d4baec45c753e0924cb62cd2ab191c85935e67152a99f27dc34499944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logRelease files / mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 214.4 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4240bf432be8a858efeaba85a289c784ac68c2f5cc382d49772e1d085ad0cd94
|
|
BLAKE2b-256 checksum How to use checksums |
b946a2ddbb0cb9636ea87e1bf27e6aea70ac7caba32454228afbc2146efa907a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logRelease files / mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 191.6 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2aaed289b29c86549204234e1c9ae1b43a7f5eedca4d8bba7d540647d98a865c
|
|
BLAKE2b-256 checksum How to use checksums |
45f689423f515c27fe77942c2418e0d6afaec2ab0041050c5d2bf2cb9e398f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logSecurity for mfc-codec 0.3.29
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for mfc_codec-0.3.29-cp311-cp311-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.