Skip to main content

xmcam-fs

Mount a Xiongmai (XM) / iCSee / XMeye IP camera as a filesystem and browse its recordings as ordinary files — like sshfs, but for your camera's SD card/disk. Built on xmcam and pyfuse3. Everything stays on the local network: no cloud, no internet.

mnt/
└── 2026-11-10/
    ├── mp4/
    │   ├── 08.00.00-08.05.00.mp4      # playable MP4, produced on first open
    │   └── 08.05.00-08.09.17.mp4
    └── raw/
        ├── 08.00.00-08.05.00.xmraw    # original Xiongmai container
        └── 08.05.00-08.09.17.xmraw

Each recording appears twice:

  • mp4/ — a playable MP4 (HEVC/H.264, stream-copied, no re-encode). The first time you open one, the whole segment is downloaded and converted, then cached — so the first read is slow (~2 min for a 5-minute segment on these cameras) and later reads are instant.
  • raw/ — the original .xmraw container, exact size, no conversion cost.

The filesystem is read-only.

Why a filesystem?

Because then every tool you already have just works: cp, rsync, mpv mnt/2026-11-10/mp4/08.00.00-08.05.00.mp4, a file manager, a backup script. No bespoke download command needed.

Requirements

  • Linux with FUSE 3 (/dev/fuse, fusermount3).
  • libfuse3-dev and pkg-config are needed to build pyfuse3 (its only non-Python dependency). On Debian/Ubuntu: sudo apt install libfuse3-dev pkg-config.
  • ffmpeg for the mp4/ view (the raw/ view works without it).

Install

pipx install xmcam-fs        # or: pip install xmcam-fs

Usage

# Mount the camera (credentials auto-recovered from anonymous ONVIF if omitted)
xmcam-fs 192.0.2.10 ./mnt

# Only index the last 3 days, foreground (Ctrl-C to unmount)
xmcam-fs 192.0.2.10 ./mnt --days 3 --foreground

# With explicit credentials and the smaller sub-stream
XMCAM_USER=... XMCAM_PASS=... xmcam-fs 192.0.2.10 ./mnt --stream Sub

# Unmount
fusermount3 -u ./mnt

Options: --days N (how many past days to index, default 7), --stream Main|Sub, --channel N, --cache-dir PATH (default under $XDG_CACHE_HOME), --user/--password, --foreground, --debug.

How it works

On mount, xmcam-fs recovers the camera account (anonymous ONVIF), lists the recordings for the chosen window (DVRIP OPFileQuery) and builds a read-only tree. ls is cheap — it never downloads. Opening a file triggers a one-off download (DVRIP OPPlayBack) in a worker thread; for the mp4/ view the Xiongmai container is demuxed and remuxed to MP4. Results are cached on disk, so re-opening is instant.

The recording list is a snapshot taken at mount time. Remount to pick up newer footage. (Live refresh is planned.)

Security & ethics

xmcam-fs can recover camera credentials and pull footage over the LAN because the firmware exposes them to anonymous ONVIF. Use it only on cameras you own or are authorised to administer. No cloud is ever contacted and no credentials are written to disk (they are recovered per-run and kept in memory). The on-disk cache under --cache-dir holds decoded footage — put it somewhere appropriate and clear it when done.

License

MIT © theundefined

Metadata

Release files for xmcam-fs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmcam-fs 0.1.0
File Size Uploaded Provenance Actions
xmcam_fs-0.1.0.tar.gz 16.0 kB With provenance Details for xmcam_fs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xmcam-fs 0.1.0
File Interpreter ABI Platform Actions
xmcam_fs-0.1.0-py3-none-any.whl Python 3 none any Details for xmcam_fs-0.1.0-py3-none-any.whl

Total release size: 28.9 kB

Release files / xmcam_fs-0.1.0.tar.gz

Download URL xmcam_fs-0.1.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
08ccb6b12d55d4445696c21b35ac9dea43dc8fb5740a652438747d8084aa05fb
BLAKE2b-256 checksum
How to use checksums
8b9362aa09037201e339683887afe3b0f276250415bf439601fac7b606310bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / xmcam_fs-0.1.0-py3-none-any.whl

Download URL xmcam_fs-0.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20c1d149f0a6e24833491de017bdb52e089ccce61c1df04cd71e598a2e9097a1
BLAKE2b-256 checksum
How to use checksums
2330f082bddde585aff74404775047010663f638ad4c9e0c26efddfd4abde825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for xmcam-fs 0.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xmcam_fs-0.1.0.tar.gz

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 Nov 10, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page