hokkoo / Video2Frames

Simple video to frames converter using Opencv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video2Frames

Simple python script to convert a video file to frames as jpg files

Usage :

python video2frames.py input/video/file/path output/folder [--maxframes] [--rotate]

Options :

--maxframes : Max number of output frames (or files)

--rotate : Rotate clock-wise output frames, possible values = {90, 180, 270}

Example :

  1. Split video to frames files
python video2frames.py /tmp/my_video.mpg /tmp/images
  1. Split video to frames files (max 250 files) and rotate 90 degrees clock-wise
python video2frames.py /tmp/my_video.mpg /tmp/images --maxframes=250 --rotate=90

About

Simple video to frames converter using Opencv


Languages

Language:Python 100.0%