Iterate on video frames quickly
Project description
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:
- working rust toolchain (e.g. https://rustup.rs)
- working python 3.6+ environment
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file iterframes-0.2.0-cp36-abi3-manylinux2010_x86_64.whl
.
File metadata
- Download URL: iterframes-0.2.0-cp36-abi3-manylinux2010_x86_64.whl
- Upload date:
- Size: 11.7 MB
- Tags: CPython 3.6+, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf160db15bc2a2c0b7ee9aea1057ddd81b27f154ca100dd9446c00397ee0eb32 |
|
MD5 | c73c066e7be7e939f78dca5c31e27c76 |
|
BLAKE2b-256 | 5ce11e8691b3a675b806117c85fd8be7f6342791e7f5ca61aeeed481e1825561 |
File details
Details for the file iterframes-0.2.0-cp36-abi3-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: iterframes-0.2.0-cp36-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 26.8 MB
- Tags: CPython 3.6+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5618f98449104c2270fdd6bfc33e5282d729133d19d08ba0813b9eaedebfb75 |
|
MD5 | cdf96e4198161238b969e62eb8880d99 |
|
BLAKE2b-256 | 6c38d218ecc9964c1dd30a2478442f728919959e8ec0612174431c9cee3e27d2 |