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) |
https://pypi.org/project/imageio-ffmpeg/ should offer more control in the
Make_Movie.pyscript than usingmencoder:omero-scripts/omero/export_scripts/Make_Movie.py
Lines 141 to 159 in 4a6eec0