A progress bar for ffmpeg. Yay !
Project description
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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ffpb-0.3.0.tar.gz
.
File metadata
- Download URL: ffpb-0.3.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5e2f7bc0cccdbf6c10eb9a9aacbc24173d4a488e0734ea0d2012c566cc4b93 |
|
MD5 | 1a015ffbab7190ea8307df79396838bc |
|
BLAKE2b-256 | 0a5cd8b6b064282caf5290c3b4f02a99f6de755579e5c22b3ac7394f84d5cdeb |
File details
Details for the file ffpb-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ffpb-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310efbf8e3fb35b0375f99df2a4ea5bdfb7619f98325d679d7961609a0e32e3e |
|
MD5 | a83810769abecd6cb984f491dfa9114d |
|
BLAKE2b-256 | fea71b45318c6996193a1d09b8c4178edf7a8cdecfb578505cda50968ce4cb0f |