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

Proglog callback documentation needed #1020

Open
tburrows13 opened this issue Oct 1, 2019 · 7 comments
Open

Proglog callback documentation needed #1020

tburrows13 opened this issue Oct 1, 2019 · 7 comments
Labels
documentation Related to documentation in official project docs or individual docstrings. documentation-needed Docs & docstrings which need adding or updating to rectify missing, incorrect or misleading info.

Comments

@tburrows13
Copy link
Collaborator

tburrows13 commented Oct 1, 2019

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 bfad5ea.

@tburrows13 tburrows13 added documentation Related to documentation in official project docs or individual docstrings. good-first-issue Especially suitable for people new to moviepy and/or programming; beginner-friendly. labels Oct 1, 2019
@Zulko
Copy link
Owner

Zulko commented Oct 1, 2019

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

@512DuncanL
Copy link

How would I make a text based progress bar?

@Zulko
Copy link
Owner

Zulko commented Aug 7, 2020

How would I make a text based progress bar?

Can you describe the effect you are looking for?

@512DuncanL
Copy link

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

@512DuncanL
Copy link

it should stay after the process ends

@Zulko
Copy link
Owner

Zulko commented Aug 7, 2020

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.

@tburrows13 tburrows13 removed the good-first-issue Especially suitable for people new to moviepy and/or programming; beginner-friendly. label Oct 3, 2020
@keikoro keikoro added the documentation-needed Docs & docstrings which need adding or updating to rectify missing, incorrect or misleading info. label Jan 5, 2022
@nimaid
Copy link

nimaid commented Dec 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation in official project docs or individual docstrings. documentation-needed Docs & docstrings which need adding or updating to rectify missing, incorrect or misleading info.
Projects
None yet
Development

No branches or pull requests

5 participants