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
Release history Release notifications | RSS feed
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da27dccb6a1e1f781f3130e3fcdf0504349c220a2563348637db338a1096c5e |
|
MD5 | ac36975b42c0a17f3873d083118463a6 |
|
BLAKE2b-256 | 08b0fda98b10b1c7a8affd1684549c759eb0cb5180163bd29d066eed0177f943 |