Code Monkey home page Code Monkey logo

video_split_by_frame's Introduction

Video split by frame

A fast an easy way to split a video by frames

To use run the following commands:

- pip install -r requirements.txt
- python split_video.py

- press Enter to exit

ARGS:

- usage: split_video.py [-h] -vp VIDEO_PATH [-bn BASE_NAME] [-sp SAVE_PATH] [-nf NUMBER_OF_FRAMES] [-f IMAGE_FORMAT]
                  [-s SOURCE] [-ixs [IMGS_X_SECOND [IMGS_X_SECOND ...]]]
-h, --help            show this help message and exit
-vp VIDEO_PATH, --video_path VIDEO_PATH
                    <Required> Path to the video file
-bn BASE_NAME, --base_name BASE_NAME
                    Base name of the frames (e.g. frame_
-sp SAVE_PATH, --save_path SAVE_PATH
                    Path to the save frames
-nf NUMBER_OF_FRAMES, --number_of_frames NUMBER_OF_FRAMES
                    Max amount of frames to be extracted from webcam
-f IMAGE_FORMAT, --image_format IMAGE_FORMAT
                    output image format (jpg, png, etc.
-s SOURCE, --source SOURCE
                    source of the video ("file" or "webcam" )
-ixs [IMGS_X_SECOND [IMGS_X_SECOND ...]], --imgs_x_second [IMGS_X_SECOND [IMGS_X_SECOND ...]]
                    frames to be extracted from all frames in one second (e.g. 1 , 7, 28)
                    if a number below 1 is given it will divide fps of the video by that number 
                    and get 1 image per that interval (e.g "0.5") if fps is 30 it will get 1 image every 60 frames

video_split_by_frame's People

Contributors

nachovoss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.