vccolombo / pyctorize

A Python CLI program to extract frames of videos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyctorize

A Python command line program to extract frames of videos

Prerequisites

Python 3

Installing

python3 -m pip install pyctorize

Using

$ pyctorize <PATH_TO_FILE> \
    --output <PATH_TO_OUTPUT_DIRECTORY> \
    --start-time <TIME_IN_MILLISECONDS_OF_FIRST_FRAME> \
    --step <CAPTURE_IMAGE_EVERY_STEP_MILLISECONDS>

Example:

$ pyctorize example.mp4 \
    --output output/ \ # save result to output/
    --start-time 100 \ # starting at 100ms
    --step 1000 # take a frame every second

In this example, pyctorize will produce a frame for 1100ms, 2100ms, 3100ms and so on.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A Python CLI program to extract frames of videos.

License:MIT License


Languages

Language:Python 100.0%