Hardware-accelerated video frame extraction for Apple Silicon
Project description
- Hardware-accelerated extraction using AVFoundation/VideoToolbox
- MLX native with direct BGRA frame copy to
mx.array - Lightweight bindings using
nanobindand GIL release - Pythonic interface with simple iterators and context managers
Getting started
import viteo
# Simple iteration with context manager
with viteo.open("video.mp4") as frames:
for frame in frames:
# frame is MLX array (height, width, 4) BGRA format
process(frame)
# Direct extraction
extractor = viteo.FrameExtractor("video.mp4")
for frame in extractor:
process(frame)
Installation
pip install viteo
From source
git clone https://github.com/codeSamuraii/viteo
cd viteo
pip install -v -e .
Rebuilding
rm -rf dist/
pip install -e . --force-reinstall --no-deps
Requirements
- macOS with Apple Silicon (M1/M2/M3/M4)
- Python 3.8+
- MLX framework
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 Distribution
viteo-0.1.1.tar.gz
(11.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viteo-0.1.1.tar.gz.
File metadata
- Download URL: viteo-0.1.1.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cb93dc5f0ef37cc9ae1011d8b8e3894efa3655e3178dd6d51550d88c695bddb
|
|
| MD5 |
07cf2465ff991fd99c1e56605e880637
|
|
| BLAKE2b-256 |
027c9c57642d14b7bea10be6422420991774549527b4b6a5e11594c8c238132e
|
File details
Details for the file viteo-0.1.1-cp313-cp313-macosx_15_0_arm64.whl.
File metadata
- Download URL: viteo-0.1.1-cp313-cp313-macosx_15_0_arm64.whl
- Upload date:
- Size: 45.5 kB
- Tags: CPython 3.13, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
709ea7495d831c2a32d316856ef3aa5e6d1b8224bbb4d5c9b7f680d668c88d2d
|
|
| MD5 |
2302b45484027454ca9795c300e837a4
|
|
| BLAKE2b-256 |
856892df43472113e4ee840e93da1acd4d5ee1d87ce6b798fb4a792d7f126d63
|