Skip to main content

No project description provided

Project description

Xvideos - lightweight video stream reading

Xvideos is a lightweight single class library for background video reading. The VideoReader class works in 2 threads, which allows you to efficiently read the video with its parallel processing.

Install

You can use the Pip package manager to install the package:

pip install xvideos

Or you can install manually:

git clone https://github.com/tam2511/xvideos.git
cd xvideos
python setup.py install

Documentation

This library consists of a single VideoReader class and several helper functions. Their signature and description can be found in the documentation

Examples

The VideoReader class is very easy to use, just pass the source of the video stream to the class constructor and then use the get() method to get frames until the video stream ends

from xvideos import VideoReader

reader = VideoReader(source='./test.mp4')

while True:
    flag, batch = reader.get()
    if not flag:
        break
    ... # do something

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

xvideos-0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

xvideos-0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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