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
Add a callback event? #2
Comments
Just to make sure I understand correctly, you want the def run_ffmpeg_show_progress(command, ffmpeg_loglevel="info", progress_handler=None) You create a function that defines what to do with the percentage progress, speed and ETA: def handle_progress_info(progress, speed, eta):
# blah blah... And then you call my function like so: def run_ffmpeg_show_progress(command, ffmpeg_loglevel="info", progress_handler=handle_progress_info) I'll add this ability and let you know when the update has been pushed. |
Yes, if that's the best python way. I'm not a python expert but I was thinking the parameters could be an object. If you have the need to add more info to it, hopefully if wouldn't automatically break the callback that way.
|
Update pushed. Run Let me know if this new feature works as you want it to. |
Adding an optional callback/event that passes the 3+ numbers (and maybe the process handle) when needed might be useful for those who want to customize the output to
. Add ANSI colors
. Put the info into a GUI
. Reword/translate something or represent it as ASCII art.
. Remove or re-arrange things
The text was updated successfully, but these errors were encountered: