Skip to main content

Xarray extension for working with video data.

This project is in an early stage of development. Please be patient with any bugs. Any contributuons are welcome.

Features

  • Xarray backend to read video into an xarray dataset

  • Xarray accessor for time and/or space stacked video DataArrays

  • Zarr video codec for efficient compression of video. Up to 100x improvement over blosc for video data.

  • Xarray accessor for video Datasets for writing to zarr using the video codec

  • Simple diagnostic plotting and play functions to view video

Uses

  • Attach coordinates (for example time or location) to the video frames dimension

  • Utilise Xarray selection functionality for easy subsetting of video

  • Easily convert video streams and frames to other formats such as netcdf or geotiff

  • Store video in an efficient chunked format within zarr

  • Create massive lazy access video archives using a zarr backend

  • Store multiple videos (for example stereo camera) in the same Dataset with consistent time and/or spatial coordinates.

Limitations

The library uses [PyAV](https://pyav.org) to read and write to/from video files. It will be limited to the same set of formats and codecs as your PyAV installation.

Although video file access and zarr archive access is lazy, once video data is loaded it is in uncompressed uint8 darrays. Trying to do dataset.load on large video files will exhaust your RAM very quickly.

The play preview is only intended as a diagnostic tool. It buffers the entire video as an array before display so cannot handle larger arrays. The play preview is also unlikely to play in realtime for larger videos.

Credits

This package was developed by Oceanum Numerical, with input from our development partners and contributors.

History

0.0.1 (2022-12-02)

  • First release on PyPI.

Metadata

Release files for xarray-video 0.2.11

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

Source distribution (sdist)

Source distribution for xarray-video 0.2.11
File Size Uploaded
xarray-video-0.2.11.tar.gz 32.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for xarray-video 0.2.11
File Interpreter ABI Platform
xarray_video-0.2.11-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 32.7 MB

Release files / xarray-video-0.2.11.tar.gz

Download URL xarray-video-0.2.11.tar.gz
Size 32.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c9bf67776112b7a297554f0d3704e8b657a7c478aedbf35dee9fa550d48762ca
BLAKE2b-256 checksum
How to use checksums
cee9862d23f17cc06e1d3ff0a3d943e48bc4b998733083bdc054f9040479d00d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.12

Release files / xarray_video-0.2.11-py2.py3-none-any.whl

Download URL xarray_video-0.2.11-py2.py3-none-any.whl
Size 10.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6195648a9cfcba726e09d34ca47439b57a272de64be75b003174e57c8b7606a2
BLAKE2b-256 checksum
How to use checksums
08e41677c6cb5c27776ff47b395c0b3f12795d64f8db2254e80aeeffa43bc61a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.2.11 This release

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.1

2 release files

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