A simple progress bar for ffmpeg, written in Python using rich
Project description
ffrich
Not smart. Not comprehensive. Not guaranteed to work.
ffrich 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.
Usage
On the command line
ffrich is is not self-aware. Any argument given to the ffrich
command is transparently given to the ffmpeg binary on
your system, without any form of validation.
ffrich <any_ffmpeg_command>
Using as a library
ffrich can be used as a library: use the ffrich.main
function:
ffrich.main(argv=None, stream=sys.stderr, encoding=None, console=rich.console.Console):
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.
console: The rich console object to output to.
Installation
Install from PyPI:
pip install ffrich
Install from Git:
pip install git+https://github.com/banksio/ffrich.git
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ffrich-0.2.3.tar.gz.
File metadata
- Download URL: ffrich-0.2.3.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4cb89984a233e1ae653ef161e2838976ed17c3527ca39d4138047bde82a763c
|
|
| MD5 |
c8c82a3502b634684379aeddb6293d82
|
|
| BLAKE2b-256 |
8d92674501f09905e4c84b8ba82168dbc806059fde63c7e5b55d20cfad301d56
|
File details
Details for the file ffrich-0.2.3-py3-none-any.whl.
File metadata
- Download URL: ffrich-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76da973dc97a30e5740d1cd838a827f80b5ea77eda826a6ae4846ae845cba1c1
|
|
| MD5 |
727798d3d2bcef9020258caf1fc0035a
|
|
| BLAKE2b-256 |
b1eb128c235578171f1c447c96188eb14fdeda0844294a57b7643a1439128187
|