moviepy
moviepy copied to clipboard
Proglog callback documentation needed
The main new feature in version 1.0 is the ability to customise the progress bars using the library Proglog. This is almost entirely undocumented apart from a section in the README. The relevant commit is https://github.com/Zulko/moviepy/commit/bfad5eabfaa32fc11b5056736b7b0f4bb7ccf878.
Hey! The proper documentation for this would be to refer to simply refer to the proglog Github page:
https://github.com/Edinburgh-Genome-Foundry/Proglog
How would I make a text based progress bar?
How would I make a text based progress bar?
Can you describe the effect you are looking for?
Something that looks like
Progress: |################## | (90%)
it should stay after the process ends
Ok. Proglog is not really a way to make custom progress bars, it is a system to redirect the progress data to the framework of your choice (either a python progress bar logger like tqdm, or a tkinter or web-ui logger).
So what you are trying to achieve is doable but the steps would be:
- Find a progress bar framework you like, and that looks like the progress bar you showed above.
- Write a MyCustomBarLogger class (on the model of TqdmBarLogger) that works with that framework you like.
- Provide a MyCustomBarLogger instance as the logger in MoviePy.
For those finding this page while searching how to use the proglog features that Moviepy has, I have the info you need: https://stackoverflow.com/questions/69423410/moviepy-getting-progress-bar-values