Skip to main content

A simple Python script to break videos into frames.

Project description

VideoToFrames

PyPI version PyPI pyversions Build Status codecov Codacy Badge

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.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

videotoframes-1.1.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: videotoframes-1.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for videotoframes-1.1.5.tar.gz
Algorithm Hash digest
SHA256 c0a2b8eb51bf64236cf4d8b013d4aed0b904932182f5511f9220f2a0a59a5788
MD5 f9352b592dd04a0b77ef1e1d51950ac1
BLAKE2b-256 7f5922a49ae73d5f3695e18cbf0aa02465ddd35f233e50cfe1a83e04afead9ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: videotoframes-1.1.5-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.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for videotoframes-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e9216547a434e56f69a1ed36a6cca62b483d58c5c05516a2e86e09699ff9ba35
MD5 196915d99e6355a555ec351cf9329891
BLAKE2b-256 d4f33ba63918e291b0fad87dbcbef3eeff5574cff523cc156315dcfe1185c263

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