Skip to main content

A simple Python script to break videos into frames.

Project description

VideoToFrames

PyPI version PyPI pyversions Build Status codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videotoframes-1.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

videotoframes-1.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file videotoframes-1.1.1.tar.gz.

File metadata

  • Download URL: videotoframes-1.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for videotoframes-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4187e661ee8a365371623feed8c03b5c72f71b13b3926b998eef6469ae718b42
MD5 39f0f1b836b3d6a07f6d833abbfefa54
BLAKE2b-256 b64e6afb4b73f21c4de82ad4a5f6a6097aa0771b73637ca285c155aae3dd4ccf

See more details on using hashes here.

File details

Details for the file videotoframes-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: videotoframes-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for videotoframes-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56bbc0bab243d8eb694e6a00a1ba02f4212cd497c56a458bf94a9b30fd7a45c9
MD5 f349277cc49ee6d6c21bba9837932852
BLAKE2b-256 625523a9f746b54a6fd6b4f63336ba6d06583f118b458533fbac6d39506dd9aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page