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.
- 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())
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.