Skip to main content

Hardware-accelerated video frame extraction for Apple Silicon

Project description

logo

High-performance video frame extraction for Apple Silicon

Python 3.8+ PyPI Apple Silicon License: MIT


  • Hardware-accelerated extraction using AVFoundation/VideoToolbox
  • MLX native with direct BGRA frame copy to mx.array
  • Lightweight bindings using nanobind and 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viteo-0.1.1-cp313-cp313-macosx_15_0_arm64.whl (45.5 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Hashes for viteo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1cb93dc5f0ef37cc9ae1011d8b8e3894efa3655e3178dd6d51550d88c695bddb
MD5 07cf2465ff991fd99c1e56605e880637
BLAKE2b-256 027c9c57642d14b7bea10be6422420991774549527b4b6a5e11594c8c238132e

See more details on using hashes here.

File details

Details for the file viteo-0.1.1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for viteo-0.1.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 709ea7495d831c2a32d316856ef3aa5e6d1b8224bbb4d5c9b7f680d668c88d2d
MD5 2302b45484027454ca9795c300e837a4
BLAKE2b-256 856892df43472113e4ee840e93da1acd4d5ee1d87ce6b798fb4a792d7f126d63

See more details on using hashes here.

Supported by

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