Skip to main content

AvialSync

The Advanced Video and Instrument Alignment Library.

PyPI Python CI Documentation Licence Platforms

AvialSync is a desktop viewer for looking through an experiment in time.

Use it when you have video from one or more cameras together with recordings such as sensors, electrodes, behavioural tracking, or other time-stamped measurements. It places them on one shared timeline so you can move to an event and inspect what each recording shows at that moment.

It exists for the case where the video and the signal have to agree on the same instant, and the recordings came off independently-clocked hardware. It is built for visual inspection and careful alignment: it does not acquire recordings, it does not analyse them for you, and it never silently changes a scientific timestamp. Your lab can add support for its own file types and workflows through plugins.

A one-second loop of three synchronised camera views of a head-fixed mouse with 2D pose overlays, a triangulated 3D pose drawn as a skeleton, and a running-wheel encoder velocity trace, all advancing together on one master timeline.

A real recording session: three cameras at 230 fps with per-camera 2D pose drawn over each view, triangulated 3D pose in a fourth column no wider than one camera view, and the running-wheel encoder velocity below — one second of it, at the speed it was recorded, every source moving on one master clock. The whole folder was opened by dropping it on the window; a session plugin recognised the layout and placed each file, including the shared time base and the skeleton the 3D pane draws. Nothing in AvialSync knows this lab's format.

What it gives you

  • Several camera recordings playing together on one clock, with forward/reverse J/K/L shuttle and detach-to-window layouts (View → Detach Plots / 3D View / Imaging, per-camera detachment, and pop-out inspector pages) for multi-monitor rigs.
  • Sensor, electrode, and tracking traces beside the video, up to 50 kHz across many channels, with Ctrl-wheel cursor zoom, Shift-drag panning, sticky pinned reference rows, and Stacked, Grouped, Overlaid, or 2D Viridis Heatmap plot modes.
  • Two-photon HDF5, OME-TIFF and ScanImage stacks on the same clock, with channel overlays, perceptual colormaps (Viridis, Magma, Inferno, Turbo), false-colour clipping indicators, live pixel intensity readouts, bidirectional ROI-tile ↔ ΔF/F trace linking, and a centred moving average, read one image plane at a time.
  • Alignment by offset, drift, or TTL/event evidence, with the original files left unchanged.
  • Notes the acquisition system itself recorded — read out of the file, placed on the same clock, and kept read-only so they never mix with your own marks.
  • Event marks, draggable point and range annotations (Shift+M), configurable 1–9 behavioral ethogram hotkeys (instant points or start/stop bouts), A/B time ranges, and exports of snapshots or selected spans for analysis elsewhere.
  • Event-aligned grid MP4 or per-event trimmed clip export, driven by rising or active-low falling TTL thresholds or discrete session triggers (accepted sync pulses, trials, messages, annotations), with cameras above one shared trace and selectable slow-motion speed; see the illustrated export demo.
  • Correction of a wrong pose estimate by hand — aided by low-confidence hollow rings, motion trails, a 5× pixel-grid zoom loupe, calibrated multi-camera epipolar guide curves, and off-thread suspect-frame navigation (Ctrl+[ / Ctrl+]) — saved beside the pose file and exportable either as corrected data or as a DeepLabCut or single-view Lightning Pose retraining set.
  • Repair of a tracker that swapped two animals or left/right body parts, by accepting the crossings it proposes; the original pose file is never modified.
  • Physical apparatus — wheels, ladders, treadmill belts and balls in one Props inspector. Ladders are clicked rung by rung or extrapolated from two rungs, with rails or a centre beam; belts are placed from four clicks in calibrated cameras or a single side view and sized by your measurements; motion comes from encoder, displacement or orientation channels, or from camera clicks. Clicks stay saved when a dimension is corrected; a mismatch is explained in Props.
  • Imported data cached in one per-user folder, never beside your recordings, and cleared from File → Cache.
  • Undo on every edit you make, a recovery snapshot written on quit, and no modal dialog standing between you and a file: a damaged recording opens as far as it can and reports the rest.

Install

With pip, on Python 3.11 or 3.12:

python -m pip install avialsync
avialsync

That is the whole install. Video decoding, proxy generation, and clip export all run inside the Python packages, so there is no media runtime to install separately and nothing to configure.

Or download a desktop installer from the Releases page — AvialSync-Setup.exe, AvialSync.dmg, or AvialSync.AppImage — if you would rather not manage a Python environment. They bundle everything, install without an administrator password, and are not yet code-signed, so the first launch needs one extra click.

One caveat, and it is Qt's rather than AvialSync's: on Linux, PySide6 needs the usual desktop graphics libraries (libgl1, libxkbcommon, and the xcb set). Every normal desktop already has them; bare containers and minimal server images do not. No packaging choice removes it.

Apple silicon is required for the .dmg, and glibc 2.39+ for the AppImage; outside those, use pip. See Installation for details.

First session

avialsync demo

That generates and opens a complete sample session — four cameras, sensor and ephys traces, and tracking — so you can confirm the install and try everything before touching your own data. With your own recordings:

  1. Drag video, data, imaging, or session folders onto the window, or use Open Videos…, Open Sensor/Ephys Data…, Open NWB…, Open Imaging…, and Open Session… in the left panel.
  2. Video appears at the top, traces below it.
  3. Drag the shared time bar to inspect one moment across every recording.
  4. If recordings do not line up, use the synchronization tools to align a visible event or TTL pulse.

A camera with no coverage at the selected time shows No Footage rather than a stale frame, and Data Streams shows when each file has data.

Documentation

Full documentation is at avialsync.readthedocs.io — quickstart, first-session tutorial, supported formats, synchronization, troubleshooting, plugin guide, and a technical reference covering architecture, data handling, performance, and the development and release process.

Contributing

Contributions are welcome — see CONTRIBUTING.md for setup, the four-command gate every change must pass, and the architecture rules that exist because breaking them caused real bugs. Participation is governed by our Code of Conduct.

Good places to start are format and session plugins (TimeSeriesSource, VideoSource, ImagingSource, and SessionSource — see the plugin tutorial, plugin reference, and avialsync plugin-check), platform verification on real desktop displays and hardware, and the open issues.

Licence

AvialSync is free software under the GNU AGPL v3 or later. Use it, study it, modify it, redistribute it. The one condition is reciprocity: if you convey a modified version — including letting others use it over a network — you publish your changes under the same licence.

Running it in your lab, modifying it for your own use, publishing results, and writing plugins for your own rig all sit inside this and cost nothing. A plugin that uses only the documented TimeSeriesSource, VideoSource, ImagingSource, and SessionSource interfaces is your own work and you choose its licence, so a loader for a proprietary instrument format need not be published.

There is no dual licence and no contributor agreement — contributions are accepted under the same AGPL, and opening a pull request is the whole process.

Metadata

Release files for avialsync 0.1.14

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

Source distribution (sdist)

Source distribution for avialsync 0.1.14
File Size Uploaded Provenance Actions
avialsync-0.1.14.tar.gz 1.6 MB With provenance Details for avialsync-0.1.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for avialsync 0.1.14
File Interpreter ABI Platform Actions
avialsync-0.1.14-py3-none-any.whl Python 3 none any Details for avialsync-0.1.14-py3-none-any.whl

Total release size: 3.4 MB

Release files / avialsync-0.1.14.tar.gz

Download URL avialsync-0.1.14.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
c99a0f4c22d2154afd8430df00be6af567dcc037cfd1a3f01f4f652ff9f50bf3
BLAKE2b-256 checksum
How to use checksums
d88ec455bb721f1acefca17e288212fbe8ed2aa2c0090ca04748a719ffa6bd30
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 25, 2026.

Transparency log

Release files / avialsync-0.1.14-py3-none-any.whl

Download URL avialsync-0.1.14-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
49c07d4d21747a95dce9d3ac1934e039d33cd1377c5bfe530dd9680933beee81
BLAKE2b-256 checksum
How to use checksums
4b7cfee715a77a9553cfd1e04ebf7881d4bd1363cfa405822386b4f992d3a299
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 25, 2026.

Transparency log

Security for avialsync 0.1.14

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 avialsync-0.1.14.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 25, 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