A simple Python script to break videos into frames.
Project description
VideoToFrames
A simple Python script to break videos into frames. This package does NOT require ffmpeg.
Installation
VideoToFrames requires Python 3.4+
pip install videotoframes
Example Usage:
VideoToFrames can be run from any command prompt or imported into a Python project.
Assuming there is a video at ./videos/example.mp4
and you want to create
frames in ./frames
:
videotoframes -i ./vidoes/example.mp4 -o ./frames
If you want to create a limited number of frames that are evenly distributed:
videotoframes -i ./videos/example.mp4 -o ./frames --max-frames=20 --even
You can also use VideoToFrames with many videos at once:
videotoframes -i ./videos -o ./frames
Using VideoToFrames in a Python project:
from videotoframes import convert
video_base_64 = '...'
frames = convert(video_base_64=video_base_64, max_frames=10, frame_rate=1)
GitHub Project
https://github.com/brandonschabell/videotoframes
PyPi Project
https://pypi.org/project/videotoframes/
Contact
Please feel free to email me at brandonschabell@gmail.com with any questions or feedback.
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
Hashes for videotoframes-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9216547a434e56f69a1ed36a6cca62b483d58c5c05516a2e86e09699ff9ba35 |
|
MD5 | 196915d99e6355a555ec351cf9329891 |
|
BLAKE2b-256 | d4f33ba63918e291b0fad87dbcbef3eeff5574cff523cc156315dcfe1185c263 |