Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

VideoSlicer

This package provides a VideoSlicer object that allows you to access a video file as if it is a matrix. You can create VideoView objects from a VideoSlicer object that target specific parts of a video file using native Python slicing and indexing mechanisms. The VideoView objects can be used to iterate over the frames in arbitrary dimensions, resulting in VideoFrame or VideoFrameCRS objects. Both objects provide a convenient interface to transport, resize, save and reference frames from the original video file.

As slicing, indexing and iterating is supported in arbitrary dimensions, the VideoSlicer object can be used to quickly extract timestacks as well as ordinary frames in physical meaningful coordinates.

Examples

slicer = VideoSlicer('movie.avi')
view = slicer[:10,::10,::10]
for frame in view:
    frame.save('frame{:06d}.jpg'.format(frame.index))
slicer = VideoSlicer('movie.avi')
frame = slicer[10,...]
frame.save('frame.jpg')
frame.plot()
slicer = VideoSlicer('movie.avi', axis=2) # loop over horizontal dimension
for frame in slicer[:,:,::10]:
    frame.T.save('timestack{:06d}.jpg'.format(frame.index)) # transpose to have time on the horizontal axis

Metadata

Release files for videoslicer 1.0.0rc2

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

Built distribution (wheel)

Table of built distributions (wheels) for videoslicer 1.0.0rc2
File Interpreter ABI Platform Actions
videoslicer-1.0.0rc2-py2.py3-none-any.whl Python 3, Python 2 none any Details for videoslicer-1.0.0rc2-py2.py3-none-any.whl

Release files / videoslicer-1.0.0rc2-py2.py3-none-any.whl

Download URL videoslicer-1.0.0rc2-py2.py3-none-any.whl
Size 13.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
280021c64fcd3127351fc437d7b55f4f2864b60bc1d06403eba4c0e64c754992
BLAKE2b-256 checksum
How to use checksums
df30c43f65ff1b07c84a4105927668473182efa1ecf3d08eb6f4564958d09413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for videoslicer 1.0.0rc2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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