Skip to main content

Iterate on video frames quickly

Project description

PyPI version

IterFrames - python video decoder

IterFrames is a simple Python video decoder implemented in Rust.

Use

import iterframes

for frame in iterframes.read("video.mp4"):
    # frame is a numpy array with shape (height, width, 3)
    pass

Develop

To develop IterFrames you need:

Install ffmpeg dependencies

On *nix systems, clang, pkg-config and FFmpeg libraries (including development headers) are required.

On macOS:

brew install pkg-config ffmpeg

On Debian-based systems:

apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config

Other libav*-dev and libsw*-dev packages may be required if you enable the corresponding features, e.g., libavdevice-dev for the device feature.

Install python dependencies

IterFrames is built with maturin

pip install maturin pytest
maturin develop
pytest tests

Build

Only linux systems are currently supported. To build a manylinux2010 wheel just run the build.sh script:

bash build.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

iterframes-0.2.0-cp36-abi3-manylinux2010_x86_64.whl (11.7 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ x86-64

iterframes-0.2.0-cp36-abi3-macosx_10_7_x86_64.whl (26.8 MB view hashes)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page