Python package for capturing frames from video.
Project description
Python Video Thumbnail
Python package for capturing frames from video. Written as replacement of https://github.com/radek-senfeld/ffvideo package, and to help with transition of Python 2.7 projects that relay on FFVideo, to Python 3.
Features
Supports file paths and urls
Supports image resizing
Usage
from python_video_thumbnail import VideoFrames
vf = VideoFrames(
source="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
frame_numbers=[6000],
img_options={"width": 128},
format=".png"
)
captured_frames = vf.capture()
with open("captured_frame.png", "wb") as f:
f.write(captured_frames[0].getvalue())
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2021-10-02)
First release on PyPI.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_video_thumbnail-0.1.0.tar.gz.
File metadata
- Download URL: python_video_thumbnail-0.1.0.tar.gz
- Upload date:
- Size: 293.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25a6b79db5debc7ac7d62e30d5fa4ed1ab93fa6d48f06f29a72f1e45c1e86e5
|
|
| MD5 |
728fbade49ff5a438f8a53e3949ec45d
|
|
| BLAKE2b-256 |
5d836e660f1c52a66a7b06aea2b264d23197a11476e1d24413434620ee17c450
|
File details
Details for the file python_video_thumbnail-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: python_video_thumbnail-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5028519db7c6e68657b703baf4c429054a1c99b3f7a5c469f804bdd974061bd
|
|
| MD5 |
670ca5dbdd65e5b4d01f843b41ffd661
|
|
| BLAKE2b-256 |
57d68fee87261f0b4ee7045bfe438c19f9095174a1355546a16a4008921ce554
|