moviepy icon indicating copy to clipboard operation
moviepy copied to clipboard

Proglog callback documentation needed

Open tburrows13 opened this issue 5 years ago • 7 comments

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.

tburrows13 avatar Oct 01 '19 13:10 tburrows13

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

Zulko avatar Oct 01 '19 13:10 Zulko

How would I make a text based progress bar?

512DuncanL avatar Aug 07 '20 13:08 512DuncanL

How would I make a text based progress bar?

Can you describe the effect you are looking for?

Zulko avatar Aug 07 '20 13:08 Zulko

Something that looks like Progress: |################## | (90%)

512DuncanL avatar Aug 07 '20 13:08 512DuncanL

it should stay after the process ends

512DuncanL avatar Aug 07 '20 14:08 512DuncanL

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.

Zulko avatar Aug 07 '20 14:08 Zulko

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

nimaid avatar Dec 06 '23 10:12 nimaid