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 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.

telaio-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: telaio-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0da27dccb6a1e1f781f3130e3fcdf0504349c220a2563348637db338a1096c5e
MD5 ac36975b42c0a17f3873d083118463a6
BLAKE2b-256 08b0fda98b10b1c7a8affd1684549c759eb0cb5180163bd29d066eed0177f943

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