Skip to content

A small ui program to convert videos into image folders and vice versa

Notifications You must be signed in to change notification settings

pskugit/video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Converter

converts Folder2Video and Video2Folder

This is a small UI program used to convert a video file into a folder containing images of all frames. Or to convert an image folder into a video file given the set parameters.

Prerequisites

Written in Python3, the program has a few external libraries They are all accessible through pip.

$ pip install opencv-python
$ pip install PyQt5 
$ pip install tqdm
$ pip install imageio
($ pip install numpy)

Usage

Folder to video

Build a .mp4 file from a folder containing only .jpg or .png images.

Parameters to be chosen:

  • max length: the maximal number of distinct images that are loaded from the image folder. If 0, all image files are used.
  • size: specified video resolution, eg. 1024x1000. Larger images will be cropped. If 0x0, the size of the first image is used.
  • fps: frames per second. The number of images shown in one second of video.
  • repeat: repeats ever image n times.

Example: if fps=1 and repeat=5, a video is created that shows every image for 5 seconds. Which in that case is more like a slideshow.

Video to folder

Extract all individual frames of a video file and save them as .png to a folder.

This mode has no parameters to specify.

Meta

Philipp Skudlik

https://github.com/pskugit

About

A small ui program to convert videos into image folders and vice versa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages