When exporting a large amount of frames is there a possibility to track the duration of this process?
-
I'm currently setting up a Sublime Text 3 workflow and I was wondering if I could get print out some feedback of when the build is started and when it is ended?
The code below gets called when the saveImage is done building. Is there a way to bind another callback function to saveImage?
os.system("open --background -a Preview " + EXPORT_PATH)
Thanks in advance!
-
this should give you the perceived execution time of script:
import time start = time.time() # do something end = time.time() print(end - start)
-
there are plenty of options to have some sort of process bar that gets updated for each frame:
see https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console#
If this doesn't makes sense I can narrow it down to an simpler example!
good luck!
-
@frederik makes sense! I can easily print out the progress of executing frames but I can't figure out how I can get some kind of progress feedback when the saveImage() function is called when exporting a larger .mp4 file. Any ideas?
-
oh, there is indeed no progress callback on
saveImage(..)
Doing some googling on 'progress' and 'ffmpeg' does not results in a clear solution.
DrawBot has a small wrapper around ffmpeg to generate movies: see https://github.com/typemytype/drawbot/blob/master/drawBot/context/tools/mp4Tools.py