Not smart. Not comprehensive. Not guaranteed to work.
ffpb is an FFmpeg progress formatter. It will attempt to display a nice
progress bar in the output, based on the raw ffmpeg output, as well as an
adaptative ETA timer.
(yes, my laptop can't encode shit)
ffpb is is not even self-aware. Any argument given to the ffpb command
is transparently given to the ffmpeg binary on your system, without any form
of validation. So if you know how to use the FFmpeg CLI, you know how to use
ffpb !
ffpb can be used as a library: use the ffpb.main function:
ffpb.main(argv=None, stream=sys.stderr, encoding=None, tqdm=tqdm):- argv
- The arguments to pass to
ffmpeg, as an argument list. - stream
- The stream to which to write the progress bar and the output messages.
- encoding
- The encoding of the terminal, used to decode the
ffmpegoutput. Defaults tolocale.getpreferredencoding(), or UTF-8 is locales are not available. - tqdm
- The progress bar factory to use. A subclass of
tqdm.tqdm is expected.
Check althonos/ffpb#19 to
see how you can use this to wrap
ffpbin your own UI.
Install from PyPI:
$ pip install --user ffpbAlternatively, download a development version from the GitHub master branch:
$ pip install https://github.com/althonos/ffpb/archive/master.zipOr if you use an Arch-based distro, download from the AUR