#!/usr/bin/env python3
###########################################################
# Example make and extend movie
from movie_funcs import make_movie,extend_movie
from glob import glob

ifile='movie.avi'
ofile='movie.avi'
fns=sorted(glob('<path_to_jpgfiles_with_wildcard>'))
# Make a movie with 2 frames per second, codec 'DIVX' 
make_movie(fns,ifile,fps=2,codec='DIVX')


# Extend movie with one frame, limit max. nr. frames to 4
#  (frames are removed at start if needed)
#  maxnrfrm=0=default: no limit
efile='<file_to_add>'
extend_movie(ifile,efile,ofile,maxnrfrm=4)

