Skip to content

Replace mencoder with imageio-ffmpeg #178

Description

@manics

https://pypi.org/project/imageio-ffmpeg/ should offer more control in the Make_Movie.py script than using mencoder:

def build_avi(size_x, size_y, filelist, fps, movie_name, format):
""" Encodes. """
program = 'mencoder'
args = ""
if (format == WMV):
args = ' mf://'+filelist + ' -mf w=' + str(size_x) + ':h=' + \
str(size_y) + ':fps=' + str(fps) + \
':type=jpg -ovc lavc -lavcopts vcodec=wmv2 -o %s' % movie_name
elif (format == QT):
args = ' mf://'+filelist + ' -mf w=' + str(size_x) + ':h=' + \
str(size_y) + ':fps='+str(fps) + \
':type=png -ovc lavc -lavcopts vcodec=mjpeg:vbitrate=800 -o %s' \
% movie_name
else:
args = ' mf://'+filelist + ' -mf w=' + str(size_x) + ':h=' + \
str(size_y) + ':fps=' + str(fps) + \
':type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -o %s' % movie_name
log(args)
os.system(program + args)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions