Skip to main content

HW accelerated video reading for ML Inference (CUDA version).

Project description

Release and Benchmark Tests License PyPI Version PyPI Version CUDA PyPI - Downloads Python Versions Discord

CeLux

CeLux is a high-performance Python library for video processing, leveraging the power of FFmpeg. It delivers some of the fastest decode times for full HD videos globally, enabling efficient and seamless video decoding directly into PyTorch tensors.

The name CeLux is derived from the Latin words celer (speed) and lux (light), reflecting its commitment to speed and efficiency.

📚 Documentation

🚀 Features

  • ⚡ Ultra-Fast Video Decoding: Achieve lightning-fast decode times for full HD videos using hardware acceleration.
  • 🔗 Direct Decoding to Tensors: Decode video frames directly into PyTorch tensors for immediate processing.
  • 🖥️ Hardware Acceleration Support: Utilize CUDA for GPU-accelerated decoding, significantly improving performance.
  • 🔄 Easy Integration: Seamlessly integrates with existing Python workflows, making it easy to incorporate into your projects.

⚡ Quick Start

pip install celux  # cpu only version
pip install celux-cuda  # cuda+cpu
from celux import VideoReader
#import celux as cx
filters = [("scale", "1920:1080"), ("hue", "0.5")]
reader = VideoReader("/path/to/video.ext",
                    #num_threads: int = os.cpu_count(),
                    device = "cuda",
                    filters = filters
                    )
for frame in reader:
# do something

📄 License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.

🙏 Acknowledgments

  • FFmpeg: The backbone of video processing in CeLux.
  • PyTorch: For tensor operations and CUDA support.
  • Vcpkg: Simplifies cross-platform dependency management.
  • @NevermindNilas: For assistance with testing, API suggestions, and more.

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 Distribution

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

celux_cuda-0.4.5.5-py3-none-any.whl (12.4 MB view details)

Uploaded Python 3

File details

Details for the file celux_cuda-0.4.5.5-py3-none-any.whl.

File metadata

  • Download URL: celux_cuda-0.4.5.5-py3-none-any.whl
  • Upload date:
  • Size: 12.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for celux_cuda-0.4.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bb46cd45fe5eadc8a809070a8903b1891550dd9d798f09157a0adf091819731f
MD5 a3c016488308a24b99cf63398e9e16dc
BLAKE2b-256 14e70d4c0b10c04644ddadb3f7e02b98579d790d0cfec31caeb524109ff23b66

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