Skip to main content

A easy to use, video to images converter

Project description

Videos To images command line

This repository can be used to convert mp4 files to images, more extensions will be added soon.

Installation

pip install videoToImages

Usage

Convert video folder to images

videoToimages --videoFolder [pathToVideoFolder]

example: videoToimages --videoFolder "c:/videos"

Running the above command will generate images from the video and store in the directory imagesConverted in the videos folder. Alternatively, you can also pass output folder name: --outFolder

Convert video folder to images at specific rate (fps)

videoToimages --videoFolder [pathToVideoFolder] --fps 10

example: example: videoToimages --videoFolder "c:/videos" --fps 10

This command will capture 10 frames from each second of video data. You can use any integer value < original fps.

Useful Arguments

  • --videoFolder - (string) Full path of path of folder containing videos. example: ~/videos
  • --outFolder - (string) Full path of path of folder to store output images (.png). example: ~/videos/images
  • --fps - (int) sampling rate per second from the videos. example: 15
  • --img_size - (tuple) or (int) resize output images to specific size. example: (512, 512)

License

Apache-2.0 License

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

videoToImages-1.1.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

videoToImages-1.1.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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