Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mencoder with imageio-ffmpeg #178

Open
manics opened this issue Nov 10, 2020 · 0 comments
Open

Replace mencoder with imageio-ffmpeg #178

manics opened this issue Nov 10, 2020 · 0 comments

Comments

@manics
Copy link
Member

manics commented Nov 10, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant