ffpb 
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.
Showcase
(yes, my laptop can’t encode shit)
Usage
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 !
Using as a library
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 ffmpeg output. Defaults to locale.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 ffpb in your own UI.
Installation
Install from PyPI:
$ pip install --user ffpb
Alternatively, download a development version from the GitHub master branch:
$ pip install https://github.com/althonos/ffpb/archive/master.zip
Or if you use an Arch-based distro, download from the AUR
Release files for ffprb 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ffprb-0.0.1.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ffprb-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.7 kB
Release files / ffprb-0.0.1.tar.gz
| Download URL | ffprb-0.0.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e41b0500df1e21af6c5bdeaefd0552949f514350275294696a9a32b9757be18
|
|
BLAKE2b-256 checksum How to use checksums |
6493f237ead762c4bee445a6fa384d92fbad4c2bfbb9d2d82dc9e10bb5b9c479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|
Release files / ffprb-0.0.1-py2.py3-none-any.whl
| Download URL | ffprb-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3190382fca0ed4a866e08e87f4f9710fb4a854b38fb58d252a6ccf4d0e2dbb1a
|
|
BLAKE2b-256 checksum How to use checksums |
93da5481fe60a601705033df11a6cf9bd16d80925edceb27588a9dc6250ef97f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.5
|