Skip to content

Create an image by blending frames of a video or .gif file, or from a sequence of images.

License

Notifications You must be signed in to change notification settings

nemanja-rakicevic/frame_blender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example gif Blended Image

Blend video frames, or images, to make nice visualisations!

Try it:

step 1) Download repo:
git clone https://github.com/nemanja-rakicevic/frame_blender.git; cd frame_blender

step 2) Prerequisites:
pip install -r requirements.txt

step 3) Run!
python blend_frames.py --load_gif examples/example_gif.gif -sf 5

Description

Scripts for manipulating the open browser tabs:

blend_frames.py:
Create an image of blended frames, from various sources:
-v, --load_video: pass a path to the video file.
-g, --load_gif: pass a path to the .gif file.
-d, --load_dir: pass a path to the directory containing a sequence of images.
It is necessary that the images are the same size, and would be useful to also pass the image type:
-it, --image_type: the default is 'png'.

It is possible to limit the number of frames used:
-mf, --max_frames: by default all frame are used.
In order to skip several frames, pass:
-sf, --skip_frames: the default is tu use all frames.

(TODO) make_gif.py:
Make a gif either from a video file or a sequence of images.

(TODO) make_image_sequence.py:
Make a sequence of images either from a video file or gif.

NOTE: Large files require a lot of memory, use with caution!
(TODO) Rewrite as iterators to better manage the memory.

About

Create an image by blending frames of a video or .gif file, or from a sequence of images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages