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-hypernode.com/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
File details
Details for the file videotoframes-1.1.3.tar.gz
.
File metadata
- Download URL: videotoframes-1.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715df70c461874c899dba6427444218101b1a7e063c5563429e4f75950c1f03b |
|
MD5 | 233ea7e28d9edede1714d7b25a729281 |
|
BLAKE2b-256 | 21ca6d2ecf94b4dacc2d869a216c61ebeaf2cb86538a67ed368354183c34ef9e |
File details
Details for the file videotoframes-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: videotoframes-1.1.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a10845770a4e7e47d2849b82a18c6adf64587d24f9b819f06a5c3b761b051a7 |
|
MD5 | cc83212776015f99f36287a9deeb2aaf |
|
BLAKE2b-256 | d69f339e256aebbfb754d7e86066a893d38c6cfffd0b07268996c5c14bab4956 |