Skip to main content

A toolset to work with video files

Project description

Telaio

A toolset to work with video files.

Requirements

ffmpeg is required to run this package. It can be installed with:

sudo apt install ffmpeg # for Debian-based systems
yum install ffmpeg # for Red Hat-based systems
brew install ffmpeg # for macOS

Installation

pip install telaio

To install the package locally, run:

pip install -e .

Usage

from telaio import VideoFile

video = VideoFile("path/to/video.mp4")

video.fps # Average frames per second for the video
video.width # Width of the video frames
video.height # Height of the video frames
video.frames_count # Number of frames in the video

video.first_frame() # Get the first frame of the video

# Memory efficient way to iterate over the frames:
for (frame_id, frame_data) in video.frames():
    print(frame_id, frame_data.shape)

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

telaio-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

telaio-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file telaio-0.0.2.tar.gz.

File metadata

  • Download URL: telaio-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for telaio-0.0.2.tar.gz
Algorithm Hash digest
SHA256 67c8f228ecdfe8dde49715dbdd96c1fc2464805dfcd137361794e5a3ce506a11
MD5 17931d4faefa6bb5d7ff0d9d541b6488
BLAKE2b-256 e4375504c09b5bee3d51a65e39c3112ff2686c46ea10d988d3f9cea6acdf035d

See more details on using hashes here.

File details

Details for the file telaio-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: telaio-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for telaio-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d40a9d299270c5d01c7786d8b8c5279d1c9f7c94186e6209668d7cd6e7c1c59c
MD5 f9cd6cba2131348cbd024faf63775994
BLAKE2b-256 423eb1f460099fa92227c4e428d297b5968a51554a7bb938d9eabfbc8c8f2634

See more details on using hashes here.

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