Skip to main content

Python Video Thumbnail

https://img.shields.io/pypi/v/python_video_thumbnail.svg https://img.shields.io/travis/mikolajkosmal/python_video_thumbnail.svg

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.

Release files for python-video-thumbnail 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-video-thumbnail 0.1.0
File Size Uploaded
python_video_thumbnail-0.1.0.tar.gz 293.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-video-thumbnail 0.1.0
File Interpreter ABI Platform
python_video_thumbnail-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 298.3 kB

Release files / python_video_thumbnail-0.1.0.tar.gz

Download URL python_video_thumbnail-0.1.0.tar.gz
Size 293.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f25a6b79db5debc7ac7d62e30d5fa4ed1ab93fa6d48f06f29a72f1e45c1e86e5
BLAKE2b-256 checksum
How to use checksums
5d836e660f1c52a66a7b06aea2b264d23197a11476e1d24413434620ee17c450
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / python_video_thumbnail-0.1.0-py2.py3-none-any.whl

Download URL python_video_thumbnail-0.1.0-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d5028519db7c6e68657b703baf4c429054a1c99b3f7a5c469f804bdd974061bd
BLAKE2b-256 checksum
How to use checksums
57d68fee87261f0b4ee7045bfe438c19f9095174a1355546a16a4008921ce554
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page