Produce one frame from a sequence of frames such that resulting frame represents an average of a sequence.
Where X is a set of frames, x is a particular frame.
From terminal:
python3 path/to/video/file.mp4 frames_to_skip frames_to_grab
From REPL:
from src import averanger as a
# Path to your video file
path = 'data/video.mp4'
# Frames to skip
skip = 2000
# Frames to grab
grab = 25
a.averengify(path, skip, grab)
There is no one unique recipe besides basic video analysis. General rules are the following:
-
The more video is centered on some object and more this object 'still' the bigger grab value can be taken
-
The more video intense (change of the background, absence of central or 'still' object) the smaller grab value should be