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.
`sh ffrich <any_ffmpeg_command> `
### Using as a library
ffrich can be used as a library: use the ffrich.main function:
`python 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:
`sh pip install ffrich `
Install from Git:
`sh pip install git+https://github.com/banksio/ffrich.git `
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 ffrich-0.2.1.tar.gz
.
File metadata
- Download URL: ffrich-0.2.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2cce9d9d31232a069d78b779035998f1b10983b23d6ba3ef03320acd1da8f95 |
|
MD5 | a03f2b8dbdb97510b4ba44864a10fe1c |
|
BLAKE2b-256 | d4d3a2af1c9bf096807dada1946e8bee32234f83f63ff629f595fd9a8a90297a |
File details
Details for the file ffrich-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ffrich-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8ebeae2251fec5eadcc23e5bb38fdca1bcee767a7728e016350459875f9dff |
|
MD5 | 75a5c05fef6e6b6d7f31dd7dbe3f09f4 |
|
BLAKE2b-256 | b879b512773b13b466671082d377bb87aa809d2579731deef57db85050a51b3f |